sdk / com.memfault.cloud.sdk / SendChunksCallback

SendChunksCallback

interface SendChunksCallback : Callback

A callback for ChunkSender.send.

One method will be called when there is no more data to send or when the request fails.

The callback will not be run if MemfaultCloud.deinit has been called.

The callback will be run on the main thread.

Functions

onQueueEmpty

The queue is now empty.

abstract fun onQueueEmpty(sent: Int): Unit

onRetryAfterDelay

The server was busy or an error occurred, please re-try after a minimum delay.

abstract fun onRetryAfterDelay(delay: Long, sent: Int, exception: Exception): Unit