Contents

UISceneAppIntent

An interface you use to direct an app intent to a specific scene in your UIKit app.

Declaration

protocol UISceneAppIntent : TargetContentProvidingIntent

Mentioned in

Overview

In a UIKit app, adopt this protocol in an app intent that causes the system to launch your app in the foreground. For example, include this protocol in an app intent that also supports the OpenIntent protocol. The UISceneAppIntent protocol tells the system to deliver the app intent to one of your app’s scenes before calling the app intent’s perform() method. In your scene code, use the app intent to configure views and prepare your app’s interface for the app intent.

In addition to adopting this protocol in your app intent, update your scene’s delegate to support the AppIntentSceneDelegate protocol. When your app receives an app intent, the system directs it to the scene that indicates its support for the specified app intent. If your scene delegate doesn’t implement the AppIntentSceneDelegate protocol, the system calls the performNavigation(forScene:) method of this protocol in your app intent instead. You can use that method to configure the scene from your app intent code instead of your scene delegate.

For more information about how to use app intents to configure your app’s interface, see Directing app intents to your app’s scenes.

Topics

Getting the UIKit scene

Updating the app’s interface

Default Implementations

See Also

Scene support