Instance Method

resolveContactsForStartAudioCall:withCompletion:

Called when it is time for you to resolve the recipients of the call.

Declaration

- (void)resolveContactsForStartAudioCall:(INStartAudioCallIntent *)intent withCompletion:(void (^)(NSArray<INPersonResolutionResult *> *resolutionResults))completion;

Parameters

intent

The intent object containing details about the user’s request. Use the information in this object to resolve the list of contacts.

completion

The handler block to execute with the resolution. 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:

resolutionResults

The object containing the details of your proposed resolution. For each successful resolution, create a resolution result that includes the INPerson object with the information that you need to call the user later.

Discussion

Use this method to verify the identity of any intended call recipients. Always strive toward a successful resolution to a specific user, but feel free to ask for confirmation of the selected user if there is some uncertainty.

If you find multiple users matching the same name, consider asking the user to disambiguate from among the most likely candidates. When disambiguating users, provide as few choices as possible. If you find more than five possible users, consider a different resolution.

See Also

Resolving the Intent Parameters

- resolveDestinationTypeForStartAudioCall:withCompletion:

Called when it is time for you to resolve the destination of the call.

Deprecated