StreamDownloadTask

classStreamDownloadTask :StorageTask


A task that downloads bytes of a GCS blob.

Summary

Nested types

A callback that is used to handle the stream download

Encapsulates state about the runningStreamDownloadTask

Protected functions

Unit
Unit

Inherited functions

Fromcom.google.firebase.storage.CancellableTask
abstractCancellableTask<StateT!>

Adds a listener that is called periodically while the ControllableTask executes.

abstractCancellableTask<StateT!>
addOnProgressListener(
    activity: Activity,
    listener: OnProgressListener<Any!>
)

Adds a listener that is called periodically while the ControllableTask executes.

abstractCancellableTask<StateT!>
addOnProgressListener(
    executor: Executor,
    listener: OnProgressListener<Any!>
)

Adds a listener that is called periodically while the ControllableTask executes.

Fromcom.google.firebase.storage.ControllableTask
abstractControllableTask<StateT!>

Adds a listener that is called when the Task becomes paused.

abstractControllableTask<StateT!>

Adds a listener that is called when the Task becomes paused.

abstractControllableTask<StateT!>

Adds a listener that is called when the Task becomes paused.

Fromcom.google.firebase.storage.StorageTask
StorageTask<ResultT!>

Adds a listener that is called if the Task is canceled.

StorageTask<ResultT!>

Adds an Activity-scoped listener that is called if the Task is canceled.

StorageTask<ResultT!>

Adds a listener that is called if the Task is canceled.

StorageTask<ResultT!>

Adds a listener that is called when the Task succeeds or fails.

StorageTask<ResultT!>
addOnCompleteListener(
    activity: Activity,
    listener: OnCompleteListener<ResultT!>
)

Adds a listener that is called when the Task succeeds or fails.

StorageTask<ResultT!>
addOnCompleteListener(
    executor: Executor,
    listener: OnCompleteListener<ResultT!>
)

Adds a listener that is called when the Task succeeds or fails.

StorageTask<ResultT!>

Adds a listener that is called if the Task fails.

StorageTask<ResultT!>

Adds a listener that is called if the Task fails.

StorageTask<ResultT!>

Adds a listener that is called if the Task fails.

StorageTask<ResultT!>

Adds a listener that is called when the Task becomes paused.

StorageTask<ResultT!>

Adds a listener that is called when the Task becomes paused.

StorageTask<ResultT!>

Adds a listener that is called when the Task becomes paused.

StorageTask<ResultT!>

Adds a listener that is called periodically while the ControllableTask executes.

StorageTask<ResultT!>
addOnProgressListener(
    activity: Activity,
    listener: OnProgressListener<Any!>
)

Adds a listener that is called periodically while the ControllableTask executes.

StorageTask<ResultT!>
addOnProgressListener(
    executor: Executor,
    listener: OnProgressListener<Any!>
)

Adds a listener that is called periodically while the ControllableTask executes.

StorageTask<ResultT!>

Adds a listener that is called if the Task completes successfully.

StorageTask<ResultT!>
addOnSuccessListener(
    activity: Activity,
    listener: OnSuccessListener<Any!>
)

Adds a listener that is called if the Task completes successfully.

StorageTask<ResultT!>
addOnSuccessListener(
    executor: Executor,
    listener: OnSuccessListener<Any!>
)

Adds a listener that is called if the Task completes successfully.

Boolean

Attempts to cancel the task.

Task<ContinuationResultT!>
<ContinuationResultT>continueWith(
    continuation: Continuation<ResultT!, ContinuationResultT!>
)

Returns a new Task that will be completed with the result of applying the specified Continuation to this Task.

Task<ContinuationResultT!>
<ContinuationResultT>continueWith(
    executor: Executor,
    continuation: Continuation<ResultT!, ContinuationResultT!>
)

Returns a new Task that will be completed with the result of applying the specified Continuation to this Task.

Task<ContinuationResultT!>
<ContinuationResultT>continueWithTask(
    continuation: Continuation<ResultT!, Task<ContinuationResultT!>!>
)

Returns a new Task that will be completed with the result of applying the specified Continuation to this Task.

Task<ContinuationResultT!>
<ContinuationResultT>continueWithTask(
    executor: Executor,
    continuation: Continuation<ResultT!, Task<ContinuationResultT!>!>
)

Returns a new Task that will be completed with the result of applying the specified Continuation to this Task.

Exception?

Returns the exception that caused the Task to fail.

ResultT

Gets the result of the Task, if it has already completed.

ResultT
<X : Throwable?>getResult(exceptionType: Class<X!>)

Gets the result of the Task, if it has already completed.

ResultT

Returns the current state of the task.

Boolean

Returnstrue if the task has been canceled.

Boolean

Returnstrue if the Task is complete;false otherwise.

Boolean

Returnstrue if the task is currently running.

Boolean

Returnstrue if the task has been paused.

Boolean

Returnstrue if the Task has completed successfully;false otherwise.

Unit
Unit
Unit
Unit
Task<ContinuationResultT!>
<ContinuationResultT>onSuccessTask(
    continuation: SuccessContinuation<ResultT!, ContinuationResultT!>
)

Returns a new Task that will be completed with the result of applying the specified SuccessContinuation to this Task when this Task completes successfully.

Task<ContinuationResultT!>
<ContinuationResultT>onSuccessTask(
    executor: Executor,
    continuation: SuccessContinuation<ResultT!, ContinuationResultT!>
)

Returns a new Task that will be completed with the result of applying the specified SuccessContinuation to this Task when this Task completes successfully.

StorageTask<ResultT!>

Removes a listener.

StorageTask<ResultT!>

Removes a listener.

StorageTask<ResultT!>

Removes a listener.

StorageTask<ResultT!>

Removes a listener.

StorageTask<ResultT!>

Removes a listener.

StorageTask<ResultT!>

Removes a listener.

Fromcom.google.android.gms.tasks.Task
Task<TResult!>!
Task<TResult!>!
abstractTask<TResult!>!
abstractTask<TResult!>!
Task<TContinuationResult!>!
<TContinuationResult>continueWith(
    p: Continuation<TResult!, TContinuationResult!>!
)
Task<TContinuationResult!>!
<TContinuationResult>continueWithTask(
    p: Continuation<TResult!, Task<TContinuationResult!>!>!
)
abstractException!
abstract TResult!
abstractBoolean
abstractBoolean
abstractBoolean
Task<TContinuationResult!>!
<TContinuationResult>onSuccessTask(
    p: SuccessContinuation<TResult!, TContinuationResult!>!
)

Protected functions

onCanceled

protected fun onCanceled(): Unit

onProgress

protected fun onProgress(): Unit

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-21 UTC.