@byomakase/omakase-player
    Preparing search index...

    Interface AlertsApi

    interface AlertsApi {
        onEvent$: Observable<AlertEvent>;
        dismiss(id: string): void;
        dismissAll(): void;
        error(message: string, config?: AlertConfig): string;
        info(message: string, config?: AlertConfig): string;
        warn(message: string, config?: AlertConfig): string;
    }
    Index

    Properties

    onEvent$: Observable<AlertEvent>

    Emits an event whenever an alert is raised or dismissed.

    Methods

    • Dismisses the alert with the given ID.

      Parameters

      • id: string

        The ID of the alert to dismiss.

      Returns void

    • Raises an error alert.

      Parameters

      • message: string

        The message to display.

      • Optionalconfig: AlertConfig

        Optional display configuration (e.g. auto-dismiss duration).

      Returns string

      The unique ID of the created alert.

    • Raises an info alert.

      Parameters

      • message: string

        The message to display.

      • Optionalconfig: AlertConfig

        Optional display configuration (e.g. auto-dismiss duration).

      Returns string

      The unique ID of the created alert.

    • Raises a warning alert.

      Parameters

      • message: string

        The message to display.

      • Optionalconfig: AlertConfig

        Optional display configuration (e.g. auto-dismiss duration).

      Returns string

      The unique ID of the created alert.