Contents

confirm(intent:completion:)

Confirms that you can perform the search.

Declaration

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

Parameters

  • intent:

    The intent object containing details about the user’s request. Your handler has already resolved the information in this 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.