setExternalDataSource method

GemError setExternalDataSource(
  1. DataSource dataSource
)

Sets the current data source for obtaining position data.

Parameters

  • IN dataSource The data source to be used for fetching position data.

If dataSource is empty, the current data source will be removed.

Returns

Throws

  • An exception if it fails.

Implementation

GemError setExternalDataSource(final DataSource dataSource) {
  final OperationResult resultString = staticMethod(
    'PositionService',
    'setExternalDataSource',
    args: dataSource.pointerId,
  );
  return GemErrorExtension.fromCode(resultString['gemApiError']);
}