ControllableTask

Inheritors

A CancellableTask that can also be paused and resumed, as the Android SDK's ControllableTask.

Inheritors

Inheritors

Inheritors

Constructors

Link copied to clipboard
actual constructor()
expect constructor()
actual constructor()
actual constructor()

Properties

Link copied to clipboard
actual abstract val isInProgress: Boolean
expect abstract val isInProgress: Boolean

Whether the task is running (not complete, cancelled or paused).

actual abstract val isInProgress: Boolean
actual abstract val isInProgress: Boolean
Link copied to clipboard
actual abstract val isPaused: Boolean
expect abstract val isPaused: Boolean

Whether the task is paused.

actual abstract val isPaused: Boolean
actual abstract val isPaused: Boolean

Functions

Link copied to clipboard

Adds a listener called with a snapshot when the task is paused.

Link copied to clipboard

Adds a listener called with a snapshot whenever progress is made.

Link copied to clipboard
actual abstract fun cancel(): Boolean
expect abstract fun cancel(): Boolean

Cancels the task; true if it was running.

actual abstract fun cancel(): Boolean
actual abstract fun cancel(): Boolean
Link copied to clipboard
abstract fun getException(): Exception?
Link copied to clipboard
abstract fun getResult(): StateT
abstract fun <X : Throwable> getResult(@NonNull p0: Class<X>): StateT
abstract fun getResult(): StateT
abstract fun <X : Throwable> getResult(p0: Class<X>): StateT
Link copied to clipboard
abstract fun isCanceled(): Boolean
abstract fun isCanceled(): Boolean
Link copied to clipboard
abstract fun isComplete(): Boolean
abstract fun isComplete(): Boolean
Link copied to clipboard
abstract fun isSuccessful(): Boolean
abstract fun isSuccessful(): Boolean
Link copied to clipboard
actual abstract fun pause(): Boolean
expect abstract fun pause(): Boolean

Pauses the task; true if it was running.

actual abstract fun pause(): Boolean
actual abstract fun pause(): Boolean
Link copied to clipboard
actual abstract fun resume(): Boolean
expect abstract fun resume(): Boolean

Resumes the task; true if it was paused.

actual abstract fun resume(): Boolean
actual abstract fun resume(): Boolean