The interface for dispatching intents to the custom objects that handle those intents.
- iOS 10.0+
- Mac Catalyst 13.0+
- watchOS 3.2+
INIntent protocol defines the method for routing SiriKit requests to the appropriate objects of your Intents extension. The method in this protocol acts as a dispatcher, returning an object capable of resolving, confirming, and handling a specific intent object. This protocol is adopted by the
INExtension class and you must provide a custom implementation.
When you add an Intents extension to your project, Xcode automatically creates a default
INExtension subclass that adopts this protocol. Modify the
handler(for:) method in that subclass and use it to create your handler objects. You can use the same class to handle multiple intents or you can use different classes for each intent.