NotificationsManager Interface
Value manager that provides notifications from this client to others and subscription to their notifications.
This API is provided as an alpha preview and may change without notice.
To use, import via @fluidframework/presence/alpha
.
For more information about our API support guarantees, see here.
Signature
/** @sealed */
export interface NotificationsManager<T extends InternalUtilityTypes.NotificationListeners<T>>
Type Parameters
Parameter | Constraint | Description |
---|---|---|
T | InternalUtilityTypes.NotificationListeners<T> |
Remarks
Create using Notifications(initialSubscriptions) registered to PresenceStates.
Properties
Property | Alerts | Modifiers | Type | Description |
---|---|---|---|---|
emit | Alpha |
readonly |
NotificationEmitter<T> | Send notifications to other clients. |
events | Alpha |
readonly |
Listenable<NotificationsManagerEvents> | Events for Notifications manager. |
notifications | Alpha |
readonly |
NotificationListenable<T> | Provides subscription to notifications from other clients. |
Property Details
emit
Send notifications to other clients.
This API is provided as an alpha preview and may change without notice.
For more information about our API support guarantees, see here.
Signature
readonly emit: NotificationEmitter<T>;
Type: NotificationEmitter<T>
events
Events for Notifications manager.
This API is provided as an alpha preview and may change without notice.
For more information about our API support guarantees, see here.
Signature
readonly events: Listenable<NotificationsManagerEvents>;
Type: Listenable<NotificationsManagerEvents>
notifications
Provides subscription to notifications from other clients.
This API is provided as an alpha preview and may change without notice.
For more information about our API support guarantees, see here.
Signature
readonly notifications: NotificationListenable<T>;
Type: NotificationListenable<T>