Package | com.distriqt.extension.firebase.storage |
Interface | public interface DownloadTask extends flash.events.IEventDispatcher |
Method | Defined By | ||
---|---|---|---|
cancel():Boolean
Attempts to cancel the task. | DownloadTask | ||
Gets the result of the Task, if it has already completed. | DownloadTask | ||
Returns the current state of the task. | DownloadTask | ||
isCanceled():Boolean
Returns true if the task has been canceled. | DownloadTask | ||
isComplete():Boolean
Returns true if the Task is complete; false otherwise. | DownloadTask | ||
isInProgress():Boolean
Returns true if the task is currently running. | DownloadTask | ||
isPaused():Boolean
Returns true if the task has been paused. | DownloadTask | ||
isSuccessful():Boolean
Returns true if the Task has completed successfully; false otherwise. | DownloadTask | ||
pause():Boolean
Attempts to pause the task. | DownloadTask | ||
resume():Boolean
Attempts to resume a paused task. | DownloadTask |
Event | Summary | Defined By | ||
---|---|---|---|---|
DownloadTask | ||||
DownloadTask | ||||
DownloadTask | ||||
DownloadTask | ||||
DownloadTask |
cancel | () | method |
public function cancel():Boolean
Attempts to cancel the task. A canceled task cannot be resumed later.
ReturnsBoolean — true if this task is successfully being canceled.
|
getResult | () | method |
public function getResult():DownloadTaskSnapshot
Gets the result of the Task, if it has already completed.
ReturnsDownloadTaskSnapshot —
|
getSnapshot | () | method |
public function getSnapshot():DownloadTaskSnapshot
Returns the current state of the task. This method will return state at any point of the tasks execution and may not be the final result..
ReturnsDownloadTaskSnapshot —
|
isCanceled | () | method |
public function isCanceled():Boolean
Returns true if the task has been canceled.
ReturnsBoolean —
|
isComplete | () | method |
public function isComplete():Boolean
Returns true if the Task is complete; false otherwise.
ReturnsBoolean —
|
isInProgress | () | method |
public function isInProgress():Boolean
Returns true if the task is currently running.
ReturnsBoolean — true if the task is currently running
|
isPaused | () | method |
public function isPaused():Boolean
Returns true if the task has been paused.
ReturnsBoolean — true if the task has been paused
|
isSuccessful | () | method |
public function isSuccessful():Boolean
Returns true if the Task has completed successfully; false otherwise.
ReturnsBoolean —
|
pause | () | method |
public function pause():Boolean
Attempts to pause the task. A paused task can later be resumed.
ReturnsBoolean — true if this task is successfully being paused.
Note that a task may not be immediately paused if it was executing
another action and can still fail or complete.
|
resume | () | method |
public function resume():Boolean
Attempts to resume a paused task.
ReturnsBoolean — true if the task is successfully resumed.
false if the task has an unrecoverable error
or has entered another state that precludes resume
|
downloadtask:complete | Event |
com.distriqt.extension.firebase.storage.events.DownloadTaskEvent
com.distriqt.extension.firebase.storage.events.DownloadTaskEvent.COMPLETE
downloadtask:error | Event |
com.distriqt.extension.firebase.storage.events.DownloadTaskEvent
com.distriqt.extension.firebase.storage.events.DownloadTaskEvent.ERROR
downloadtask:paused | Event |
com.distriqt.extension.firebase.storage.events.DownloadTaskEvent
com.distriqt.extension.firebase.storage.events.DownloadTaskEvent.PAUSED
downloadtask:progress | Event |
com.distriqt.extension.firebase.storage.events.DownloadTaskEvent
com.distriqt.extension.firebase.storage.events.DownloadTaskEvent.PROGRESS
downloadtask:success | Event |
com.distriqt.extension.firebase.storage.events.DownloadTaskEvent
com.distriqt.extension.firebase.storage.events.DownloadTaskEvent.SUCCESS