CancelableOperation

A cancelable operation that executes its task on a specific looper.

Constructors

Link copied to clipboard
constructor()
CancelableOperation constructor.
constructor(@Nullable looper: Looper)
CancelableOperation constructor.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
Adds a Cancelable that will be called when operation is cancelled.
Link copied to clipboard
Adds a runnable that will be called when operation is finished.
Link copied to clipboard
fun cancel(mayInterruptIfRunning: Boolean): Boolean
Cancels the operation.
Link copied to clipboard
Determines if the operation is canceled.
Link copied to clipboard
Determines if the operation is canceled or completed.
Link copied to clipboard
fun run()