Airship Message Center

Constructors

Properties

module: any

Methods

  • Deletes a message.

    Parameters

    • messageId: string

      The message Id.

    Returns Promise<void>

    A promise. Will reject if the message is not found or if takeOff is not called.

  • Requests to display the Message Center.

    Will either emit an event to display the Message Center if auto launch message center is disabled, or display the OOTB message center.

    Parameters

    • Optional messageId: string

      Optional message Id.

    Returns Promise<void>

    A promise.

  • Marks a message as read.

    Parameters

    • messageId: string

      The message Id.

    Returns Promise<void>

    A promise. Will reject if the message is not found or if takeOff is not called.

  • Refreshes the messages.

    Returns Promise<void>

    A promise. Will reject if the list fails to refresh or if takeOff is not called yet.

  • Enables or disables showing the OOTB UI when requested to display by either display or by a notification with a Message Center action.

    Parameters

    • autoLaunch: boolean

      true to show OOTB UI, false to emit events.

    Returns void

  • Overlays the Message Center regardless if auto launch Message Center is enabled or not.

    Parameters

    • Optional messageId: string

      Optional message Id.

    Returns Promise<void>

    A promise.

  • Overlays the message view regardless if auto launch Message Center is enabled or not.

    Parameters

    • messageId: string

      The message Id.

    Returns Promise<void>

    A promise.