StreamDownloadTask

public class StreamDownloadTask extends StorageTask<StreamDownloadTask.TaskSnapshot>

A task that downloads bytes of a GCS blob.

Nested Class Summary

interface StreamDownloadTask.StreamProcessor A callback that is used to handle the stream download  
class StreamDownloadTask.TaskSnapshot Encapsulates state about the running StreamDownloadTask  

Inherited Field Summary

Public Method Summary

boolean
pause()
Attempts to pause the task.
boolean
resume()
Attempts to resume a paused task.

Protected Method Summary

void
void

Inherited Method Summary

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 ()

Send feedback about...

Need help? Visit our support page.