FluidObjectHandle Class
Handle for a shared FluidObject. \
To use, import via @fluidframework/datastore/legacy
.
For more information about our API support guarantees, see here.
Signature
export declare class FluidObjectHandle<T extends FluidObject = FluidObject> extends FluidHandleBase<T>
Extends: FluidHandleBase<T>
Type Parameters
Parameter | Constraint | Default | Description |
---|---|---|---|
T | FluidObject | FluidObject |
Constructors
Constructor | Alerts | Description |
---|---|---|
(constructor)(value, path, routeContext) | Beta |
Creates a new FluidObjectHandle . |
Properties
Property | Alerts | Modifiers | Type | Description |
---|---|---|---|---|
absolutePath | Beta |
readonly |
string | |
isAttached | Beta |
readonly |
boolean | |
path | Beta |
readonly |
string | |
routeContext | Beta |
readonly |
IFluidHandleContext | |
value | Beta |
readonly |
T | Promise<T> |
Methods
Method | Alerts | Return Type | Description |
---|---|---|---|
attachGraph() | Beta |
void | |
get() | Beta |
Promise<any> |
Constructor Details
(constructor)
Creates a new FluidObjectHandle
.
For more information about our API support guarantees, see here.
Signature
constructor(value: T | Promise<T>, path: string, routeContext: IFluidHandleContext);
Parameters
Parameter | Type | Description |
---|---|---|
value | T | Promise<T> | The FluidObject object this handle is for. |
path | string | The path to this handle relative to the routeContext . |
routeContext | IFluidHandleContext | The parent @fluidframework/core-interfaces#IFluidHandleContext that has a route to this handle. |
Property Details
absolutePath
For more information about our API support guarantees, see here.
Signature
readonly absolutePath: string;
Type: string
isAttached
For more information about our API support guarantees, see here.
Signature
get isAttached(): boolean;
Type: boolean
path
For more information about our API support guarantees, see here.
Signature
readonly path: string;
Type: string
routeContext
For more information about our API support guarantees, see here.
Signature
readonly routeContext: IFluidHandleContext;
Type: IFluidHandleContext
value
For more information about our API support guarantees, see here.
Signature
protected readonly value: T | Promise<T>;
Type: T | Promise<T>
Method Details
attachGraph
For more information about our API support guarantees, see here.
Signature
attachGraph(): void;
get
For more information about our API support guarantees, see here.
Signature
get(): Promise<any>;
Returns
Return type: Promise<any>