|
LuxChat
2.0
Instant messenger for iOS
|
#import <FIRStorageObservableTask.h>
Instance Methods | |
| (FIRStorageHandle) | - observeStatus:handler: |
| (void) | - removeObserverWithHandle: |
| (void) | - removeAllObserversForStatus: |
| (void) | - removeAllObservers |
Additional Inherited Members | |
Properties inherited from FIRStorageTask | |
| FIRStorageTaskSnapshot * | snapshot |
Extends FIRStorageTask to provide observable semantics such as adding and removing observers. Observers produce a FIRStorageHandle, which is used to keep track of and remove specific observers at a later date. This class is currently not thread safe and can only be called on the main thread.
| - (FIRStorageHandle) observeStatus: | (FIRStorageTaskStatus) | status | |
| handler: | (void(^)(FIRStorageTaskSnapshot *snapshot)) | handler | |
Observes changes in the upload status: Resume, Pause, Progress, Success, and Failure.
| status | The FIRStorageTaskStatus change to observe. |
| handler | A callback that fires every time the status event occurs, returns a FIRStorageTaskSnapshot containing the state of the task. |
| - (void) removeAllObservers |
Removes all observers.
| - (void) removeAllObserversForStatus: | (FIRStorageTaskStatus) | status |
Removes all observers for a single status.
| status | A FIRStorageTaskStatus to remove listeners for. |
| - (void) removeObserverWithHandle: | (FIRStorageHandle) | handle |
Removes the single observer with the provided handle.
| handle | The handle of the task to remove. |
1.8.9.1