Airship InApp Experiences.

Constructors

Properties

eventEmitter: UAEventEmitter
module: any
pendingEmbedded: Map<string, PendingEmbedded[]> = ...
pendingEmbeddedListeners: Map<string, ((pending) => any)[]> = ...

Methods

  • Adds a listener to listen for if an embedded ID is ready to display or not.

    Parameters

    • embeddedId: string

      The embedded ID to check.

    • listener: ((isReady) => void)

      The listener.

        • (isReady): void
        • Parameters

          • isReady: boolean

          Returns void

    Returns Subscription

    A subscription that can be used to cancel the listener.

  • Gets the display interval.

    Returns Promise<number>

    A promise with the result.

  • Checks if embedded message is ready for the given ID.

    Parameters

    • embeddedId: string

      The embedded ID to check.

    Returns boolean

    true if one is ready, otherwise false.

  • Checks if messages are paused.

    Returns Promise<boolean>

    A promise with the result.

  • Sets the display interval for messages.

    Parameters

    • milliseconds: number

      Display interval

    Returns Promise<void>

    A promise.

  • Pauses messages.

    Parameters

    • paused: boolean

      true to pause, false to resume.

    Returns Promise<void>

    A promise.