FirebaseFirestore Framework Reference

LoadBundleTask

class LoadBundleTask : 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

    Swift

    func addObserver(_ observer: @escaping (LoadBundleTaskProgress) -> Void) -> LoadBundleObserverHandle

    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

    Swift

    func removeObserverWith(handle: LoadBundleObserverHandle)
  • Removes all registered observers for this task.

    Declaration

    Swift

    func removeAllObservers()