Class

UISceneConnectionOptions

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

Declaration

@interface UISceneConnectionOptions : NSObject

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 is a specific reason for creating a scene, UIKit fills a UISceneConnectionOptions 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.

Do not create UISceneConnectionOptions objects directly. UIKit creates UISceneConnectionOptions objects for you and passes them to the scene:willConnectToSession:options: method of your scene delegate.

Topics

Restoring the Scene's Previous State

userActivities

The user activity information for restoring your app to its previous state.

Handling Quick Actions

shortcutItem

The user-selected action to perform.

Opening URLs

URLContexts

The URLs to open, along with metadata specifying how to open them.

Responding to a Handoff Request

handoffUserActivityType

The type of the pending Handoff activity.

Accepting a CloudKit Share

cloudKitShareMetadata

Information about the CloudKit data that is now available to the app.

Responding to Notifications

notificationResponse

The user's response to one of your app's notifications.

Getting the Source App

sourceApplication

The bundle ID of the app that originated the request.

Relationships

Inherits From

See Also

Connecting and Disconnecting the Scene

- scene:willConnectToSession:options:

Tells the delegate about the addition of a scene to the app.

- sceneDidDisconnect:

Tells the delegate that UIKit removed a scene from your app.