setLiveDataSource static method

GemError setLiveDataSource()

Sets the position service's current data source to live.

Returns

Implementation

static GemError setLiveDataSource() {
  final String resultString = GemKitPlatform.instance
      .callObjectMethod(<String, Object>{
        'id': 0,
        'class': 'PositionService',
        'method': 'selectPositionDataSource',
        'senseDataSourceType': 'live',
      });
  final dynamic result = jsonDecode(resultString);
  final int errCode = result['gemApiError'];
  return GemErrorExtension.fromCode(errCode);
}