ISharedMapEvents Interface
Events emitted in response to changes to the map data.
To use, import via fluid-framework/legacy
.
For more information about our API support guarantees, see here.
Signature
/** @sealed */
export interface ISharedMapEvents extends ISharedObjectEvents
Extends: ISharedObjectEvents
Call Signatures
CallSignature | Alerts | Description |
---|---|---|
(event: "valueChanged", listener: (changed: IValueChanged, local: boolean, target: IEventThisPlaceHolder) => void): any | Alpha |
Emitted when a key is set or deleted. |
(event: "clear", listener: (local: boolean, target: IEventThisPlaceHolder) => void): any | Alpha |
Emitted when the map is cleared. |
Call Signature Details
(event: "valueChanged", listener: (changed: IValueChanged, local: boolean, target: IEventThisPlaceHolder) => void): any
Emitted when a key is set or deleted.
To use, import via fluid-framework/alpha
.
For more information about our API support guarantees, see here.
Signature
(event: "valueChanged", listener: (changed: IValueChanged, local: boolean, target: IEventThisPlaceHolder) => void): any;
Remarks
Listener parameters:
-
changed
- Information on the key that changed and its value prior to the change. -
local
- Whether the change originated from this client. -
target
- The ISharedMap itself.
(event: "clear", listener: (local: boolean, target: IEventThisPlaceHolder) => void): any
Emitted when the map is cleared.
To use, import via fluid-framework/alpha
.
For more information about our API support guarantees, see here.
Signature
(event: "clear", listener: (local: boolean, target: IEventThisPlaceHolder) => void): any;
Remarks
Listener parameters:
-
local
- Whether the clear originated from this client. -
target
- The ISharedMap itself.