Protocol

INStartAudioCallIntentHandling

The handler interface for initiating an audio call from your app.

Overview

Use the methods of the INStartAudioCallIntentHandling protocol to resolve, confirm, and handle requests to start an audio-only call with the designated users. Adopt this protocol in an object of your Intents extension that is capable of validating the call information. Your Intents extension should not try to initiate the call directly. Instead, a successful response involves asking Siri to launch your app to begin the call.

Siri delivers an INStartAudioCallIntent object to your handler when the user asks to initiate a call using your app. The provided intent object contains information about who the user wants to call. Use the methods of this protocol to resolve the list of contacts to be called and to validate that your app can place the call successfully.

Topics

Handling the Intent

func handle(intent: INStartAudioCallIntent, completion: (INStartAudioCallIntentResponse) -> Void)

Called when it is time for you to hand off the call to your app.

Required.

Confirming the Response

func confirm(intent: INStartAudioCallIntent, completion: (INStartAudioCallIntentResponse) -> Void)

Called when it is time for you to validate whether your app is able to initiate the call.

Resolving Details of the Intent

func resolveContacts(for: INStartAudioCallIntent, with: ([INPersonResolutionResult]) -> Void)

Called when it is time for you to resolve the recipients of the call.

Relationships

Inherits From

See Also

Start an Audio Call

class INStartAudioCallIntent

Requests an audio-only call with one or more users.

class INStartAudioCallIntentResponse

Contains your app’s response to a start audio call intent.