React Native Firebase
    Preparing search index...

    A TaskSnapshot provides information about a storage tasks state.

    Use the exported types directly instead. FirebaseStorageTypes namespace is kept for backwards compatibility.

    firebase
    .storage()
    .ref('/foo/bar.json')
    .putString(JSON.stringify({ foo: 'bar' }))
    .then((taskSnapshot) => {
    if (taskSnapshot.state === firebase.storage.TaskState.SUCCESS) {
    console.log('Total bytes uploaded: ', taskSnapshot.totalBytes);
    }
    });
    const task = firebase
    .storage()
    .ref('/foo/bar.json')
    .putString(JSON.stringify({ foo: 'bar' }));

    task.on('state_changed', taskSnapshot => {
    if (taskSnapshot.state === firebase.storage.TaskState.PAUSED) {
    console.log('Resuming my task!');
    task.resume();
    }
    });
    Index

    Properties

    bytesTransferred: number

    The number of bytes currently transferred.

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

    The metadata of the tasks via a FullMetadata interface.

    The Reference of the task.

    The current state of the task snapshot.

    The parent Task of this snapshot.

    totalBytes: number

    The total amount of bytes for this task.