Cancels a running task. Has no effect on a complete or failed task.
True if the cancel had an effect.
Equivalent to calling then(null, onRejected).
Listens for events on this task.
OptionalnextOrObserver: Optionalerror: ((error: ReactNativeFirebase.NativeFirebaseError) => unknown) | nullOptionalcomplete: CompleteFn | nullIf only the event argument is passed, returns a function you can use to add callbacks. Otherwise returns a function you can call to unregister the callbacks.
Pauses a currently running task. Has no effect on a paused or failed task.
True if the operation took effect, false if ignored.
Resumes a paused task. Has no effect on a currently running or failed task.
True if the operation took effect, false if ignored.
This object behaves like a Promise, and resolves with its snapshot data when the upload completes.
OptionalonFulfilled: ((snapshot: UploadTaskSnapshot) => unknown) | nullOptionalonRejected: ((error: ReactNativeFirebase.NativeFirebaseError) => unknown) | null
Represents the process of uploading an object. Allows you to monitor and manage the upload.
Note: React Native Firebase returns Promises for pause/resume/cancel to communicate with native iOS/Android.