ProgressListener

fun interface ProgressListener

Callback that can be registered to listen for upload/download progress.

This class is used for callbacks in HttpRequestBuilder.onDownload and HttpRequestBuilder.onUpload.

Report a problem

Functions

Link copied to clipboard
abstract suspend fun onProgress(bytesSentTotal: Long, contentLength: Long?)

Invokes every time some data is flushed through the ByteReadChannel.