Documentation
    Preparing search index...

    Interface NotificationServiceOptions

    Options for creating a notification service via createNotificationService().

    const notifService = createNotificationService({
    onChange: (notifications) => console.log('Notifications:', notifications.length),
    maxPerWindow: 50,
    });
    interface NotificationServiceOptions {
        maxPerWindow?: number;
        onChange?: (notifications: readonly Notification[]) => void;
    }
    Index

    Properties

    maxPerWindow?: number

    Maximum notifications to retain per window. Oldest are evicted when the limit is exceeded. Default: 100.

    onChange?: (notifications: readonly Notification[]) => void

    Called when the notification list changes (create, dismiss, read). The shell host uses this to update UI (toast, badge, etc.).