net / com.drake.net.component / Progress
data class Progress
Name | Summary |
---|---|
<init> | Progress(currentByteCount: Long = 0, totalByteCount: Long = 0, intervalByteCount: Long = 0, intervalTime: Long = 0, startElapsedRealtime: Long = SystemClock.elapsedRealtime()) |
Name | Summary |
---|---|
currentByteCount | 当前已经完成的字节数var currentByteCount: Long |
intervalByteCount | 进度间隔时间内完成的字节数var intervalByteCount: Long |
intervalTime | 距离上次进度变化间隔时间var intervalTime: Long |
speedBytes | 每秒下载速度, 字节单位var speedBytes: Long |
startElapsedRealtime | 开始下载的时间val startElapsedRealtime: Long |
totalByteCount | 当前已经完成的字节数var totalByteCount: Long |
Name | Summary |
---|---|
currentSize | 已完成文件大小 根据字节数自动显示内存单位, 例如 19MB 或者 27KBfun currentSize(): String |
finish | 是否完成fun finish(): Boolean |
progress | 请求或者响应的进度, 值范围在0-100fun progress(): Int |
remainSize | 剩余大小 根据字节数自动显示内存单位, 例如 19MB 或者 27KBfun remainSize(): String |
remainTime | 剩余时间fun remainTime(): String |
remainTimeSeconds | 剩余时间fun remainTimeSeconds(): Long |
speedSize | 每秒下载速度 根据字节数自动显示内存单位, 例如 19MB 或者 27KBfun speedSize(): String |
totalSize | 文件全部大小 根据字节数自动显示内存单位, 例如 19MB 或者 27KBfun totalSize(): String |
useTime | 已使用时间fun useTime(): String |
useTimeSeconds | 已使用时间fun useTimeSeconds(): Long |