Interface AirshipMessageCenter

Airship Message Center

Hierarchy

  • AirshipMessageCenter

Methods

  • Deletes a message.

    Parameters

    • messageId: string

      The message Id.

    • Optional success: (() => void)

      Success callback.

        • (): void
        • Returns void

    • Optional error: ((err: string) => void)

      Error callback.

        • (err: string): void
        • Parameters

          • err: string

          Returns void

    Returns void

  • Dismisses the OOTB message center if displayed.

    Parameters

    • Optional success: (() => void)

      Success callback.

        • (): void
        • Returns void

    • Optional error: ((err: string) => void)

      Error callback.

        • (err: string): void
        • Parameters

          • err: string

          Returns void

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

    Parameters

    • Optional messageId: string

      Optional message Id.

    • Optional success: (() => void)

      Success callback.

        • (): void
        • Returns void

    • Optional error: ((err: string) => void)

      Error callback.

        • (err: string): void
        • Parameters

          • err: string

          Returns void

    Returns void

  • Gets the inbox messages.

    Parameters

    • success: ((messages: InboxMessage[]) => void)

      Success callback.

    • Optional error: ((err: string) => void)

      Error callback.

        • (err: string): void
        • Parameters

          • err: string

          Returns void

    Returns void

  • Gets the unread count.

    Parameters

    • success: ((count: number) => void)

      Success callback.

        • (count: number): void
        • Parameters

          • count: number

          Returns void

    • Optional error: ((err: string) => void)

      Error callback.

        • (err: string): void
        • Parameters

          • err: string

          Returns void

    Returns void

  • Marks a message as read.

    Parameters

    • messageId: string

      The message Id.

    • Optional success: (() => void)

      Success callback.

        • (): void
        • Returns void

    • Optional error: ((err: string) => void)

      Error callback.

        • (err: string): void
        • Parameters

          • err: string

          Returns void

    Returns void

  • Refreshes the messages.

    Parameters

    • Optional success: (() => void)

      Success callback.

        • (): void
        • Returns void

    • Optional error: ((err: string) => void)

      Error callback.

        • (err: string): void
        • Parameters

          • err: string

          Returns void

    Returns 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 void

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

    Parameters

    • messageId: string

      The message Id.

    • Optional success: (() => void)

      Success callback.

        • (): void
        • Returns void

    • Optional error: ((err: string) => void)

      Error callback.

        • (err: string): void
        • Parameters

          • err: string

          Returns void

    Returns void

Generated using TypeDoc