Hosanna UI API v1.30.2-next
    Preparing search index...

    Interface INotificationCenter

    Interface for a notification center that manages dispatching and subscription of notifications.

    interface INotificationCenter {
        dispatch(notification: INotification<any>): void;
        subscribe(
            name: string,
            handler: notification_api.onNotification<any>,
        ): IIdentifiable;
        unsubscribe(
            name: string,
            handler: IIdentifiable | notification_api.onNotification<any>,
        ): void;
    }

    Implemented by

    Index

    Methods

    • Dispatches a notification to all subscribed handlers.

      Parameters

      Returns void

    • Subscribes a handler to a specific notification name.

      Parameters

      Returns IIdentifiable

    • Unsubscribes a handler from a specific notification name.

      Parameters

      Returns void