public static interface FileDownloadMonitor.IMonitor
| Modifier and Type | Method and Description |
|---|---|
void |
onRequestStart(BaseDownloadTask task)
Request to start a task.
|
void |
onRequestStart(int count,
boolean serial,
FileDownloadListener lis)
Request to start multi-tasks manually.
|
void |
onTaskBegin(BaseDownloadTask task)
The method will be invoked when the task in the internal is beginning.
|
void |
onTaskOver(BaseDownloadTask task)
The method will be invoked when the task in the internal is over.
|
void |
onTaskStarted(BaseDownloadTask task)
The method will be invoked when the download runnable of the task has started running.
|
void onRequestStart(int count,
boolean serial,
FileDownloadListener lis)
count - The count of tasks will start.serial - Tasks will be started in serial or parallel.lis - The listener.void onRequestStart(BaseDownloadTask task)
task - The task will start.void onTaskBegin(BaseDownloadTask task)
task - The task is received to start internally.void onTaskStarted(BaseDownloadTask task)
task - The task finish pending and start download runnable.void onTaskOver(BaseDownloadTask task)
task - The task is over.