DataSource class Sensor Data Source
SensorDataSource
Through this interface data can be obtained from sensors, log files or any other means
Constructors
- DataSource.init(int id)
Properties
- 
  availableDataTypes
  → List<DataType> 
- 
  The available data types.
  no setter
- dataSourceType → DataSourceType
- 
  The data source type. It can be live or playback.
  no setter
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- isSDKInstance → bool
- 
  Test if this is an SDK instance
  no setter
- isStopped → bool
- 
  Check if source is paused
  no setter
- origin → Origin
- 
  The origin of the data source
  no setter
- playback → Playback?
- 
  Get the playback interface
  no setter
- pointerId → int
- 
  
  no setterinherited
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
Methods
- 
  addListener({required DataSourceListener listener, required DataType dataType, ParameterList? parameters}) → GemError 
- Register a listener for the data source
- 
  dispose() → void 
- 
  
  inherited
- 
  getConfiguration(DataType type) → PositionSensorConfiguration 
- Provide access to the current configuration specified to that data type.
- 
  getDataTypeDescription(DataType type) → String 
- The data type description
- 
  getLatestData(DataType type) → SenseData? 
- If data source produces such a data type then it returns a shared data pointer, otherwise it returns an empty shared pointer.
- 
  isDataTypeAvailable(DataType dataType) → bool 
- Test if a data type is provided by the data source.
- 
  isMockData(DataType type) → bool 
- Check if mock data is enabled for the given type
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  pushData(SenseData senseData) → bool 
- Push the data
- 
  registerAutoReleaseObject(int pointerId) → void 
- 
  Registers an object for auto release.
  inherited
- 
  removeListener({required DataSourceListener listener, required DataType dataType}) → GemError 
- Unregister a listener for the data source for a specific data type
- 
  removeListenerAllDataTypes(DataSourceListener listener) → void 
- Unregister all listeners for the data source for all data types
- 
  setConfiguration({DataType type = DataType.position, required PositionSensorConfiguration config}) → GemError 
- Update the configuration for the specified type.
- 
  setMockData(SenseData senseData) → GemError 
- Set mock position data
- 
  start() → GemError 
- Start the source
- 
  stop() → GemError 
- Stop the source
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited
Static Methods
- 
  createExternalDataSource(List< DataType> dataTypes) → DataSource?
- Create a new external data source
- 
  createLiveDataSource() → DataSource? 
- Create a new live data source
- 
  createLogDataSource(String logPath) → DataSource? 
- Create a new log data source based on a log file
- 
  createSimulationDataSource(Route route) → DataSource? 
- Create a data source based on a route (a route simulation data source).