@Deprecated public class DLTaskListener extends Object implements IDListener
| 构造器和说明 |
|---|
DLTaskListener()
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
onConnect(int type,
String msg)
已过时。
|
void |
onError(int status,
String error)
已过时。
|
void |
onError(String error)
已过时。
|
void |
onFinish(File file)
已过时。
下载完成时回调
Callback when download finish.
|
void |
onPrepare()
已过时。
|
void |
onProgress(int progress)
已过时。
下载进行时回调
Callback when download in progress.
|
void |
onStart(String fileName,
String url)
已过时。
|
void |
onStart(String fileName,
String realUrl,
int fileLength)
已过时。
|
void |
onStop()
已过时。
|
void |
onStop(int progress)
已过时。
下载停止时回调 暂未使用
Callback when download stop.
|
public void onPrepare()
onPrepare 在接口中 IDListener@Deprecated public void onStart(String fileName, String url)
fileName - 文件名 File name.url - 文件下载地址 File length in byte.public void onStart(String fileName, String realUrl, int fileLength)
onStart 在接口中 IDListener@Deprecated public boolean onConnect(int type, String msg)
msg - 附加的连接信息 extra message of connect.public void onProgress(int progress)
onProgress 在接口中 IDListenerprogress - 当前的下载进度以100为最大单位 note:the max progress is 100.@Deprecated public void onStop()
public void onStop(int progress)
onStop 在接口中 IDListenerpublic void onFinish(File file)
onFinish 在接口中 IDListenerfile - 下载文件本地File对象 file downloaded.@Deprecated public void onError(String error)
error - 具体的错误信息 error message.public void onError(int status,
String error)
onError 在接口中 IDListener