ProgressListener

abstract class ProgressListener(interval: Long)

进度监听器, 可能为下载或上传

Parameters

interval

进度监听器刷新的间隔时间, 单位为毫秒, 默认值为500ms

Constructors

ProgressListener
Link copied to clipboard
fun ProgressListener(interval: Long = 500)
进度监听器刷新的间隔时间, 单位为毫秒, 默认值为500ms

Functions

onProgress
Link copied to clipboard
abstract fun onProgress(p: Progress)
监听上传/下载进度回调函数

Properties

elapsedTime
Link copied to clipboard
var elapsedTime: Long = 0L
interval
Link copied to clipboard
var interval: Long = 500
进度监听器刷新的间隔时间, 单位为毫秒, 默认值为500ms
intervalByteCount
Link copied to clipboard
var intervalByteCount: Long = 0L