Instance Method

resolveContacts(for:with:)

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

Declaration

optional func resolveContacts(for intent: INStartVideoCallIntent, with completion: @escaping ([INPersonResolutionResult]) -> Void)

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 block to execute with the resolution. You must execute this block at some point during your implementation of this method. This block has no return value and takes the following parameter:

resolutionResult

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.