confirm(intent:completion:)
Validates whether your app is able to initiate the call.
Declaration
optional func confirm(intent: INStartAudioCallIntent, completion: @escaping @Sendable (INStartAudioCallIntentResponse) -> Void)optional func confirm(intent: INStartAudioCallIntent) async -> INStartAudioCallIntentResponseParameters
- intent:
The intent object containing details about the user’s request. The user has already resolved 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 whether your app is able to make the call. This parameter must not be
nil.
Discussion
Use this method to validate that your app is able to initiate the call to the specified users. You might check the availability of your calling network, verify that the current user is logged in and able to place the call, verify that the intended recipients are able to receive the call, or perform other tasks specific to your app.