setExternalDataSource method
- 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
- GemError.success on success
- GemError.exist if the datasource is already set
- GemError.invalidInput if the datasource is invalid
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']);
}