# StreamDownloadTask

# StreamDownloadTask


```
class StreamDownloadTask : StorageTask
```

<br />

|---|---|---|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||||||
| ↳ | [com.google.android.gms.tasks.Task](https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html) |||||
|   | ↳ | [com.google.firebase.storage.CancellableTask](https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/CancellableTask) ||||
|   |   | ↳ | [com.google.firebase.storage.ControllableTask](https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/ControllableTask) |||
|   |   |   | ↳ | [com.google.firebase.storage.StorageTask](https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask) ||
|   |   |   |   | ↳ | [com.google.firebase.storage.StreamDownloadTask](https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StreamDownloadTask) |

*** ** * ** ***

A task that downloads bytes of a GCS blob.

## Summary

| ### Nested types |
|---|
| `interface https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StreamDownloadTask.StreamProcessor` A callback that is used to handle the stream download |
| `class https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StreamDownloadTask.TaskSnapshot : https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask.SnapshotBase` Encapsulates state about the running `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StreamDownloadTask` |

| ### Protected functions |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StreamDownloadTask#onCanceled()()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StreamDownloadTask#onProgress()()` |

| ### Inherited functions |
|---|
| From [com.google.firebase.storage.CancellableTask](https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/CancellableTask) |---|---| | `abstract https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/CancellableTask<StateT!>` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/CancellableTask#addOnProgressListener(com.google.firebase.storage.OnProgressListener<? super StateT>)(listener: https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/OnProgressListener<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html!>)` Adds a listener that is called periodically while the ControllableTask executes. | | `abstract https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/CancellableTask<StateT!>` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/CancellableTask#addOnProgressListener(android.app.Activity,com.google.firebase.storage.OnProgressListener<? super StateT>)( activity: https://developer.android.com/reference/kotlin/android/app/Activity.html, listener: https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/OnProgressListener<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html!> )` Adds a listener that is called periodically while the ControllableTask executes. | | `abstract https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/CancellableTask<StateT!>` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/CancellableTask#addOnProgressListener(java.util.concurrent.Executor,com.google.firebase.storage.OnProgressListener<? super StateT>)( executor: https://developer.android.com/reference/kotlin/java/util/concurrent/Executor.html, listener: https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/OnProgressListener<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html!> )` Adds a listener that is called periodically while the ControllableTask executes. | |
| From [com.google.firebase.storage.ControllableTask](https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/ControllableTask) |---|---| | `abstract https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/ControllableTask<StateT!>` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/ControllableTask#addOnPausedListener(com.google.firebase.storage.OnPausedListener<? super StateT>)(listener: https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/OnPausedListener<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html!>)` Adds a listener that is called when the Task becomes paused. | | `abstract https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/ControllableTask<StateT!>` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/ControllableTask#addOnPausedListener(android.app.Activity,com.google.firebase.storage.OnPausedListener<? super StateT>)(activity: https://developer.android.com/reference/kotlin/android/app/Activity.html, listener: https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/OnPausedListener<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html!>)` Adds a listener that is called when the Task becomes paused. | | `abstract https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/ControllableTask<StateT!>` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/ControllableTask#addOnPausedListener(java.util.concurrent.Executor,com.google.firebase.storage.OnPausedListener<? super StateT>)(executor: https://developer.android.com/reference/kotlin/java/util/concurrent/Executor.html, listener: https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/OnPausedListener<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html!>)` Adds a listener that is called when the Task becomes paused. | |
| From [com.google.firebase.storage.StorageTask](https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask) |---|---| | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask<ResultT!>` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#addOnCanceledListener(com.google.android.gms.tasks.OnCanceledListener)(listener: https://developers.google.com/android/reference/com/google/android/gms/tasks/OnCanceledListener.html)` Adds a listener that is called if the Task is canceled. | | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask<ResultT!>` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#addOnCanceledListener(android.app.Activity,com.google.android.gms.tasks.OnCanceledListener)(activity: https://developer.android.com/reference/kotlin/android/app/Activity.html, listener: https://developers.google.com/android/reference/com/google/android/gms/tasks/OnCanceledListener.html)` Adds an Activity-scoped listener that is called if the Task is canceled. | | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask<ResultT!>` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#addOnCanceledListener(java.util.concurrent.Executor,com.google.android.gms.tasks.OnCanceledListener)(executor: https://developer.android.com/reference/kotlin/java/util/concurrent/Executor.html, listener: https://developers.google.com/android/reference/com/google/android/gms/tasks/OnCanceledListener.html)` Adds a listener that is called if the Task is canceled. | | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask<ResultT!>` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#addOnCompleteListener(com.google.android.gms.tasks.OnCompleteListener<ResultT>)(listener: https://developers.google.com/android/reference/com/google/android/gms/tasks/OnCompleteListener.html<ResultT!>)` Adds a listener that is called when the Task succeeds or fails. | | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask<ResultT!>` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#addOnCompleteListener(android.app.Activity,com.google.android.gms.tasks.OnCompleteListener<ResultT>)( activity: https://developer.android.com/reference/kotlin/android/app/Activity.html, listener: https://developers.google.com/android/reference/com/google/android/gms/tasks/OnCompleteListener.html<ResultT!> )` Adds a listener that is called when the Task succeeds or fails. | | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask<ResultT!>` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#addOnCompleteListener(java.util.concurrent.Executor,com.google.android.gms.tasks.OnCompleteListener<ResultT>)( executor: https://developer.android.com/reference/kotlin/java/util/concurrent/Executor.html, listener: https://developers.google.com/android/reference/com/google/android/gms/tasks/OnCompleteListener.html<ResultT!> )` Adds a listener that is called when the Task succeeds or fails. | | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask<ResultT!>` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#addOnFailureListener(com.google.android.gms.tasks.OnFailureListener)(listener: https://developers.google.com/android/reference/com/google/android/gms/tasks/OnFailureListener.html)` Adds a listener that is called if the Task fails. | | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask<ResultT!>` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#addOnFailureListener(android.app.Activity,com.google.android.gms.tasks.OnFailureListener)(activity: https://developer.android.com/reference/kotlin/android/app/Activity.html, listener: https://developers.google.com/android/reference/com/google/android/gms/tasks/OnFailureListener.html)` Adds a listener that is called if the Task fails. | | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask<ResultT!>` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#addOnFailureListener(java.util.concurrent.Executor,com.google.android.gms.tasks.OnFailureListener)(executor: https://developer.android.com/reference/kotlin/java/util/concurrent/Executor.html, listener: https://developers.google.com/android/reference/com/google/android/gms/tasks/OnFailureListener.html)` Adds a listener that is called if the Task fails. | | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask<ResultT!>` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#addOnPausedListener(com.google.firebase.storage.OnPausedListener<? super ResultT>)(listener: https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/OnPausedListener<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html!>)` Adds a listener that is called when the Task becomes paused. | | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask<ResultT!>` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#addOnPausedListener(android.app.Activity,com.google.firebase.storage.OnPausedListener<? super ResultT>)(activity: https://developer.android.com/reference/kotlin/android/app/Activity.html, listener: https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/OnPausedListener<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html!>)` Adds a listener that is called when the Task becomes paused. | | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask<ResultT!>` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#addOnPausedListener(java.util.concurrent.Executor,com.google.firebase.storage.OnPausedListener<? super ResultT>)(executor: https://developer.android.com/reference/kotlin/java/util/concurrent/Executor.html, listener: https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/OnPausedListener<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html!>)` Adds a listener that is called when the Task becomes paused. | | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask<ResultT!>` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#addOnProgressListener(com.google.firebase.storage.OnProgressListener<? super ResultT>)(listener: https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/OnProgressListener<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html!>)` Adds a listener that is called periodically while the ControllableTask executes. | | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask<ResultT!>` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#addOnProgressListener(android.app.Activity,com.google.firebase.storage.OnProgressListener<? super ResultT>)( activity: https://developer.android.com/reference/kotlin/android/app/Activity.html, listener: https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/OnProgressListener<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html!> )` Adds a listener that is called periodically while the ControllableTask executes. | | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask<ResultT!>` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#addOnProgressListener(java.util.concurrent.Executor,com.google.firebase.storage.OnProgressListener<? super ResultT>)( executor: https://developer.android.com/reference/kotlin/java/util/concurrent/Executor.html, listener: https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/OnProgressListener<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html!> )` Adds a listener that is called periodically while the ControllableTask executes. | | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask<ResultT!>` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#addOnSuccessListener(com.google.android.gms.tasks.OnSuccessListener<? super ResultT>)(listener: https://developers.google.com/android/reference/com/google/android/gms/tasks/OnSuccessListener.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html!>)` Adds a listener that is called if the Task completes successfully. | | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask<ResultT!>` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#addOnSuccessListener(android.app.Activity,com.google.android.gms.tasks.OnSuccessListener<? super ResultT>)( activity: https://developer.android.com/reference/kotlin/android/app/Activity.html, listener: https://developers.google.com/android/reference/com/google/android/gms/tasks/OnSuccessListener.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html!> )` Adds a listener that is called if the Task completes successfully. | | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask<ResultT!>` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#addOnSuccessListener(java.util.concurrent.Executor,com.google.android.gms.tasks.OnSuccessListener<? super ResultT>)( executor: https://developer.android.com/reference/kotlin/java/util/concurrent/Executor.html, listener: https://developers.google.com/android/reference/com/google/android/gms/tasks/OnSuccessListener.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html!> )` Adds a listener that is called if the Task completes successfully. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#cancel()()` Attempts to cancel the task. | | `https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html<ContinuationResultT!>` | `<ContinuationResultT> https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#continueWith(com.google.android.gms.tasks.Continuation<ResultT,ContinuationResultT>)( continuation: https://developers.google.com/android/reference/com/google/android/gms/tasks/Continuation.html<ResultT!, ContinuationResultT!> )` Returns a new Task that will be completed with the result of applying the specified Continuation to this Task. | | `https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html<ContinuationResultT!>` | `<ContinuationResultT> https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#continueWith(java.util.concurrent.Executor,com.google.android.gms.tasks.Continuation<ResultT,ContinuationResultT>)( executor: https://developer.android.com/reference/kotlin/java/util/concurrent/Executor.html, continuation: https://developers.google.com/android/reference/com/google/android/gms/tasks/Continuation.html<ResultT!, ContinuationResultT!> )` Returns a new Task that will be completed with the result of applying the specified Continuation to this Task. | | `https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html<ContinuationResultT!>` | `<ContinuationResultT> https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#continueWithTask(com.google.android.gms.tasks.Continuation<ResultT,com.google.android.gms.tasks.Task<ContinuationResultT>>)( continuation: https://developers.google.com/android/reference/com/google/android/gms/tasks/Continuation.html<ResultT!, https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html<ContinuationResultT!>!> )` Returns a new Task that will be completed with the result of applying the specified Continuation to this Task. | | `https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html<ContinuationResultT!>` | `<ContinuationResultT> https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#continueWithTask(java.util.concurrent.Executor,com.google.android.gms.tasks.Continuation<ResultT,com.google.android.gms.tasks.Task<ContinuationResultT>>)( executor: https://developer.android.com/reference/kotlin/java/util/concurrent/Executor.html, continuation: https://developers.google.com/android/reference/com/google/android/gms/tasks/Continuation.html<ResultT!, https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html<ContinuationResultT!>!> )` Returns a new Task that will be completed with the result of applying the specified Continuation to this Task. | | `https://developer.android.com/reference/kotlin/java/lang/Exception.html?` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#getException()()` Returns the exception that caused the Task to fail. | | `ResultT` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#getResult()()` Gets the result of the Task, if it has already completed. | | `ResultT` | `<X : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html?> https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#getResult(java.lang.Class<X>)(exceptionType: https://developer.android.com/reference/kotlin/java/lang/Class.html<X!>)` Gets the result of the Task, if it has already completed. | | `ResultT` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#getSnapshot()()` Returns the current state of the task. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#isCanceled()()` Returns `true` if the task has been canceled. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#isComplete()()` Returns `true` if the Task is complete; `false` otherwise. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#isInProgress()()` Returns `true` if the task is currently running. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#isPaused()()` Returns `true` if the task has been paused. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#isSuccessful()()` Returns `true` if the Task has completed successfully; `false` otherwise. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#onFailure()()` | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#onPaused()()` | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#onQueued()()` | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#onSuccess()()` | | `https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html<ContinuationResultT!>` | `<ContinuationResultT> https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#onSuccessTask(com.google.android.gms.tasks.SuccessContinuation<ResultT,ContinuationResultT>)( continuation: https://developers.google.com/android/reference/com/google/android/gms/tasks/SuccessContinuation.html<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. | | `https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html<ContinuationResultT!>` | `<ContinuationResultT> https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#onSuccessTask(java.util.concurrent.Executor,com.google.android.gms.tasks.SuccessContinuation<ResultT,ContinuationResultT>)( executor: https://developer.android.com/reference/kotlin/java/util/concurrent/Executor.html, continuation: https://developers.google.com/android/reference/com/google/android/gms/tasks/SuccessContinuation.html<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. | | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask<ResultT!>` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#removeOnCanceledListener(com.google.android.gms.tasks.OnCanceledListener)(listener: https://developers.google.com/android/reference/com/google/android/gms/tasks/OnCanceledListener.html)` Removes a listener. | | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask<ResultT!>` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#removeOnCompleteListener(com.google.android.gms.tasks.OnCompleteListener<ResultT>)(listener: https://developers.google.com/android/reference/com/google/android/gms/tasks/OnCompleteListener.html<ResultT!>)` Removes a listener. | | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask<ResultT!>` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#removeOnFailureListener(com.google.android.gms.tasks.OnFailureListener)(listener: https://developers.google.com/android/reference/com/google/android/gms/tasks/OnFailureListener.html)` Removes a listener. | | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask<ResultT!>` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#removeOnPausedListener(com.google.firebase.storage.OnPausedListener<? super ResultT>)(listener: https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/OnPausedListener<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html!>)` Removes a listener. | | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask<ResultT!>` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#removeOnProgressListener(com.google.firebase.storage.OnProgressListener<? super ResultT>)(listener: https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/OnProgressListener<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html!>)` Removes a listener. | | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask<ResultT!>` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#removeOnSuccessListener(com.google.android.gms.tasks.OnSuccessListener<? super ResultT>)(listener: https://developers.google.com/android/reference/com/google/android/gms/tasks/OnSuccessListener.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html!>)` Removes a listener. | |
| From [com.google.android.gms.tasks.Task](https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html) |---|---| | `https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html<TResult!>!` | `https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html#addOnCanceledListener-com.google.android.gms.tasks.OnCanceledListener-(p: https://developers.google.com/android/reference/com/google/android/gms/tasks/OnCanceledListener.html!)` | | `https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html<TResult!>!` | `https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html#addOnCompleteListener-com.google.android.gms.tasks.OnCompleteListener&lt;TResult&gt;-(p: https://developers.google.com/android/reference/com/google/android/gms/tasks/OnCompleteListener.html<TResult!>!)` | | `abstract https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html<TResult!>!` | `https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html#addOnFailureListener-com.google.android.gms.tasks.OnFailureListener-(p: https://developers.google.com/android/reference/com/google/android/gms/tasks/OnFailureListener.html!)` | | `abstract https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html<TResult!>!` | `https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html#addOnSuccessListener-com.google.android.gms.tasks.OnSuccessListener&lt;? super TResult&gt;-(p: https://developers.google.com/android/reference/com/google/android/gms/tasks/OnSuccessListener.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html!>!)` | | `https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html<TContinuationResult!>!` | `<TContinuationResult> https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html#continueWith-com.google.android.gms.tasks.Continuation&lt;TResult,TContinuationResult&gt;-( p: https://developers.google.com/android/reference/com/google/android/gms/tasks/Continuation.html<TResult!, TContinuationResult!>! )` | | `https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html<TContinuationResult!>!` | `<TContinuationResult> https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html#continueWithTask-com.google.android.gms.tasks.Continuation&lt;TResult,com.google.android.gms.tasks.Task&lt;TContinuationResult&gt;&gt;-( p: https://developers.google.com/android/reference/com/google/android/gms/tasks/Continuation.html<TResult!, https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html<TContinuationResult!>!>! )` | | `abstract https://developer.android.com/reference/kotlin/java/lang/Exception.html!` | `https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html#getException--()` | | `abstract TResult!` | `https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html#getResult--()` | | `abstract https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html#isCanceled--()` | | `abstract https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html#isComplete--()` | | `abstract https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html#isSuccessful--()` | | `https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html<TContinuationResult!>!` | `<TContinuationResult> https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html#onSuccessTask-com.google.android.gms.tasks.SuccessContinuation&lt;TResult,TContinuationResult&gt;-( p: https://developers.google.com/android/reference/com/google/android/gms/tasks/SuccessContinuation.html<TResult!, TContinuationResult!>! )` | |

| ### Inherited properties |
|---|
| From [com.google.firebase.storage.StorageTask](https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask) |---|---| | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html!` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/storage/StorageTask#syncObject()` | |

## Protected functions

### onCanceled

```
protected fun onCanceled(): Unit
```

### onProgress

```
protected fun onProgress(): Unit
```