Contents

present(launchConfiguration:completionHandler:)

Launches Desk View with the configuration and completion handler that you specify.

Declaration

func present(launchConfiguration: AVCaptureDeskViewApplication.LaunchConfiguration, completionHandler: (@Sendable ((any Error)?) -> Void)? = nil)
func present(launchConfiguration: AVCaptureDeskViewApplication.LaunchConfiguration) async throws

Parameters

  • launchConfiguration:

    A configuration that specifies how to present Desk View.

  • completionHandler:

    The code to perform after the system displays Desk View or the user transitions to Desk View after setup, depending on the configuration.

Discussion

If Desk View is already running, this method brings it to the front. If Desk View is in the Dock, this method opens it and brings it to the front.

Desk View launches in setup mode. This mode shows the full field of view of an ultrawide camera with a superimposed trapezoid that indicates the cropped desk region to display. The system displays this region after the user completes setup and starts Desk View.

Create an instance of AVCaptureDeskViewApplication.LaunchConfiguration and set it for launchConfiguration to specify the frame for Desk View and when to perform the completionHandler.

See Also

Presenting the Desk View app