voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
26 lines (16 loc) • 1.25 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/firestore](./firestore.md) > [/](./firestore_.md) > [LoadBundleTask](./firestore_.loadbundletask.md)
## 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>`<!-- -->.
<b>Signature:</b>
```typescript
export declare class LoadBundleTask implements PromiseLike<LoadBundleTaskProgress>
```
<b>Implements:</b> PromiseLike<[LoadBundleTaskProgress](./firestore_.loadbundletaskprogress.md)<!-- -->>
## Methods
| Method | Modifiers | Description |
| --- | --- | --- |
| [catch(onRejected)](./firestore_.loadbundletask.catch.md) | | Implements the <code>Promise<LoadBundleTaskProgress>.catch</code> interface. |
| [onProgress(next, error, complete)](./firestore_.loadbundletask.onprogress.md) | | Registers functions to listen to bundle loading progress events. |
| [then(onFulfilled, onRejected)](./firestore_.loadbundletask.then.md) | | Implements the <code>Promise<LoadBundleTaskProgress>.then</code> interface. |