start method

Future<void> start(
  1. RecordConfig config, {
  2. required String path,
})

Starts new recording session.

path: The output path file. Required on all IO platforms. On web: This parameter is ignored.

Output path can be retrieves when stop method is called.

Implementation

Future<void> start(
  RecordConfig config, {
  required String path,
}) async {
  _created ??= await _create();

  await RecordPlatform.instance.start(_recorderId, config, path: path);

  _startAmplitudeTimer();
}