papi-dts
    Preparing search index...

    Service that sends notifications to users in the UI

    interface INotificationService {
        dismiss(notificationId: string | number): Promise<void>;
        send(notification: PlatformNotification): Promise<string | number>;
    }
    Index

    Methods

    Methods

    • Dismiss a notification by its ID. If the notification is not found, this is a no-op.

      Parameters

      • notificationId: string | number

        ID of the notification to dismiss, as returned by send

      Returns Promise<void>

    • Send a notification to the user. If a notification with the same ID is already showing, it will be updated with the new notification.

      Parameters

      Returns Promise<string | number>

      Promise that resolves with the ID of the notification