confirm(intent:completion:)
Confirms whether your app is able to initiate the call.
Declaration
optional func confirm(intent: INStartCallIntent, completion: @escaping @Sendable (INStartCallIntentResponse) -> Void)optional func confirm(intent: INStartCallIntent) async -> INStartCallIntentResponseParameters
- intent:
The intent object that contains details about the user’s request. This object’s information 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 whether your app is able to make the call. This parameter must not be
nil.
Discussion
This method validates that your app is able to initiate the call to the specified users. For example, checking the availability of your calling network, verifying that the current user is able to place the call, or performing other tasks specific to your app.