The snapshot observer returned from a Task#on listener.
Use the exported types directly instead. FirebaseStorageTypes namespace is kept for backwards compatibility.
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'); },}) Copy
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'); },})
Optional
Called when the task has completed successfully.
Called when the task errors.
A JavaScript error.
Called when the task state changes.
A TaskSnapshot for the event.
TaskSnapshot
The snapshot observer returned from a Task#on listener.
Example
Deprecated
Use the exported types directly instead. FirebaseStorageTypes namespace is kept for backwards compatibility.