FileDownloadTask.TaskSnapshot

public class FileDownloadTask.TaskSnapshot extends Object
implements StorageTask.ProvideError

Encapsulates state about the running FileDownloadTask

Public Method Summary

long
Exception
getError()
Returns the last error encountered.
StorageReference
getStorage()
Returns the target of the upload.
StorageTask<TResult extends StorageTask.ProvideError>
getTask()
Returns the StorageTask for this state.
long

Inherited Method Summary

Public Methods

public long getBytesTransferred ()

Returns
  • the total bytes downloaded so far.

public Exception getError ()

Returns the last error encountered.

public StorageReference getStorage ()

Returns the target of the upload.

public StorageTask<TResult extends StorageTask.ProvideError> getTask ()

Returns the StorageTask for this state.

public long getTotalByteCount ()

Returns
  • the total bytes to upload..

Send feedback about...

Need help? Visit our support page.