Skip to main content

SharedMatrixFactory Class

IChannelFactory for ISharedMatrix.

This API is deprecated and will be removed in a future release.

Use SharedMatrix.getFactory instead.

This API is provided for existing users, but is not recommended for new users.

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

PropertyAlertsModifiersTypeDescription
AttributesBetareadonlyIChannelAttributes
TypeBetastring

Properties

PropertyAlertsModifiersTypeDescription
attributesBetareadonlyIChannelAttributes
typeBetareadonlystring

Methods

MethodAlertsReturn TypeDescription
create(document, id)BetaISharedMatrix & IChannel
load(runtime, id, services, attributes)BetaPromise<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

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

get attributes(): IChannelAttributes;

Type: IChannelAttributes

Attributes

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

static readonly Attributes: IChannelAttributes;

Type: IChannelAttributes

type

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

get type(): string;

Type: string

Type

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

static Type: string;

Type: string

Method Details

create

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

create(document: IFluidDataStoreRuntime, id: string): ISharedMatrix & IChannel;

Parameters

ParameterTypeDescription
documentIFluidDataStoreRuntime
idstring

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.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes): Promise<ISharedMatrix & IChannel>;

Parameters

ParameterTypeDescription
runtimeIFluidDataStoreRuntimeData store runtime containing state/info/helper methods about the data store.
idstringID of the channel.
servicesIChannelServicesServices to read objects at a given path using the delta connection.
attributesIChannelAttributes

Returns

The loaded object

Return type: Promise<ISharedMatrix & IChannel>