StorageTask<FileDownloadTask.TaskSnapshot>
|
addOnCompleteListener(OnCompleteListener<FileDownloadTask.TaskSnapshot> listener)
Adds a listener that is called when the Task succeeds or fails.
|
StorageTask<FileDownloadTask.TaskSnapshot>
|
addOnCompleteListener(Activity activity, OnCompleteListener<FileDownloadTask.TaskSnapshot> listener)
Adds a listener that is called when the Task succeeds or fails.
|
StorageTask<FileDownloadTask.TaskSnapshot>
|
addOnCompleteListener(Executor executor, OnCompleteListener<FileDownloadTask.TaskSnapshot> listener)
Adds a listener that is called when the Task succeeds or fails.
|
StorageTask<FileDownloadTask.TaskSnapshot>
|
addOnFailureListener(Activity activity, OnFailureListener listener)
Adds a listener that is called if the Task fails.
|
StorageTask<FileDownloadTask.TaskSnapshot>
|
addOnFailureListener(OnFailureListener listener)
Adds a listener that is called if the Task fails.
|
StorageTask<FileDownloadTask.TaskSnapshot>
|
addOnFailureListener(Executor executor, OnFailureListener listener)
Adds a listener that is called if the Task fails.
|
StorageTask<FileDownloadTask.TaskSnapshot>
|
addOnPausedListener(Executor executor, OnPausedListener<? super TResult> listener)
Adds a listener that is called when the Task becomes paused.
|
StorageTask<FileDownloadTask.TaskSnapshot>
|
addOnPausedListener(Activity activity, OnPausedListener<? super TResult> listener)
Adds a listener that is called when the Task becomes paused.
|
StorageTask<FileDownloadTask.TaskSnapshot>
|
addOnPausedListener(OnPausedListener<? super TResult> listener)
Adds a listener that is called when the Task becomes paused.
|
StorageTask<FileDownloadTask.TaskSnapshot>
|
addOnProgressListener(Executor executor, OnProgressListener<? super TResult> listener)
Adds a listener that is called periodically while the ControllableTask executes.
|
StorageTask<FileDownloadTask.TaskSnapshot>
|
addOnProgressListener(OnProgressListener<? super TResult> listener)
Adds a listener that is called periodically while the ControllableTask executes.
|
StorageTask<FileDownloadTask.TaskSnapshot>
|
addOnProgressListener(Activity activity, OnProgressListener<? super TResult> listener)
Adds a listener that is called periodically while the ControllableTask executes.
|
StorageTask<FileDownloadTask.TaskSnapshot>
|
addOnSuccessListener(OnSuccessListener<? super TResult> listener)
Adds a listener that is called if the Task completes successfully.
|
StorageTask<FileDownloadTask.TaskSnapshot>
|
addOnSuccessListener(Activity activity, OnSuccessListener<? super TResult> listener)
Adds a listener that is called if the Task completes successfully.
|
StorageTask<FileDownloadTask.TaskSnapshot>
|
addOnSuccessListener(Executor executor, OnSuccessListener<? super TResult> listener)
Adds a listener that is called if the Task completes successfully.
|
boolean
|
cancel()
Attempts to cancel the task.
|
<TContinuationResult>
Task<TContinuationResult>
|
continueWith(Continuation<FileDownloadTask.TaskSnapshot, TContinuationResult> continuation)
Returns a new Task that will be completed with the result of applying the specified
Continuation to this Task.
|
<TContinuationResult>
Task<TContinuationResult>
|
continueWith(Executor executor, Continuation<FileDownloadTask.TaskSnapshot, TContinuationResult> continuation)
Returns a new Task that will be completed with the result of applying the specified
Continuation to this Task.
|
<TContinuationResult>
Task<TContinuationResult>
|
continueWithTask(Executor executor, Continuation<FileDownloadTask.TaskSnapshot, Task<TContinuationResult>> continuation)
Returns a new Task that will be completed with the result of applying the specified
Continuation to this Task.
|
<TContinuationResult>
Task<TContinuationResult>
|
continueWithTask(Continuation<FileDownloadTask.TaskSnapshot, Task<TContinuationResult>> continuation)
Returns a new Task that will be completed with the result of applying the specified
Continuation to this Task.
|
Exception
|
getException()
Returns the exception that caused the Task to fail.
|
FileDownloadTask.TaskSnapshot
|
getResult()
Gets the result of the Task, if it has already completed.
|
<X extends Throwable>
FileDownloadTask.TaskSnapshot
|
getResult(Class<X> exceptionType)
Gets the result of the Task, if it has already completed.
|
FileDownloadTask.TaskSnapshot
|
getSnapshot()
Returns the current state of the task.
|
boolean
|
isCanceled()
Returns true if the task has been canceled.
|
boolean
|
isComplete()
Returns true if the Task is complete; false otherwise.
|
boolean
|
isInProgress()
Returns true if the task is currently running.
|
boolean
|
isPaused()
Returns true if the task has been paused.
|
boolean
|
isSuccessful()
Returns true if the Task has completed successfully; false otherwise.
|
void
|
onCanceled()
|
void
|
onFailure()
|
void
|
onPaused()
|
void
|
onProgress()
|
void
|
onQueued()
|
void
|
onSuccess()
|
boolean
|
pause()
Attempts to pause the task.
|
StorageTask<FileDownloadTask.TaskSnapshot>
|
removeOnCompleteListener(OnCompleteListener<FileDownloadTask.TaskSnapshot> listener)
Removes a listener.
|
StorageTask<FileDownloadTask.TaskSnapshot>
|
removeOnFailureListener(OnFailureListener listener)
Removes a listener.
|
StorageTask<FileDownloadTask.TaskSnapshot>
|
removeOnPausedListener(OnPausedListener<? super TResult> listener)
Removes a listener.
|
StorageTask<FileDownloadTask.TaskSnapshot>
|
removeOnProgressListener(OnProgressListener<? super TResult> listener)
Removes a listener.
|
StorageTask<FileDownloadTask.TaskSnapshot>
|
removeOnSuccessListener(OnSuccessListener<? super TResult> listener)
Removes a listener.
|
boolean
|
resume()
Attempts to resume a paused task.
|