Instance Method


Confirms whether you can perform the search.


optional func confirm(intent: INSearchForNotebookItemsIntent, completion: @escaping (INSearchForNotebookItemsIntentResponse) -> Void)



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


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:


The INSearchForNotebookItemsIntentResponse object containing the details to confirm with the user. This parameter must not be nil.


Implement this method to validate that you can perform the search based on the provided criteria, but do not perform the search yet. If performing the search involves contacting a remote server, validate that your server is available and ready to handle requests. At some point in your implementation, execute the provided completion block with a response object indicating your app’s readiness to perform the search.