getMicrophoneCaptureState method

Future<MediaCaptureState?> getMicrophoneCaptureState()

Returns a MediaCaptureState that indicates whether the webpage is using the microphone to capture audio.

NOTE for iOS: available on iOS 15.0+.

NOTE for MacOS: available on MacOS 12.0+.

Officially Supported Platforms/Implementations:

Implementation

Future<MediaCaptureState?> getMicrophoneCaptureState() =>
    platform.getMicrophoneCaptureState();