Skip to main content Link Menu Expand (external link) Document Search Copy Copied
pauseRecorder method - FlutterSoundRecorder class - recorder library - Dart API
menu
pauseRecorder

pauseRecorder method

Future<void> pauseRecorder()

Pause the recorder

On Android this API verb needs al least SDK-24. An exception is thrown if the Recorder is not currently recording.

Example:

await myRecorder.pauseRecorder();

Implementation

Future<void> pauseRecorder() async {
  _logger.d('FS:---> pauseRecorder ');
  await _lock.synchronized(() async {
    await _pauseRecorder();
  });
  _logger.d('FS:<--- pauseRecorder ');
}
flutter_sound 9.24.0