Contents

UIScene.ConnectionOptions

A data object containing information about the reasons why UIKit created the scene.

Declaration

@MainActor class ConnectionOptions

Overview

UIKit creates scenes for many reasons. It might do so in response to a Handoff request or a request to open a URL. When there’s a specific reason for creating a scene, UIKit fills a UIScene.ConnectionOptions object with the associated data and passes it to your delegate at connection time. Use the information in this object to respond accordingly. For example, open the URLs that UIKit provides, and display their contents in the scene.

Don’t create UIScene.ConnectionOptions objects directly. UIKit creates UIScene.ConnectionOptions objects for you and passes them to the scene(_:willConnectTo:options:) method of your scene delegate.

Topics

Configuring the scene’s interface

Handling quick actions

Opening URLs

Responding to a Handoff request

Accepting a CloudKit share

Responding to notifications

Preparing for Near-Field Communication (NFC)

Getting the source app

Instance Properties

See Also

Connecting and disconnecting the scene