Skip to content

FileDownloadMonitor

Jacksgong edited this page Apr 14, 2016 · 1 revision

FileDownloadMonitor

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
FileDownloadMonitor.IMonitor

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)