Instance Method

confirm(intent:completion:)

Confirms that you can perform the search.

Declaration

optional func confirm(intent: INSearchCallHistoryIntent, completion: @escaping (INSearchCallHistoryIntentResponse) -> Void)

Parameters

intent

The intent object containing details about the user’s request. The information in this object has already been resolved by your handler object.

completion

The handler block to execute with your response. You must execute this handler at some point during your implementation of this method. The handler has no return value and takes the following parameter:

response

The INSearchCallHistoryIntentResponse object containing the status of whether your app is able to perform the search. This parameter must not be nil.

Discussion

Implement this method to validate that you’re able to perform the search using the specified criteria. You might use this method to validate that you’ve access to the user’s call history and that there are records to search.