Instance Method

resolveCallTypeForSearchCallHistory:withCompletion:

Resolves the search criteria for the call type.

Declaration

- (void)resolveCallTypeForSearchCallHistory:(INSearchCallHistoryIntent *)intent withCompletion:(void (^)(INCallRecordTypeResolutionResult *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 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:

resolutionResult

The object containing the details of your proposed resolution. For successful resolutions, create a resolution result that contains the types of calls you are able to search.

Discussion

Implement this method to let SiriKit know which types of calls you can search. Your implementation should provide a successful resolution for the call types you support and an unsupported resolution for any call types you do not support.

See Also

Resolving the Intent Parameters

- resolveCallTypesForSearchCallHistory:withCompletion:

Resolves the search criteria for the call type.

- resolveRecipientForSearchCallHistory:withCompletion:

Resolves the search criteria for the recipients.

- 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.