Implements

Constructors

Properties

Accessors

Methods

Constructors

Properties

catch: (<TResult>(onrejected?) => Promise<Realm | TResult>)

Type declaration

finally: ((onfinally?) => Promise<Realm>)

Type declaration

    • (onfinally?): Promise<Realm>
    • Parameters

      • Optional onfinally: null | (() => void)

      Returns Promise<Realm>

then: (<TResult1, TResult2>(onfulfilled?, onrejected?) => Promise<TResult1 | TResult2>)

Type declaration

Accessors

  • get [toStringTag](): string
  • Returns string

Methods

  • Cancels the download of the Realm If multiple ProgressRealmPromise instances are in progress for the same Realm, then canceling one of them will cancel all of them.

    Returns void

  • Register to receive progress notifications while the download is in progress.

    Parameters

    • callback: ProgressNotificationCallback

      Called multiple times as the client receives data, with two arguments:

      1. transferred The current number of bytes already transferred
      2. transferable The total number of transferable bytes (i.e. the number of bytes already transferred plus the number of bytes pending transfer)

    Returns this

Generated using TypeDoc