Represents the task of loading a Firestore bundle. It provides progress of bundleloading, as well as task completion and error events.

The API is compatible withPromise<LoadBundleTaskProgress>.

Index

Methods

catch

  • catch<R>(onRejected(aError) =>R |PromiseLike<R>):Promise<R |LoadBundleTaskProgress>
  • Implements thePromise<LoadBundleTaskProgress>.catch interface.

    Type parameters

    • R

    Parameters

    • onRejected:(a:Error) =>R |PromiseLike<R>

      Called when an error occurs during bundle loading.

        • (a:Error):R |PromiseLike<R>
        • Parameters

          ReturnsR |PromiseLike<R>

    ReturnsPromise<R |LoadBundleTaskProgress>

onProgress

  • onProgress(next?: (progressLoadBundleTaskProgress) =>any, error?: (errorError) =>any, complete?: () =>void):void
  • Registers functions to listen to bundle loading progress events.

    Parameters

    • Optional next:(progress:LoadBundleTaskProgress) =>any

      Called when there is a progress update from bundle loading. Typicallynext calls occureach time a Firestore document is loaded from the bundle.

    • Optional error:(error:Error) =>any

      Called when an error occurs during bundle loading. The task aborts after reporting theerror, and there should be no more updates after this.

    • Optional complete:() =>void

      Called when the loading task is complete.

        • ():void
        • Returnsvoid

    Returnsvoid

then

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2022-07-27 UTC.