From 9d42d16ccde342c09fe251677821065df2ccb5ae Mon Sep 17 00:00:00 2001 From: allenns <18856907654@163.com> Date: Sat, 23 May 2020 14:42:21 +0800 Subject: [PATCH] build --- .../com/allens/lib_http2/impl/DownLoadProgressListener.kt | 6 ++++++ 1 file changed, 6 insertions(+) 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