| java.lang.Object | ||
| ↳ | com.google.android.gms.tasks.Task<TState> | |
| ↳ | com.google.firebase.storage.CancellableTask<TState> | |
Known Direct Subclasses
ControllableTask<TState>
|
Known Indirect Subclasses
FileDownloadTask,
StorageTask<TResult extends StorageTask.ProvideError>,
StreamDownloadTask,
UploadTask
|
Represents an asynchronous operation that can be canceled.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Adds a listener that is called periodically while the ControllableTask executes.
| |||||||||||
Adds a listener that is called periodically while the ControllableTask executes.
| |||||||||||
Adds a listener that is called periodically while the ControllableTask executes.
| |||||||||||
Attempts to cancel the task.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.android.gms.tasks.Task
| |||||||||||
From class
java.lang.Object
| |||||||||||
Adds a listener that is called periodically while the ControllableTask executes.
Adds a listener that is called periodically while the ControllableTask executes.
| executor | the executor to use to call the listener |
|---|
Adds a listener that is called periodically while the ControllableTask executes.
| activity | When the supplied Activity stops, this listener will automatically
be removed. |
|---|
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.