Interface AirshipPushAndroid

Android Push.

Hierarchy

  • AirshipPushAndroid

Methods

  • Checks if a notification category/channel is enabled.

    Parameters

    • channel: string

      The channel name.

    • success: ((enabled: boolean) => void)

      Success callback.

        • (enabled: boolean): void
        • Parameters

          • enabled: boolean

          Returns void

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

      Error callback.

        • (err: string): void
        • Parameters

          • err: string

          Returns void

    Returns void

  • Enables/disables showing notifications in the foreground.

    Parameters

    • enabled: boolean

      true to enable, false to disable.

    • 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

  • Checks if foreground notifications are enabled.

    Parameters

    • success: ((enabled: boolean) => void)

      Success callback.

        • (enabled: boolean): void
        • Parameters

          • enabled: boolean

          Returns void

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

      Error callback.

        • (err: string): void
        • Parameters

          • err: string

          Returns void

    Returns void

  • Sets the notification config.

    Parameters

    • config: NotificationConfig

      The notification config.

    • 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