setMicrophoneCaptureState(_:completionHandler:)
Changes whether the webpage is using the microphone to capture audio.
Declaration
func setMicrophoneCaptureState(_ state: WKMediaCaptureState, completionHandler: (@MainActor @Sendable () -> Void)? = nil)func setMicrophoneCaptureState(_ state: WKMediaCaptureState) asyncParameters
- state:
An enumeration case that indicates whether the webpage should use the microphone to capture audio.
- completionHandler:
A closure the system executes after changing whether the webpage is using the microphone to capture audio.