setConfiguration method
- DataType type = DataType.position,
- required PositionSensorConfiguration config,
Update the sensor configuration for a specific data type.
Only DataType.position is currently respected by the implementation; other types may be ignored.
Parameters
type: The DataType to configure (defaults to DataType.position).config: The PositionSensorConfiguration to apply.
Returns
- GemError.success on success; other GemError values indicate failure.
See also:
- getConfiguration - Retrieves the current configuration for a data type.
Implementation
GemError setConfiguration({
final DataType type = DataType.position,
required final PositionSensorConfiguration config,
}) {
final OperationResult resultString = objectMethod(
pointerId,
'DataSourceContainer',
'setConfiguration',
args: <String, Object>{'type': type.id, 'config': config.toJson()},
);
return GemErrorExtension.fromCode(resultString['result']);
}