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.

Return

Returns a Future which is completed when the function is done.

Example:

await myRecorder.pauseRecorder();

See also


Implementation

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