InProgress

data class InProgress(val current: Int, val total: Int, val timestamp: Long) : TransferState<Nothing>

The progress of the transfer.

Constructors

Link copied to clipboard
constructor(current: Int, total: Int, timestamp: Long)

Properties

Link copied to clipboard

The number of bytes transferred.

Link copied to clipboard

The progress, from 0.0 to 1.0, or 0.0 if the total size is not known yet.

Link copied to clipboard

The time of the report, in milliseconds since the epoch.

Link copied to clipboard
val total: Int

The total number of bytes to transfer. For some downloads this value may be not known until the first chunk is received.