Contents

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) async

Parameters

  • 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.

See Also

Managing the microphone and camera