ControllableTask

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

Inheritors

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

Inheritors

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

Inheritors

Constructors

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

Properties

Link copied to clipboard
abstract override val exception: Exception?
expect abstract val exception: Exception?
abstract val exception: Exception?
Link copied to clipboard
abstract override val isCanceled: Boolean
expect abstract val isCanceled: Boolean
abstract val isCanceled: Boolean
Link copied to clipboard
abstract override val isComplete: Boolean
expect abstract val isComplete: Boolean
abstract val isComplete: Boolean
Link copied to clipboard
actual abstract val isInProgress: Boolean

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

expect abstract val isInProgress: Boolean

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

actual abstract val isInProgress: Boolean

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

Link copied to clipboard
actual abstract val isPaused: Boolean

Whether the task is paused.

expect abstract val isPaused: Boolean

Whether the task is paused.

actual abstract val isPaused: Boolean

Whether the task is paused.

Link copied to clipboard
abstract override val isSuccessful: Boolean
expect abstract val isSuccessful: Boolean
abstract val isSuccessful: Boolean
Link copied to clipboard
abstract override val result: StateT?
expect abstract val result: StateT
abstract val result: StateT

Functions

Link copied to clipboard

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

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

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.

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

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

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

Cancels the task; true if it was running.

expect abstract fun cancel(): Boolean

Cancels the task; true if it was running.

actual abstract fun cancel(): Boolean

Cancels the task; true if it was running.

Link copied to clipboard
abstract fun getResult(): StateT?
abstract fun <X : Throwable?> getResult(@NonNull p0: Class<X?>): StateT?
Link copied to clipboard
actual abstract fun pause(): Boolean

Pauses the task; true if it was running.

expect abstract fun pause(): Boolean

Pauses the task; true if it was running.

actual abstract fun pause(): Boolean

Pauses the task; true if it was running.

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

Resumes the task; true if it was paused.

expect abstract fun resume(): Boolean

Resumes the task; true if it was paused.

actual abstract fun resume(): Boolean

Resumes the task; true if it was paused.