KioskOpsDeliveryListener

Callback fired once per event after the local queue state is updated: when the server acknowledges or rejects it, or when its payload cannot be decoded (error payload_decode_failed; the server never sees that event, and a batch in which no event decodes makes no transport call at all). Batch-level failures (HTTP errors, timeouts) report nothing: the events stay queued and retry. Implementations must be thread-safe; callbacks may fire from background threads. A listener that throws is logged and ignored.

The listener runs while the sync lock is held. A listener that calls syncOnce() synchronously or waits on syncOnceBlocking() never returns; hand such work to another coroutine or thread.

Since

1.5.0

Functions

Link copied to clipboard
abstract fun onDelivery(delivery: EventDelivery)