FirebaseFirestore Framework Reference

FIRLoadBundleTask


@interface FIRLoadBundleTask : NSObject

Represents the task of loading a Firestore bundle. Observers can be registered with this task to observe the bundle loading progress, as well as task completion and error events.

  • Registers an observer to observe the progress updates, completion or error events.

    Declaration

    Objective-C

    - (FIRLoadBundleObserverHandle)addObserver:
        (nonnull void (^)(FIRLoadBundleTaskProgress *_Nonnull))observer;

    Return Value

    A handle to the registered observer which can be used to remove the observer once it is no longer needed.

  • Removes a registered observer associated with the given handle. If no observer can be found, this will be a no-op.

    Declaration

    Objective-C

    - (void)removeObserverWithHandle:(FIRLoadBundleObserverHandle)handle;
  • Removes all registered observers for this task.

    Declaration

    Objective-C

    - (void)removeAllObservers;