INStartCallIntent
A request to start an audio or video call with one or more users.
Declaration
class INStartCallIntentMentioned in
Overview
SiriKit creates INStartCallIntent objects when the user wants to place a call using your app. A call intent object contains either the users to call or redialing information. It’s up to you to match the information in this object to contacts in your app and initiate the resulting call.
Your Intents extension receives this intent when the user tries to initiate a call from the Siri interface. If your app supports CallKit, you may also receive this intent when the user tries to initiate a call from system interfaces, such as the Recents tab of the Phone app.
To handle this intent, the handler object in your Intents extension must adopt the INStartCallIntentHandling protocol. Your handler should confirm the request and create an INStartCallIntentResponse object that indicates it’s possible to begin the call. Don’t try to initiate calls directly from your Intents extension. Instead, SiriKit launches your app and passes it an NSUserActivity object that your app must then use to initiate the call. SiriKit places an INInteraction object in the user activity object with this intent. For calls initiated through Siri, the interaction object also includes the response provided by your Intents extension.
Additional Intent Attributes
The following table lists additional attributes of this intent object:
Attribute | Description |
|---|---|
Supported by | Siri Intents, Siri Suggestions |
Always requires unlocked device | No |
Topics
Initializing the Intent Object
init(audioRoute:destinationType:contacts:recordTypeForRedialing:callCapability:)init(callRecordFilter:callRecordToCallBack:audioRoute:destinationType:contacts:callCapability:)