cameraCapture(sceneConfiguration:userInfo:)
Creates a scene accessory for presenting content during camera capture, passing additional context to the scene delegate.
Declaration
class func cameraCapture(sceneConfiguration: UISceneConfiguration, userInfo: Any) -> SelfParameters
- sceneConfiguration:
A scene configuration value with a delegate type defined for it.
- userInfo:
An object that can be used to pass additional context to the scene delegate upon connection.
Discussion
The content may be presented while the app is in the foreground and has an active camera capture session. The system determines whether and where to present it. The content can be interactive.
This variant accepts a userInfo object to pass additional context to the scene delegate upon connection. The userInfo object is accessible in the corresponding scene via UISceneConnectionOptions.sceneAccessoryUserInfo.