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) asyncParameters
- 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.