Contents

handle(intent:completion:)

Provides information to hand off the call to your app.

Declaration

func handle(intent: INStartAudioCallIntent, completion: @escaping  @Sendable (INStartAudioCallIntentResponse) -> Void)
func handle(intent: INStartAudioCallIntent) async -> INStartAudioCallIntentResponse

Parameters

  • intent:

    The intent object containing details about the user’s request. The user has already resolved and confirmed the information in this object.

  • completion:

    The handler block to execute with your response. You must execute this handler at some point during your implementation of this method. This handler has no return value and takes the following parameter:

    response

    The Instartaudiocallintentresponse object containing the status of the request. This parameter must not be nil.

Discussion

Use this method to turn control of the call over to your app. Perform any final checks and create a response object with the information needed to initiate the call in your app. Don’t try to initiate the call directly from this method. When your response object contains the INStartAudioCallIntentResponseCode.continueInApp code, Siri automatically launches your app and passes it the NSUserActivity object from your response object.