-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Pause or Stop
Jacksgong edited this page Sep 29, 2016
·
4 revisions
For FileDownloader, only one interface pause
to cover both Pause and Stop action, because if you pause the task, all data about the task will be removed in the memory and stop the task, but when you re-start the task with the same Url
and Path
, it will resume from the break-point automatically.
// Pause a queue.
FileDownloader.getImpl().pause(listener);
// Pause a task.
FileDownloader.getImpl().pause(downloadId);
// Or
task.pause();
// Pause all running task.
FileDownloader.getImpl().pauseAll();
- Initialization
- Start downloading
- Pause or Stop
- Get the internal stored data
- Customizable Component
- Interface