SharedMatrixFactory Class
IChannelFactory for ISharedMatrix.
- Use
SharedMatrix.getFactory
instead. \
To use, import via @fluidframework/matrix/legacy
.
For more information about our API support guarantees, see here.
Signature
export declare class SharedMatrixFactory implements IChannelFactory<ISharedMatrix>
Implements: IChannelFactory<ISharedMatrix>
Static Properties
Property | Alerts | Modifiers | Type | Description |
---|---|---|---|---|
Attributes | Beta |
readonly |
IChannelAttributes | |
Type | Beta |
string |
Properties
Property | Alerts | Modifiers | Type | Description |
---|---|---|---|---|
attributes | Beta |
readonly |
IChannelAttributes | |
type | Beta |
readonly |
string |
Methods
Method | Alerts | Return Type | Description |
---|---|---|---|
create(document, id) | Beta |
ISharedMatrix & IChannel | |
load(runtime, id, services, attributes) | Beta |
Promise<ISharedMatrix & IChannel> | Loads the given channel. This call is only ever invoked internally as the only thing that is ever directly loaded is the document itself. Load will then only be called on documents that were created and added to a channel. |
Property Details
attributes
For more information about our API support guarantees, see here.
Signature
get attributes(): IChannelAttributes;
Type: IChannelAttributes
Attributes
For more information about our API support guarantees, see here.
Signature
static readonly Attributes: IChannelAttributes;
Type: IChannelAttributes
type
For more information about our API support guarantees, see here.
Signature
get type(): string;
Type: string
Type
For more information about our API support guarantees, see here.
Signature
static Type: string;
Type: string
Method Details
create
For more information about our API support guarantees, see here.
Signature
create(document: IFluidDataStoreRuntime, id: string): ISharedMatrix & IChannel;
Parameters
Parameter | Type | Description |
---|---|---|
document | IFluidDataStoreRuntime | |
id | string |
Returns
Return type: ISharedMatrix & IChannel
load
Loads the given channel. This call is only ever invoked internally as the only thing that is ever directly loaded is the document itself. Load will then only be called on documents that were created and added to a channel.
For more information about our API support guarantees, see here.
Signature
load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes): Promise<ISharedMatrix & IChannel>;
Parameters
Parameter | Type | Description |
---|---|---|
runtime | IFluidDataStoreRuntime | Data store runtime containing state/info/helper methods about the data store. |
id | string | ID of the channel. |
services | IChannelServices | Services to read objects at a given path using the delta connection. |
attributes | IChannelAttributes |
Returns
The loaded object
Return type: Promise<ISharedMatrix & IChannel>