diff --git a/lib_http-coroutine/src/main/java/com/allens/lib_http2/impl/DownLoadProgressListener.kt b/lib_http-coroutine/src/main/java/com/allens/lib_http2/impl/DownLoadProgressListener.kt index d6c7e45..e791376 100644 --- a/lib_http-coroutine/src/main/java/com/allens/lib_http2/impl/DownLoadProgressListener.kt +++ b/lib_http-coroutine/src/main/java/com/allens/lib_http2/impl/DownLoadProgressListener.kt @@ -24,15 +24,21 @@ interface DownLoadProgressListener { interface OnDownLoadListener : DownLoadProgressListener { + //等待下载 fun onDownLoadPrepare(key: String) + //进度 fun onDownLoadProgress(key: String, progress: Int) + //下载失败 fun onDownLoadError(key: String, throwable: Throwable) + //下载成功 fun onDownLoadSuccess(key: String, path: String) + //下载暂停 fun onDownLoadPause(key: String) + //下载取消 fun onDownLoadCancel(key: String) } \ No newline at end of file