StorageTask.SnapshotBase

public class StorageTask.SnapshotBase implements StorageTask.ProvideError

Known direct subclasses
FileDownloadTask.TaskSnapshot

Encapsulates state about the running FileDownloadTask

StreamDownloadTask.TaskSnapshot

Encapsulates state about the running StreamDownloadTask

UploadTask.TaskSnapshot

Encapsulates state about the running UploadTask


Base class for state.

Summary

Public fields

final Exception

Public constructors

Public methods

@Nullable Exception

Returns the last error encountered.

@NonNull StorageReference

Returns the target of the upload.

@NonNull StorageTask<ResultT>

Returns the StorageTask for this state.

Public fields

error

public final Exception error

Public constructors

SnapshotBase

public SnapshotBase(@Nullable Exception error)

Public methods

getError

public @Nullable Exception getError()

Returns the last error encountered.

getStorage

public @NonNull StorageReference getStorage()

Returns the target of the upload.

getTask

public @NonNull StorageTask<ResultT> getTask()

Returns the StorageTask for this state.