Orbit 3D Mapping Viewer SDK
    Preparing search index...

    Class Promise<T>

    Class Promise models a promise for a future value. This class has platform specific behaviors.

    Type Parameters

    • T
    Index

    Constructors

    Properties

    Methods

    Constructors

    • Create a new promise.

      Type Parameters

      • T

      Parameters

      • Optionalinit: (T: any, any: any) => void

      Returns Promise<T>

    Properties

    id: number

    The identifier of the promise

    Methods

    • Add a handler to catch an error.

      Parameters

      • rejectCallback: (any: any) => void

        the error handler.

      Returns any

    • Add a finally handler.

      Parameters

      • finallyCallback: () => void

      Returns any

    • Set the identifier.

      Parameters

      • id: number

      Returns void

    • Add handlers to process the response or catch an error.

      Parameters

      • fulfillCallback: (T: any) => void

        the response handler.

      • OptionalrejectCallback: (any: any) => void

        the optional error handler.

      Returns any