setMicrophoneCaptureState method

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

Changes 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<void> setMicrophoneCaptureState({required MediaCaptureState state}) =>
    platform.setMicrophoneCaptureState(state: state);