getCameraCaptureState method
Returns a MediaCaptureState that indicates whether the webpage is using the camera to capture images or video.
Officially Supported Platforms/Implementations:
- iOS WKWebView 15.0+ (Official API - WKWebView.cameraCaptureState)
- Linux WPE WebKit 2.34+ (Official API - webkit_web_view_get_camera_capture_state)
- macOS WKWebView 12.0+ (Official API - WKWebView.cameraCaptureState)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
Implementation
Future<MediaCaptureState?> getCameraCaptureState() =>
platform.getCameraCaptureState();