|
Task<StreamDownloadTask.TaskSnapshot>
|
addOnCompleteListener(OnCompleteListener<StreamDownloadTask.TaskSnapshot> listener)
Adds a listener that is called when the Task completes.
|
|
Task<StreamDownloadTask.TaskSnapshot>
|
addOnCompleteListener(Activity activity, OnCompleteListener<StreamDownloadTask.TaskSnapshot> listener)
Adds an Activity-scoped listener that is called when the Task completes.
|
|
Task<StreamDownloadTask.TaskSnapshot>
|
addOnCompleteListener(Executor executor, OnCompleteListener<StreamDownloadTask.TaskSnapshot> listener)
Adds a listener that is called when the Task completes.
|
|
abstract
Task<StreamDownloadTask.TaskSnapshot>
|
addOnFailureListener(Activity activity, OnFailureListener listener)
Adds an Activity-scoped listener that is called if the Task fails.
|
|
abstract
Task<StreamDownloadTask.TaskSnapshot>
|
addOnFailureListener(OnFailureListener listener)
Adds a listener that is called if the Task fails.
|
|
abstract
Task<StreamDownloadTask.TaskSnapshot>
|
addOnFailureListener(Executor executor, OnFailureListener listener)
Adds a listener that is called if the Task fails.
|
|
abstract
Task<StreamDownloadTask.TaskSnapshot>
|
addOnSuccessListener(Executor executor, OnSuccessListener<? super TResult> listener)
Adds a listener that is called if the Task completes successfully.
|
|
abstract
Task<StreamDownloadTask.TaskSnapshot>
|
addOnSuccessListener(OnSuccessListener<? super TResult> listener)
Adds a listener that is called if the Task completes successfully.
|
|
abstract
Task<StreamDownloadTask.TaskSnapshot>
|
addOnSuccessListener(Activity activity, OnSuccessListener<? super TResult> listener)
Adds an Activity-scoped listener that is called if the Task completes
successfully.
|
|
<TContinuationResult>
Task<TContinuationResult>
|
continueWith(Continuation<StreamDownloadTask.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<StreamDownloadTask.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(Continuation<StreamDownloadTask.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(Executor executor, Continuation<StreamDownloadTask.TaskSnapshot, Task<TContinuationResult>> continuation)
Returns a new Task that will be completed with the result of applying the specified
Continuation to this Task.
|
|
abstract
Exception
|
getException()
Returns the exception that caused the Task to fail.
|
|
abstract
StreamDownloadTask.TaskSnapshot
|
getResult()
Gets the result of the Task, if it has already completed.
|
|
abstract
<X extends Throwable>
StreamDownloadTask.TaskSnapshot
|
getResult(Class<X> exceptionType)
Gets the result of the Task, if it has already completed.
|
|
abstract
boolean
|
isComplete()
Returns true if the Task is complete; false otherwise.
|
|
abstract
boolean
|
isSuccessful()
Returns true if the Task has completed successfully; false otherwise.
|