React Native Firebase
    Preparing search index...

    Snapshot of a storage task (upload or download).

    interface TaskSnapshot {
        bytesTransferred: number;
        error?: ReactNativeFirebase.NativeFirebaseError;
        metadata: FullMetadata;
        ref: StorageReference;
        state: TaskState;
        task: UploadTask;
        totalBytes: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    bytesTransferred: number

    The number of bytes that have been successfully uploaded so far.

    If the state is error, returns a JavaScript error of the current task snapshot.

    metadata: FullMetadata

    Before the upload completes, contains the metadata sent to the server. After the upload completes, contains the metadata sent back from the server.

    The reference that spawned this snapshot's upload task.

    state: TaskState

    The current state of the task.

    The task of which this is a snapshot.

    totalBytes: number

    The total number of bytes to be uploaded.