setRecorderConfiguration method
- RecorderConfiguration config
Apply a new recorder configuration.
If the recorder is currently recording it will be stopped, reconfigured and restarted. Callers should handle the returned result to know whether the update succeeded.
Parameters
config: The RecorderConfiguration to apply.
Returns
- GemError.success Configuration updated successfully.
- GemError.busy The recorder was busy and could not be reconfigured.
- GemError.general A general error occurred while updating the configuration.
See also:
- recorderConfiguration — Retrieves the current recorder configuration.
- RecorderConfiguration — Configuration class used to create or update the recorder.
Implementation
GemError setRecorderConfiguration(final RecorderConfiguration config) {
final OperationResult resultString = objectMethod(
pointerId,
'Recorder',
'setConfiguration',
args: config.pointerId,
);
return GemErrorExtension.fromCode(resultString['result']);
}