AVCaptureDeskViewApplication
An object that programmatically presents Desk View.
Declaration
class AVCaptureDeskViewApplicationOverview
Use this class to programmatically launch Desk View from your app. You can optionally customize the presentation and specifiy an action to take afterward.
The following example shows how to configure and present Desk View with a completion handler:
let deskView = AVCaptureDeskViewApplication()
let configuration = AVCaptureDeskViewApplication.LaunchConfiguration()
// Use the previously set frame.
configuration.mainWindowFrame = .zero
// Execute the completion handler when the user starts Desk View.
configuration.requiresSetUpModeCompletion = true
// Launch Desk View with a configuration and completion handler.
deskView.present(launchConfiguration: configuration) { error in
// Perform error handling and additional tasks.
}