public interface DownloadProgress
| 限定符和类型 | 方法和说明 |
|---|---|
void |
error(String url,
String thread,
int code,
String message)
下载异常
|
void |
finish(String url,
String thread)
下载完成
|
int |
getAction() |
void |
init(String url,
String thread,
long total,
long past)
加载历史进度
|
void |
setErrorListener(DownloadListener listener) |
void |
setFinishListener(DownloadListener listener) |
void |
step(String url,
String thread,
long finish)
每次下载长度
|
void |
stop() |
void init(String url, String thread, long total, long past)
url - urlthread - 线程号total - 本次需下载past - 历史进度void step(String url, String thread, long finish)
url - urlthread - 线程号finish - 本次循环下载长度void error(String url, String thread, int code, String message)
url - urlthread - threadcode - codemessage - messagevoid setErrorListener(DownloadListener listener)
void setFinishListener(DownloadListener listener)
int getAction()
void stop()
Copyright © 2025. All rights reserved.