removeDataSource static method
Removes the active position data source and stops delivering new samples.
After calling this method the PositionService will not provide new positions until a new data source is selected (for example via setLiveDataSource or setExternalDataSource).
Also see:
- setLiveDataSource - To set the live GPS as data source.
- setExternalDataSource - To set a custom external data source.
Implementation
static void removeDataSource() {
GemKitPlatform.instance.callObjectMethod(<String, Object>{
'id': 0,
'class': 'PositionService',
'method': 'selectPositionDataSource',
'senseDataSourceType': 'none',
});
}