handle(intent:completion:)
Handles handing off the call to your app.
Declaration
func handle(intent: INStartCallIntent, completion: @escaping @Sendable (INStartCallIntentResponse) -> Void)func handle(intent: INStartCallIntent) async -> INStartCallIntentResponseParameters
- intent:
The intent object that contains details about the user’s request. The information in this object has already been resolved by the user.
- completion:
The handler block to execute with your response. You must execute this handler while implementing this method. This handler has no return value and takes the following parameter:
- response
The Instartaudiocallintentresponse object that contains the status of the request. This parameter must not be
nil.
Discussion
Use this method to transfer control of the call 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.