public interface DownloadTaskListener
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
beforeDownload(cn.schoolwow.quickhttp.response.Response response,
Path file)
开始下载数据之前
|
void |
downloadFail(cn.schoolwow.quickhttp.response.Response response,
Path file,
Exception exception)
文件下载失败时
|
void |
downloadFinished(cn.schoolwow.quickhttp.response.Response response,
Path file)
文件下载完成时
|
void |
downloadSuccess(cn.schoolwow.quickhttp.response.Response response,
Path file)
文件下载成功时
|
boolean beforeDownload(cn.schoolwow.quickhttp.response.Response response,
Path file)
response - http请求响应file - 文件路径void downloadSuccess(cn.schoolwow.quickhttp.response.Response response,
Path file)
response - http请求响应file - 文件路径void downloadFail(cn.schoolwow.quickhttp.response.Response response,
Path file,
Exception exception)
response - http请求响应file - 文件路径exception - 异常对象void downloadFinished(cn.schoolwow.quickhttp.response.Response response,
Path file)
response - http请求响应file - 文件路径Copyright © 2021. All rights reserved.