-
Notifications
You must be signed in to change notification settings - Fork 2.2k
FileDownloadMonitor
Jacksgong edited this page Apr 14, 2016
·
1 revision
You can add this global monitor for Statistic/Debugging.
function | description |
---|---|
setGlobalMonitor(monitor:IMonitor) | set and replace global monitor into the Download Engine |
releaseGlobalMonitor(void) | release the monitor has already set into the Download Engine |
getMonitor(void) | get the monitor has already set into the Download Engine |
monitor interface.
interface | description |
---|---|
onRequestStart(count:int, serial:boolean, lis:FileDownloadListener) | Will be invoked when request to start multi-tasks manually |
onRequestStart(task:BaseDownloadTask) | Will be invoked when request to start the task manually |
onTaskBegin(task:BaseDownloadTask) | Will be invoked when the task in the internal is begin(before pending) |
onTaskStarted(task:BaseDownloadTask) | Will be invoked when the task finish pending and start download runnable |
onTaskOver(task:BaseDownloadTask) | Will be invoked when the task in the internal is over(finish all lifecycle of the task) |
- Initialization
- Start downloading
- Pause or Stop
- Get the internal stored data
- Customizable Component
- Interface