IContainerEvents Interface
Events emitted by the IContainer "upwards" to the Loader and Host.
This API is provided for existing users, but is not recommended for new users.
To use, import via @fluidframework/container-definitions/legacy.
For more information about our API support guarantees, see here.
Signature
export interface IContainerEvents extends IEvent
Extends: IEvent
Call Signatures
| Call Signature | Alerts | Return Type | Description |
|---|---|---|---|
| (event: "readonly", listener: (readonly: boolean) => void): void | Beta | void | Emitted when the readonly state of the container changes. |
| (event: "op", listener: (message: ISequencedDocumentMessage) => void): any | Beta | any | Emitted immediately after processing an incoming operation (op). |
| (event: "dirty", listener: (dirty: boolean) => void): any | Beta | any | Emitted upon the first local change while the Container is in the "saved" state. That is, when isDirty transitions from true to false. |
| (event: "saved", listener: (dirty: boolean) => void): any | Beta | any | Emitted when all local changes/edits have been acknowledged by the service. I.e., when isDirty transitions from false to true. |
| (event: "metadataUpdate", listener: (metadata: Record<string, string>) => void): any | Beta | any | Emitted when the some of the properties related to the container are initialized or updated. This emitted metadata will the props which are updated. If consumer wants to read full set of metadata then they can read it off the container from containerMetadata prop. |
| (event: "connected", listener: (clientId: string) => void): any | Beta | any | Emitted when the IContainer completes connecting to the Fluid service. |
| (event: "codeDetailsProposed", listener: (codeDetails: IFluidCodeDetails, proposal: ISequencedProposal) => void): any | Beta | any | Fires when new container code details have been proposed, prior to acceptance. |
| (event: "disconnected", listener: () => void): any | Beta | any | Emitted when the IContainer becomes disconnected from the Fluid service. |
| (event: "attaching", listener: () => void): any | Beta | any | Emitted when a detached container begins the process of attached to the Fluid service. |
| (event: "attached", listener: () => void): any | Beta | any | Emitted when the attaching process is complete and the container is attached to the Fluid service. |
| (event: "closed", listener: (error?: ICriticalContainerError) => void): any | Beta | any | Emitted when the IContainer is closed, which permanently disables it. |
| (event: "disposed", listener: (error?: ICriticalContainerError) => void): any | Beta | any | Emitted when the IContainer is disposed, which permanently disables it. |
| (event: "warning", listener: (error: ContainerWarning) => void): any | Beta | any | Emitted when the container encounters a state which may lead to errors, which may be actionable by the consumer. |
Call Signature Details
(event: "readonly", listener: (readonly: boolean) => void): void
Emitted when the readonly state of the container changes.
This API is provided for existing users, but is not recommended for new users.
For more information about our API support guarantees, see here.