Represents the task of loading a Firestore bundle. It provides progress of bundle loading, as well as task completion and error events.
| Task<LoadBundleTaskProgress> |
addOnCanceledListener(OnCanceledListener onCanceledListener)
Adds a listener that is called if the
Task is canceled. |
| Task<LoadBundleTaskProgress> |
addOnCanceledListener(Executor executor, OnCanceledListener onCanceledListener)
Adds a listener that is called if the
Task is canceled. |
| Task<LoadBundleTaskProgress> |
addOnCanceledListener(Activity activity, OnCanceledListener onCanceledListener)
Adds an Activity-scoped listener that is called if the
Task is canceled. |
| Task<LoadBundleTaskProgress> |
addOnCompleteListener(Executor executor, OnCompleteListener<LoadBundleTaskProgress> onCompleteListener)
Adds a listener that is called when the
Task succeeds or fails. |
| Task<LoadBundleTaskProgress> |
addOnCompleteListener(Activity activity, OnCompleteListener<LoadBundleTaskProgress> onCompleteListener)
Adds a listener that is called when the
Task succeeds or fails. |
| Task<LoadBundleTaskProgress> |
addOnCompleteListener(OnCompleteListener<LoadBundleTaskProgress> onCompleteListener)
Adds a listener that is called when the
Task succeeds or fails. |
| Task<LoadBundleTaskProgress> |
addOnFailureListener(Activity activity, OnFailureListener onFailureListener)
Adds a listener that is called if the
Task fails. |
| Task<LoadBundleTaskProgress> |
addOnFailureListener(OnFailureListener onFailureListener)
Adds a listener that is called if the
Task fails. |
| Task<LoadBundleTaskProgress> |
addOnFailureListener(Executor executor, OnFailureListener onFailureListener)
Adds a listener that is called if the
Task fails. |
| LoadBundleTask |
addOnProgressListener(OnProgressListener<LoadBundleTaskProgress> listener)
Adds a listener that is called periodically while the
LoadBundleTask executes. |
| LoadBundleTask |
addOnProgressListener(Executor executor, OnProgressListener<LoadBundleTaskProgress> listener)
Adds a listener that is called periodically while the
LoadBundleTask executes. |
| LoadBundleTask |
addOnProgressListener(Activity activity, OnProgressListener<LoadBundleTaskProgress> listener)
Adds a listener that is called periodically while the
LoadBundleTask executes. |
| Task<LoadBundleTaskProgress> |
addOnSuccessListener(OnSuccessListener<? super LoadBundleTaskProgress> onSuccessListener)
Adds a listener that is called if the
Task completes successfully. |
| Task<LoadBundleTaskProgress> |
addOnSuccessListener(Executor executor, OnSuccessListener<? super LoadBundleTaskProgress> onSuccessListener)
Adds a listener that is called if the
Task completes successfully. |
| Task<LoadBundleTaskProgress> |
addOnSuccessListener(Activity activity, OnSuccessListener<? super LoadBundleTaskProgress> onSuccessListener)
Adds a listener that is called if the
Task completes successfully. |
| <TContinuationResult> Task<TContinuationResult> |
continueWith(Executor executor, Continuation<LoadBundleTaskProgress, 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(Continuation<LoadBundleTaskProgress, 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<LoadBundleTaskProgress, 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<LoadBundleTaskProgress, 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. |
| LoadBundleTaskProgress |
getResult()
Gets the result of the
Task, if it has already completed. |
| <X extends Throwable> LoadBundleTaskProgress | |
| boolean |
isCanceled()
Returns
true if the task has been canceled. |
| boolean |
isComplete()
Returns
true if the Task is complete; false otherwise. |
| boolean |
isSuccessful()
Returns
true if the Task has completed successfully; false otherwise. |
| <TContinuationResult> Task<TContinuationResult> |
onSuccessTask(Executor executor, SuccessContinuation<LoadBundleTaskProgress, TContinuationResult> successContinuation)
Returns a new
Task that will be completed with the result of applying the specified
SuccessContinuation to this Task when this Task completes successfully. |
| <TContinuationResult> Task<TContinuationResult> |
onSuccessTask(SuccessContinuation<LoadBundleTaskProgress, TContinuationResult> successContinuation)
Returns a new
Task that will be completed with the result of applying the specified
SuccessContinuation to this Task when this Task completes successfully. |
Adds a listener that is called if the Task is canceled.
The listener will be called on main application thread. If the Task has already been
canceled, a call to the listener will be immediately scheduled. If multiple listeners are
added, they will be called in the order in which they were added.
| onCanceledListener |
|---|
Task
Adds a listener that is called if the Task is canceled.
If the task has already been canceled, a call to the listener will be immediately scheduled. If multiple listeners are added, they will be called in the order in which they were added.
| executor | the executor to use to call the listener |
|---|---|
| onCanceledListener |
Adds an Activity-scoped listener that is called if the Task is canceled.
The listener will be called on main application thread. If the task has already been canceled, a call to the listener will be immediately scheduled. If multiple listeners are added, they will be called in the order in which they were added.
The listener will be automatically removed during onStop().
| activity | |
|---|---|
| onCanceledListener |
Adds a listener that is called when the Task succeeds or fails.
If the task has already failed, a call to the listener will be immediately scheduled. If multiple listeners are added, they will be called in the order in which they were added.
| executor | the executor to use to call the listener |
|---|---|
| onCompleteListener |
Task
Adds a listener that is called when the Task succeeds or fails.
If the task has already failed, a call to the listener will be immediately scheduled. If multiple listeners are added, they will be called in the order in which they were added.
| activity | When the supplied Activity stops, this listener will automatically be
removed. |
|---|---|
| onCompleteListener |
Task
Adds a listener that is called when the Task succeeds or fails.
The listener will be called on main application thread. If the task has already failed, a call to the listener will be immediately scheduled. If multiple listeners are added, they will be called in the order in which they were added.
| onCompleteListener |
|---|
Task
Adds a listener that is called if the Task fails.
If the task has already failed, a call to the listener will be immediately scheduled. If multiple listeners are added, they will be called in the order in which they were added.
| activity | When the supplied Activity stops, this listener will automatically be
removed. |
|---|---|
| onFailureListener |
Task
Adds a listener that is called if the Task fails.
The listener will be called on main application thread. If the task has already failed, a call to the listener will be immediately scheduled. If multiple listeners are added, they will be called in the order in which they were added.
| onFailureListener |
|---|
Task
Adds a listener that is called if the Task fails.
If the task has already failed, a call to the listener will be immediately scheduled. If multiple listeners are added, they will be called in the order in which they were added.
| executor | the executor to use to call the listener |
|---|---|
| onFailureListener |
Task
Adds a listener that is called periodically while the LoadBundleTask executes.
The listener will be called on main application thread. If multiple listeners are added, they will be called in the order in which they were added.
The listener will be automatically removed during onStop().
| listener |
|---|
Task
Adds a listener that is called periodically while the LoadBundleTask executes.
If multiple listeners are added, they will be called in the order in which they were added.
| executor | the executor to use to call the listener |
|---|---|
| listener |
Task
Adds a listener that is called periodically while the LoadBundleTask executes.
The listener will be called on main application thread. If multiple listeners are added, they will be called in the order in which they were added.
The listener will be automatically removed during onStop().
| activity | When the supplied Activity stops, this listener will automatically be
removed. |
|---|---|
| listener |
Task
Adds a listener that is called if the Task completes successfully. The listener will be
called on the main application thread. If the task has already completed successfully, a call
to the listener will be immediately scheduled. If multiple listeners are added, they will be
called in the order in which they were added.
| onSuccessListener |
|---|
Task
Adds a listener that is called if the Task completes successfully.
If multiple listeners are added, they will be called in the order in which they were added. If the task has already completed successfully, a call to the listener will be immediately scheduled.
| executor | the executor to use to call the listener |
|---|---|
| onSuccessListener |
Task
Adds a listener that is called if the Task completes successfully.
If multiple listeners are added, they will be called in the order in which they were added. If the task has already completed successfully, a call to the listener will be immediately scheduled.
| activity | When the supplied Activity stops, this listener will automatically be
removed. |
|---|---|
| onSuccessListener |
Task
Returns a new Task that will be completed with the result of applying the specified
Continuation to this Task.
| executor | the executor to use to call the Continuation |
|---|---|
| continuation |
Returns a new Task that will be completed with the result of applying the specified
Continuation to this Task.
The Continuation will be called on the main application thread.
| continuation |
|---|
Returns a new Task that will be completed with the result of applying the specified
Continuation to this Task.
| executor | the executor to use to call the Continuation |
|---|---|
| continuation |
Returns a new Task that will be completed with the result of applying the specified
Continuation to this Task.
The Continuation will be called on the main application thread.
| continuation |
|---|
Returns the exception that caused the Task to fail. Returns null if the Task is
not yet complete, or completed successfully.
Gets the result of the Task, if it has already completed.
| IllegalStateException | if the Task is not yet complete |
|---|---|
| RuntimeExecutionException | if the Task failed with an exception |
Gets the result of the Task, if it has already completed.
| exceptionType |
|---|
| IllegalStateException | if the Task is not yet complete |
|---|---|
| if the Task failed with an exception of type X | |
| RuntimeExecutionException | if the Task failed with an exception that was not of type X |
| Throwable |
Returns true if the task has been canceled.
Returns true if the Task is complete; false otherwise.
Returns true if the Task has completed successfully; false otherwise.
Returns a new Task that will be completed with the result of applying the specified
SuccessContinuation to this Task when this Task completes successfully.
If the previous Task fails, the onSuccessTask completion will be skipped and
failure listeners will be invoked.
If the previous Task is canceled, the returned Task will also be canceled
and the SuccessContinuation would not execute.
| executor | the executor to use to call the SuccessContinuation |
|---|---|
| successContinuation |
Returns a new Task that will be completed with the result of applying the specified
SuccessContinuation to this Task when this Task completes successfully.
If the previous Task fails, the onSuccessTask completion will be skipped and
failure listeners will be invoked.
The SuccessContinuation will be called on the main application thread.
If the previous Task is canceled, the returned Task will also be canceled and the
SuccessContinuation would not execute.
| successContinuation |
|---|