FIRStorageTaskSnapshot

@interface FIRStorageTaskSnapshot : 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 }

    Objective-C

    @property (readonly, copy, nonatomic) __kindof FIRStorageTask *_Nonnull task;
  • Metadata returned by the task, or nil if no metadata returned.

    Declaration

    Swift

    @NSCopying var metadata: FIRStorageMetadata? { get }

    Objective-C

    @property (readonly, copy, nonatomic, nullable) FIRStorageMetadata *metadata;
  • FIRStorageReference this task is operates on.

    Declaration

    Swift

    @NSCopying var reference: FIRStorageReference { get }

    Objective-C

    @property (readonly, copy, nonatomic) FIRStorageReference *_Nonnull reference;
  • NSProgress object which tracks the progess of an upload or download.

    Declaration

    Swift

    var progress: Progress? { get }

    Objective-C

    @property (readonly, strong, nonatomic, nullable) NSProgress *progress;
  • Error during task execution, or nil if no error occurred.

    Declaration

    Swift

    var error: Error? { get }

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSError *error;
  • Status of the task.

    Declaration

    Swift

    var status: FIRStorageTaskStatus { get }

    Objective-C

    @property (readonly, nonatomic) FIRStorageTaskStatus status;