Contents

setCameraCaptureState(_:completionHandler:)

Changes whether the webpage is using the camera to capture images or video.

Declaration

func setCameraCaptureState(_ state: WKMediaCaptureState, completionHandler: (@MainActor @Sendable () -> Void)? = nil)
func setCameraCaptureState(_ state: WKMediaCaptureState) async

Parameters

  • state:

    An enumeration case that indicates whether the webpage should use the camera to capture images or video.

  • completionHandler:

    A closure the system executes after changing whether the webpage is using the camera to capture images or video.

See Also

Managing the microphone and camera