Interface AirshipPreferenceCenter

Airship Preference Center.

Hierarchy

  • AirshipPreferenceCenter

Methods

  • Requests to display a preference center.

    Will either emit an event to display the Preference Center if auto launch is disabled, or display the OOTB UI.

    Parameters

    • preferenceCenterId: string

      The preference center 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 preference center config.

    Parameters

    • preferenceCenterId: string

      The preference center Id.

    • success: ((config: PreferenceCenter) => void)

      Success callback.

    • 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 some other action.

    Parameters

    • preferenceCenterId: string

      The preference center Id.

    • autoLaunch: boolean

      true to show OOTB UI, false to emit events.

    Returns void

Generated using TypeDoc