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

Link copied to clipboard
abstract fun onQueueEmpty(sent: Int)

The queue is now empty.

Link copied to clipboard
abstract fun onRetryAfterDelay(delay: Long, sent: Int, exception: Exception)

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