getCameraCaptureState method
Returns a MediaCaptureState that indicates 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<MediaCaptureState?> getCameraCaptureState() =>
platform.getCameraCaptureState();