Skip to main content
Version: v1

SharedNumberSequence Class

The SharedNumberSequence holds a sequence of numbers. Each number will be stored at a position within the sequence. See the sequence documentation for details on working with sequences.

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

SharedNumberSequence is not recommended for use and will be removed in an upcoming release. For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)

Signature​

export declare class SharedNumberSequence extends SharedSequence<number>

Extends: SharedSequence

Constructors​

ConstructorAlertsDescription
(constructor)(document, id, attributes)DeprecatedConstructs a new instance of the SharedNumberSequence class

Static Methods​

MethodAlertsReturn TypeDescription
create(runtime, id)DeprecatedSharedNumberSequenceCreate a new shared number sequence
getFactory()DeprecatedSharedNumberSequenceFactoryGet a factory for SharedNumberSequence to register with the data store.

Properties​

PropertyTypeDescription
idstring

Methods​

MethodAlertsReturn TypeDescription
getRange(start, end)Deprecatednumber[]

Constructor Details​

(constructor)​

Constructs a new instance of the SharedNumberSequence class

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

SharedNumberSequence is not recommended for use and will be removed in an upcoming release. For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)

Signature​

constructor(document: IFluidDataStoreRuntime, id: string, attributes: IChannelAttributes);

Parameters​

ParameterTypeDescription
documentIFluidDataStoreRuntime
idstring
attributesIChannelAttributes

Property Details​

id​

Signature​

id: string;

Type: string

Method Details​

create​

Create a new shared number sequence

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

SharedNumberSequence is not recommended for use and will be removed in an upcoming release. For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)

Signature​

static create(runtime: IFluidDataStoreRuntime, id?: string): SharedNumberSequence;

Parameters​

ParameterModifiersTypeDescription
runtimeIFluidDataStoreRuntimedata store runtime the new shared number sequence belongs to
idoptionalstringoptional name of the shared number sequence

Returns​

newly create shared number sequence (but not attached yet)

Return type: SharedNumberSequence

getFactory​

Get a factory for SharedNumberSequence to register with the data store.

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

SharedNumberSequence is not recommended for use and will be removed in an upcoming release. For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)

Signature​

static getFactory(): SharedNumberSequenceFactory;

Returns​

a factory that creates and load SharedNumberSequence

Return type: SharedNumberSequenceFactory

getRange​

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

SharedNumberSequence is not recommended for use and will be removed in an upcoming release. For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)

Signature​

getRange(start: number, end?: number): number[];

Parameters​

ParameterModifiersTypeDescription
startnumber
endoptionalnumber

Returns​

Return type: number[]