createRealityDataSource Method

Produce a RealityDataSource for the specified key.

createRealityDataSource(key: RealityDataSourceKey, iTwinId: string): Promise<undefined | RealityDataSource>

@returns the requested reality data source, or undefined if it could not be produced.

Parameter Type Description
key RealityDataSourceKey Identifies the reality data source.
iTwinId string A default iTwinId to use.

Returns - Promise<undefined | RealityDataSource>

the requested reality data source, or undefined if it could not be produced.

Defined in

Last Updated: 03 July, 2025