setRecordingHint method

Future<void> setRecordingHint({
  1. required bool hint,
})

Sets recording mode hint.

This tells the camera that the intent of the application is to record videos MediaRecorder.start, not to take still pictures Camera.takePicture. Using this hint can allow MediaRecorder.start to start faster or with fewer glitches on output. This should be called before starting preview for the best result, but can be changed while the preview is active. The default value is false. The app can still call Camera.takePicture when the hint is true or call MediaRecorder.start when the hint is false. But the performance may be worse.

Implementation

Future<void> setRecordingHint({required bool hint}) {
  return _channel.$setRecordingHint(this, hint);
}