Contents

setCameraCaptureState(_:)

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

Declaration

@MainActor final func setCameraCaptureState(_ state: WKMediaCaptureState) async

Parameters

  • state:

    The new capture state the page should use.

See Also

Managing the microphone and camera