Instance Method

resolveRecipientForSearchCallHistory:withCompletion:

Resolves the search criteria for the recipients.

Declaration

- (void)resolveRecipientForSearchCallHistory:(INSearchCallHistoryIntent *)intent withCompletion:(void (^)(INPersonResolutionResult *resolutionResult))completion;

Parameters

intent

The intent object containing details about the user’s request. Use this object to get the initial information, if any, provided by the user.

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 successful resolutions, create a resolution that includes the INPerson object that you can use to identify the user later.

Discussion

Implement this method to verify the identity of any intended contacts in the search parameters. 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

- resolveCallTypesForSearchCallHistory:withCompletion:

Resolves the search criteria for the call type.

- resolveCallTypeForSearchCallHistory:withCompletion:

Resolves the search criteria for the call type.

Deprecated
- resolveDateCreatedForSearchCallHistory:withCompletion:

Resolves the range of dates for the search.

- resolveUnseenForSearchCallHistory:withCompletion:

Resolves whether you can search for calls that the user has not yet seen.