StorageTask

A long-running Cloud Storage operation with progress, pause, resume and cancel, as the Android SDK's StorageTask. Listeners are called on the thread that completes or progresses the task on Apple platforms and JS. The Task members (isComplete, result, exception, ...) are inherited; the task subclasses are abstract, as instances only come from a StorageReference.

Inheritors

A long-running Cloud Storage operation with progress, pause, resume and cancel, as the Android SDK's StorageTask. Listeners are called on the thread that completes or progresses the task on Apple platforms and JS. The Task members (isComplete, result, exception, ...) are inherited; the task subclasses are abstract, as instances only come from a StorageReference.

Inheritors

A long-running Cloud Storage operation with progress, pause, resume and cancel, as the Android SDK's StorageTask. Listeners are called on the thread that completes or progresses the task on Apple platforms and JS. The Task members (isComplete, result, exception, ...) are inherited; the task subclasses are abstract, as instances only come from a StorageReference.

Inheritors

Types

Link copied to clipboard
actual interface ProvideError

What a task's result provides: the error it failed with, if any.

expect interface ProvideError

What a task's result provides: the error it failed with, if any.

actual interface ProvideError

What a task's result provides: the error it failed with, if any.

Link copied to clipboard
actual open inner class SnapshotBase : StorageTask.ProvideError

The base of a task's snapshots: the error, if any, and the task and reference they belong to.

expect open inner class SnapshotBase : StorageTask.ProvideError

The base of a task's snapshots: the error, if any, and the task and reference they belong to.

actual open inner class SnapshotBase : StorageTask.ProvideError

The base of a task's snapshots: the error, if any, and the task and reference they belong to.

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 open override val isInProgress: Boolean

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

expect open override val isInProgress: Boolean

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

actual open override val isInProgress: Boolean

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

Link copied to clipboard
actual open override val isPaused: Boolean

Whether the task is paused.

expect open override val isPaused: Boolean

Whether the task is paused.

actual open override 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: ResultT?
expect abstract val result: ResultT
abstract val result: ResultT
Link copied to clipboard
actual val snapshot: ResultT

The current state of the task, whether or not it is complete.

expect val snapshot: ResultT

The current state of the task, whether or not it is complete.

actual val snapshot: ResultT

The current state of the task, whether or not it is complete.

Link copied to clipboard

The progress and pauses of this task as a Flow, which completes with the task.

Functions

Link copied to clipboard
Link copied to clipboard
expect open override fun addOnFailureListener(listener: OnFailureListener): StorageTask<ResultT>
actual open override fun addOnFailureListener(listener: OnFailureListener): StorageTask<ResultT>
Link copied to clipboard
actual open override fun addOnPausedListener(listener: OnPausedListener<ResultT>): StorageTask<ResultT>

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

expect open override fun addOnPausedListener(listener: OnPausedListener<ResultT>): StorageTask<ResultT>

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

actual open override fun addOnPausedListener(listener: OnPausedListener<ResultT>): StorageTask<ResultT>

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

Link copied to clipboard
actual open override fun addOnProgressListener(listener: OnProgressListener<ResultT>): StorageTask<ResultT>

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

expect open override fun addOnProgressListener(listener: OnProgressListener<ResultT>): StorageTask<ResultT>

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

actual open override fun addOnProgressListener(listener: OnProgressListener<ResultT>): StorageTask<ResultT>

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

Link copied to clipboard
expect open override fun addOnSuccessListener(listener: OnSuccessListener<in ResultT>): StorageTask<ResultT>
actual open override fun addOnSuccessListener(listener: OnSuccessListener<in ResultT>): StorageTask<ResultT>
Link copied to clipboard
actual open override fun cancel(): Boolean

Cancels the task; true if it was running.

expect open override fun cancel(): Boolean

Cancels the task; true if it was running.

actual open override fun cancel(): Boolean

Cancels the task; true if it was running.

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

Pauses the task; true if it was running.

expect open override fun pause(): Boolean

Pauses the task; true if it was running.

actual open override fun pause(): Boolean

Pauses the task; true if it was running.

Link copied to clipboard
actual open override fun resume(): Boolean

Resumes the task; true if it was paused.

expect open override fun resume(): Boolean

Resumes the task; true if it was paused.

actual open override fun resume(): Boolean

Resumes the task; true if it was paused.