Contents

AppIntentSceneDelegate

Implement this protocol on your UIScene delegate to handle AppIntent invocations targeting a specific scene

Declaration

protocol AppIntentSceneDelegate : UISceneDelegate

Overview

Use the scene delegate to respond to an app intent, as shown in the following example:

func scene(_ scene: UIScene, willPerformAppIntent appIntent: any AppIntent) {
    switch appIntent {
      case let myIntent as MyIntent:
         windowScene.activationConditions.prefersToActivateForTargetContentIdentifierPredicate = NSPredicate("self == %@", myIntent.targetContentIdentifier)
    }
}

Topics

Instance Methods

See Also

Scene support