StorageTaskSnapshot

class StorageTaskSnapshot : NSObject

FIRStorageTaskSnapshot represents an immutable view of a task. A Snapshot contains a task, storage reference, metadata (if it exists), progress, and an error (if one occurred).

  • Subclass of FIRStorageTask this snapshot represents.

    Declaration

    Swift

    @NSCopying var task: FIRStorageTask { get }
  • Metadata returned by the task, or nil if no metadata returned.

    Declaration

    Swift

    @NSCopying var metadata: FIRStorageMetadata? { get }
  • FIRStorageReference this task is operates on.

    Declaration

    Swift

    @NSCopying var reference: FIRStorageReference { get }
  • NSProgress object which tracks the progess of an upload or download.

    Declaration

    Swift

    var progress: Progress? { get }
  • Error during task execution, or nil if no error occurred.

    Declaration

    Swift

    var error: Error? { get }
  • Status of the task.

    Declaration

    Swift

    var status: StorageTaskStatus { get }