pause method

Future<void> pause()

Pauses recording.

Call this after start. You may resume recording with resume without reconfiguration, as opposed to stop. It does nothing if the recording is already paused. When the recording is paused and resumed, the resulting output would be as if nothing happened during paused period, immediately switching to the resumed scene.

This is only supported on Android versions >= Build.VERSION_CODES.N. A PlatformException will be thrown on lower versions.

Implementation

Future<void> pause() => _channel.$pause(this);