NotificationsManager Interface
Value manager that provides notifications from this client to others and subscription to their notifications.
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.NotificationEvents<T>>
Type Parameters
Parameter | Constraint | Description |
---|---|---|
T | InternalUtilityTypes.NotificationEvents<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 |
ISubscribable<NotificationsManagerEvents> | Events for Notifications manager. |
notifications | Alpha |
readonly |
NotificationSubscribable<T> | Provides subscription to notifications from other clients. |
Property Details
emit
Send notifications to other clients.
To use, import via @fluidframework/presence/alpha
.
For more information about our API support guarantees, see here.
Signature
readonly emit: NotificationEmitter<T>;
Type: NotificationEmitter<T>
events
Events for Notifications manager.
To use, import via @fluidframework/presence/alpha
.
For more information about our API support guarantees, see here.
Signature
readonly events: ISubscribable<NotificationsManagerEvents>;
Type: ISubscribable<NotificationsManagerEvents>
notifications
Provides subscription to notifications from other clients.
To use, import via @fluidframework/presence/alpha
.
For more information about our API support guarantees, see here.
Signature
readonly notifications: NotificationSubscribable<T>;
Type: NotificationSubscribable<T>