|
Known Direct Subclasses
ControllableTask<TState>
|
|
Known Indirect Subclasses
FileDownloadTask,
StorageTask<TResult extends StorageTask.ProvideError>,
StreamDownloadTask,
UploadTask
|
Represents an asynchronous operation that can be canceled.
| abstract CancellableTask<TState> |
addOnProgressListener(OnProgressListener<? super TState> listener)
Adds a listener that is called periodically while the ControllableTask executes.
|
| abstract CancellableTask<TState> |
addOnProgressListener(Executor executor, OnProgressListener<? super TState> listener)
Adds a listener that is called periodically while the ControllableTask executes.
|
| abstract CancellableTask<TState> |
addOnProgressListener(Activity activity, OnProgressListener<? super TState> listener)
Adds a listener that is called periodically while the ControllableTask executes.
|
| abstract boolean |
cancel()
Attempts to cancel the task.
|
| abstract boolean | |
| abstract boolean |
Adds a listener that is called periodically while the ControllableTask executes.
| listener |
|---|
Adds a listener that is called periodically while the ControllableTask executes.
| executor | the executor to use to call the listener |
|---|---|
| listener |
Adds a listener that is called periodically while the ControllableTask executes.
| activity | When the supplied Activity stops, this listener will automatically be
removed. |
|---|---|
| listener |
Attempts to cancel the task. A canceled task cannot be resumed later. A canceled task calls
back on listeners subscribed to addOnFailureListener(OnFailureListener) with an
exception that indicates the task was canceled.