setMicrophoneCaptureState method

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

Changes whether the webpage is using the microphone to capture audio.

Officially Supported Platforms/Implementations:

Parameters - Officially Supported Platforms/Implementations:

  • state: all platforms

Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.

Implementation

Future<void> setMicrophoneCaptureState({required MediaCaptureState state}) =>
    platform.setMicrophoneCaptureState(state: state);