Contents

AppIntentSceneDelegate

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

Declaration

protocol AppIntentSceneDelegate : UISceneDelegate

Overview

func windowScene(_ 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

Navigation and app launch