data class DownloadProgress(val bytesDownloaded: Long, val totalBytes: Long?, val bytesPerSecond: Long, val resumedFromByte: Long)
DownloadProgress
(
bytesDownloaded
, totalBytes
, bytesPerSecond
, resumedFromByte
)
|
Signature
constructor(bytesDownloaded: Long, totalBytes: Long?, bytesPerSecond: Long, resumedFromByte: Long) Parameters bytesDownloaded: Long
Total bytes written to disk so far (includes resumed bytes).
totalBytes: Long?
Expected total file size, or null if the server didn't provide Content-Length.
bytesPerSecond: Long
Instantaneous download speed estimate (smoothed over last 2 seconds).
resumedFromByte: Long
Byte offset from which this session started (0 if fresh download).
Returns DownloadProgress |
bytesDownloaded
: Long
[Get] |
Total bytes written to disk so far (includes resumed bytes).
Signature
val bytesDownloaded: Long |
bytesPerSecond
: Long
[Get] |
Instantaneous download speed estimate (smoothed over last 2 seconds).
Signature
val bytesPerSecond: Long |
fraction
: Float?
[Get] |
Signature
val fraction: Float? |
resumedFromByte
: Long
[Get] |
Byte offset from which this session started (0 if fresh download).
Signature
val resumedFromByte: Long |
totalBytes
: Long?
[Get] |
Expected total file size, or null if the server didn't provide Content-Length.
Signature
val totalBytes: Long? |