downloadProgress

fun downloadProgress(bytesReceived: Long, totalBytes: Long?): DownloadProgress(source)

The progress of a download into the file cache, as ensureCachedFile with a progress callback reports it.

Parameters

bytesReceived

the bytes received so far.

totalBytes

the object's size, or null when the server gave none.