public class

StreamDownloadTask

extends StorageTask<StreamDownloadTask.TaskSnapshot>
java.lang.Object
   ↳ com.google.android.gms.tasks.Task<com.google.firebase.storage.StreamDownloadTask.TaskSnapshot>
     ↳ com.google.firebase.storage.CancellableTask<com.google.firebase.storage.StreamDownloadTask.TaskSnapshot>
       ↳ com.google.firebase.storage.ControllableTask<com.google.firebase.storage.StreamDownloadTask.TaskSnapshot>
         ↳ com.google.firebase.storage.StorageTask<com.google.firebase.storage.StreamDownloadTask.TaskSnapshot>
           ↳ com.google.firebase.storage.StreamDownloadTask

Class Overview

A task that downloads bytes of a GCS blob.

Summary

Nested Classes
interface StreamDownloadTask.StreamProcessor A callback that is used to handle the stream download  
class StreamDownloadTask.TaskSnapshot Encapsulates state about the running StreamDownloadTask  
[Expand]
Inherited Fields
From class com.google.firebase.storage.StorageTask
Public Methods
boolean pause()
Attempts to pause the task.
boolean resume()
Attempts to resume a paused task.
Protected Methods
void onCanceled()
void onProgress()
[Expand]
Inherited Methods
From class com.google.firebase.storage.StorageTask
From class com.google.firebase.storage.ControllableTask
From class com.google.firebase.storage.CancellableTask
From class com.google.android.gms.tasks.Task
From class java.lang.Object

Public Methods

public boolean pause ()

Attempts to pause the task. A paused task can later be resumed.

Returns
  • true if this task is successfully being paused. Note that a task may not be immediately paused if it was executing another action and can still fail or complete.

public boolean resume ()

Attempts to resume a paused task.

Returns
  • true if the task is successfully resumed. false if the task has an unrecoverable error or has entered another state that precludes resume.

Protected Methods

protected void onCanceled ()

protected void onProgress ()