INIntentHandlerProviding

INIntentHandlerProviding

INIntentHandlerProviding Protocol of Intents The interface for dispatching intents to the custom objects that handle those intents.

protocol INIntentHandlerProviding : NSObjectProtocol

Overview

The INIntentHandlerProviding 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.

Inherits From

NSObjectProtocol

Conforming Types

INExtension