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