handle(intent:completion:)
Provides information to hand off the call to your app.
Declaration
func handle(intent: INStartVideoCallIntent, completion: @escaping @Sendable (INStartVideoCallIntentResponse) -> Void)func handle(intent: INStartVideoCallIntent) async -> INStartVideoCallIntentResponseParameters
- 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 Instartvideocallintentresponse 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.