TaskSnapshotObserver
interface
The snapshot observer returned from a Task#on
listener.
Example
const ref = firebase.storage().ref(...);
const task = ref.put(...)
task.on('state_changed', {
next(taskSnapshot) {
console.log(taskSnapshot.state);
},
error(error) {
console.error(error.message);
},
complete() {
console.log('Task complete');
},
})