The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

Home > @firebase/firestore > / > LoadBundleTask

LoadBundleTask class

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

The API is compatible with Promise<LoadBundleTaskProgress>.

Signature:

export declare class LoadBundleTask implements PromiseLike<LoadBundleTaskProgress> 

Implements: PromiseLike<LoadBundleTaskProgress>

Methods

Method Modifiers Description
catch(onRejected) Implements the Promise<LoadBundleTaskProgress>.catch interface.
onProgress(next, error, complete) Registers functions to listen to bundle loading progress events.
then(onFulfilled, onRejected) Implements the Promise<LoadBundleTaskProgress>.then interface.