setCameraCaptureState method

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

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

Officially Supported Platforms/Implementations:

Parameters - Officially Supported Platforms/Implementations:

  • state: all platforms

Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.

Implementation

Future<void> setCameraCaptureState({required MediaCaptureState state}) =>
    platform.setCameraCaptureState(state: state);