SharedStringFactory Class

Packages > fluid-framework > SharedStringFactory

Signature:

export declare class SharedStringFactory implements IChannelFactory 

Implements:

Properties

List of properties for this class
Property Modifiers Type Description
attributes
Attributes static
type
Type static

Methods

List of methods on this class
Method Modifiers Description
create(document, id)
load(runtime, id, services, attributes)
segmentFromSpec(spec) static

Properties

attributes

Signature:

get attributes(): IChannelAttributes;

Attributes

Signature:

static readonly Attributes: IChannelAttributes;

type

Signature:

get type(): string;

Type

Signature:

static Type: string;

Methods

create

Signature:

create(document: IFluidDataStoreRuntime, id: string): SharedString;

Parameters

List of parameters
Parameter Type Description
document
id

Returns:

SharedString

load

Signature:

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

Parameters

List of parameters
Parameter Type Description
runtime
id
services
attributes

Returns:

SharedString

segmentFromSpec

Signature:

static segmentFromSpec(spec: any): SharedStringSegment;

Parameters

List of parameters
Parameter Type Description
spec

Returns:

SharedStringSegment