SharedNumberSequence Class
Packages > @fluidframework/sequence > SharedNumberSequence
Signature:
export declare class SharedNumberSequence extends SharedSequence<number>
Extends: SharedSequence<number>
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(document, id, attributes) | Constructs a new instance of the SharedNumberSequence class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
id | string |
Methods
Method | Modifiers | Description |
---|---|---|
create(runtime, id) | static |
Create a new shared number sequence |
getFactory() | static |
Get a factory for SharedNumberSequence to register with the data store. |
getRange(start, end) |
Constructors
SharedNumberSequence.(constructor)
Constructs a new instance of the SharedNumberSequence
class
Signature:
constructor(document: IFluidDataStoreRuntime, id: string, attributes: IChannelAttributes);
Parameters
Parameter | Type | Description |
---|---|---|
document | IFluidDataStoreRuntime | |
id | string | |
attributes | IChannelAttributes |
Properties
id
Signature:
id: string;
Methods
create
Create a new shared number sequence
Signature:
static create(runtime: IFluidDataStoreRuntime, id?: string): SharedNumberSequence;
Parameters
Parameter | Type | Description |
---|---|---|
runtime | IFluidDataStoreRuntime | data store runtime the new shared number sequence belongs to |
id | string | optional name of the shared number sequence |
Returns:
newly create shared number sequence (but not attached yet)
getFactory
Get a factory for SharedNumberSequence to register with the data store.
Signature:
static getFactory(): SharedNumberSequenceFactory;
Returns:
a factory that creates and load SharedNumberSequence
getRange
Signature:
getRange(start: number, end?: number): number[];
Parameters
Parameter | Type | Description |
---|---|---|
start | number | |
end | number |
Returns:
number[]