Instance Method

confirmStartAudioCall:completion:

Called when it is time for you to validate whether your app is able to initiate the call.

Declaration

- (void)confirmStartAudioCall:(INStartAudioCallIntent *)intent completion:(void (^)(INStartAudioCallIntentResponse *response))completion;

Parameters

intent

The intent object containing 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 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.