Class AirshipMessageCenter

Airship Message Center

Hierarchy

  • AirshipMessageCenter

Constructors

Properties

plugin: AirshipPluginWrapper

Methods

  • Deletes a message.

    Returns

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

    Parameters

    • messageId: string

      The message Id.

    Returns Promise<void>

  • Dismisses the OOTB message center if displayed.

    Returns

    A promise.

    Returns Promise<void>

  • 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.

    Returns

    A promise.

    Parameters

    • Optional messageId: string

      Optional message Id.

    Returns Promise<void>

  • Gets the unread count.

    Returns

    A promise with the result.

    Returns Promise<number>

  • Marks a message as read.

    Returns

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

    Parameters

    • messageId: string

      The message Id.

    Returns Promise<void>

  • Refreshes the messages.

    Returns

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

    Returns Promise<void>

  • 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 Promise<void>

  • Overlays the message view. Should be used to display the actual message body in a custom Message Center.

    Returns

    A promise.

    Parameters

    • messageId: string

      The message Id.

    Returns Promise<void>

Generated using TypeDoc