setCameraCaptureState method

Future<void> setCameraCaptureState({
  1. required MediaCaptureState state,
})

Changes whether the webpage is using the camera to capture images or video.

NOTE for iOS: available on iOS 15.0+.

NOTE for MacOS: available on MacOS 12.0+.

Officially Supported Platforms/Implementations:

Implementation

Future<void> setCameraCaptureState({required MediaCaptureState state}) {
  throw UnimplementedError(
      'setCameraCaptureState is not implemented on the current platform');
}