44.11 Implementing the Confirmation Method
When Siri has gathered the necessary information for the user, a call is made to the confirm method of the intent handler instance. The purpose of this call is to provide the handler with an opportunity to check that everything is ready to handle the intent. In the case of the SiriPhoto app, there are no special requirements so the method can be implemented to reply with a ready status:
func confirm(intent: INSearchForPhotosIntent,
completion: @escaping (INSearchForPhotosIntentResponse) -> Void)
{
let response = INSearchForPhotosIntentResponse(code: .ready,
userActivity: nil)
completion(response)
}