Home > @magiclane/maps-sdk > DataSource
DataSource class
SensorDataSource Through this interface data can be obtained from sensors, log files or any other means
Signature:
export declare class DataSource extends GemAutoreleaseObject Extends: GemAutoreleaseObject
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
DataType[] |
The available data types. | |
|
|
The data source type | ||
|
|
boolean |
Test if this is an SDK instance | |
|
|
boolean |
Check if source is paused | |
|
|
The origin of the data source | ||
|
|
Playback | null |
Get the playback interface | |
|
|
number | bigint |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Register a listener for the data source | ||
|
|
Create a new external data source | |
|
|
Create a new live data source | |
|
|
Create a new log data source based on a log file | |
|
|
Create a data source based on a route (a route simulation data source). | |
|
Get the current configuration for a data type | ||
|
The data type description | ||
|
Get the latest produced data for a data type | ||
|
Get the preferences for a data type | ||
|
| ||
|
Test if a data type is provided by the data source. | ||
|
Check if mock data is enabled for the given type | ||
|
Push the data to the data source | ||
|
Unregister a listener for the data source for a specific data type | ||
|
Unregister all listeners for the data source for all data types | ||
|
Update the configuration for the specified type. | ||
|
Set mock position data | ||
|
Start the source | ||
|
Stop the source |