OpenIntent
An app intent that opens and displays a specific item in your app’s interface.
Declaration
protocol OpenIntent : SystemIntentMentioned in
Overview
Use this protocol to create an app intent that opens the app and displays a specific item. The target property contains the item to display and is typically an AppEntity or AppEnum type you define. For example, Spotlight can populate this property with an entity someone found during a search of your app’s content.
The system automatically brings your app to the foreground to run this app intent. If your app intent adopts the TargetContentProvidingIntent or UISceneAppIntent protocol, the system also directs the app intent to one of your app’s scenes first so you can configure the scene’s views. If your app intent type doesn’t support these protocols, use your perform() method implementation to update your app’s interface and display the item.
For information about how to update your app’s interface in response to this app intent, see Directing app intents to your app’s scenes.