CacheWriter.ProgressListener


interface CacheWriter.ProgressListener


Receives progress updates during cache operations.

Summary

Public functions

Unit
onProgress(requestLength: Long, bytesCached: Long, newBytesCached: Long)

Called when progress is made during a cache operation.

Public functions

onProgress

fun onProgress(requestLength: Long, bytesCached: Long, newBytesCached: Long): Unit

Called when progress is made during a cache operation.

Parameters
requestLength: Long

The length of the content being cached in bytes, or LENGTH_UNSET if unknown.

bytesCached: Long

The number of bytes that are cached.

newBytesCached: Long

The number of bytes that have been newly cached since the last progress update.