FirebaseStorage Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
FIRStorageObservableTask
An extended StorageTask
providing observable semantics that can be used for responding to changes
in task state.
Observers produce a StorageHandle
, which is used to keep track of and remove specific
observers at a later date.
-
Observes changes in the upload status: Resume, Pause, Progress, Success, and Failure.
\param status The StorageTaskStatus
change to observe.
\param handler A callback that fires every time the status event occurs,
containing a StorageTaskSnapshot
describing task state.
returns:
A task handle that can be used to remove the observer at a later date.
-
Removes the single observer with the provided handle.
\param handle The handle of the task to remove.
Declaration
Objective-C
- (void)removeObserverWithHandle:(NSString *_Nonnull)handle;
-
Removes all observers for a single status.
\param status A StorageTaskStatus
to remove all listeners for.
-
Declaration
Objective-C
- (void)removeAllObservers;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-08-23 UTC.
[null,null,["Last updated 2023-08-23 UTC."],[],[],null,["FIRStorageObservableTask \n\n\n @interface FIRStorageObservableTask : ../Classes/FIRStorageTask.html\n\nAn extended `StorageTask` providing observable semantics that can be used for responding to changes\nin task state.\nObservers produce a `StorageHandle`, which is used to keep track of and remove specific\nobservers at a later date.\n- `\n ``\n ``\n `\n\n [-observeStatus:handler:](#/c:@M@FirebaseStorage@objc(cs)FIRStorageObservableTask(im)observeStatus:handler:)`\n ` \n Observes changes in the upload status: Resume, Pause, Progress, Success, and Failure.\n \\\\param status The `StorageTaskStatus` change to observe.\n\n \\\\param handler A callback that fires every time the status event occurs,\n containing a `StorageTaskSnapshot` describing task state.\n\n returns:\n A task handle that can be used to remove the observer at a later date. \n\n Declaration \n Objective-C \n\n - (NSString *_Nonnull)\n observeStatus:(enum ../Enums/FIRStorageTaskStatus.html)status\n handler:(void (^_Nonnull)(../Classes/FIRStorageTaskSnapshot.html *_Nonnull))handler;\n\n- `\n ``\n ``\n `\n\n [-removeObserverWithHandle:](#/c:@M@FirebaseStorage@objc(cs)FIRStorageObservableTask(im)removeObserverWithHandle:)`\n ` \n Removes the single observer with the provided handle.\n \\\\param handle The handle of the task to remove. \n\n Declaration \n Objective-C \n\n - (void)removeObserverWithHandle:(NSString *_Nonnull)handle;\n\n- `\n ``\n ``\n `\n\n [-removeAllObserversForStatus:](#/c:@M@FirebaseStorage@objc(cs)FIRStorageObservableTask(im)removeAllObserversForStatus:)`\n ` \n Removes all observers for a single status.\n \\\\param status A `StorageTaskStatus` to remove all listeners for. \n\n Declaration \n Objective-C \n\n - (void)removeAllObserversForStatus:(enum ../Enums/FIRStorageTaskStatus.html)status;\n\n- `\n ``\n ``\n `\n\n [-removeAllObservers](#/c:@M@FirebaseStorage@objc(cs)FIRStorageObservableTask(im)removeAllObservers)`\n ` \n Removes all observers. \n\n Declaration \n Objective-C \n\n - (void)removeAllObservers;"]]