create static method
Creates a configured Recorder instance.
Use this static factory with a RecorderConfiguration to obtain a recorder instance. The factory only constructs the recorder; to begin capturing data call startRecording. If recording must work while the app is in the background, ensure the required platform permissions and background location settings are configured (see SDK guides).
Parameters
config: The RecorderConfiguration describing what to record and where to store logs.
Returns
- A new Recorder instance.
Implementation
static Recorder create(final RecorderConfiguration config) {
final String resultString = GemKitPlatform.instance.callCreateObject(
jsonEncode(<String, Object>{
'class': 'Recorder',
'args': config.pointerId,
}),
);
final dynamic decodedVal = jsonDecode(resultString);
return Recorder.init(decodedVal['result']);
}