create static method

Recorder create(
  1. RecorderConfiguration config
)

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

Returns

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']);
}