Instance Method


Called when it is time for you to confirm whether you can perform the search.


optional func confirm(intent: INStartPhotoPlaybackIntent, completion: @escaping (INStartPhotoPlaybackIntentResponse) -> 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. This handler has no return value and takes the following parameter:


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


Use this method to validate that you can perform the search using the given parameters. If the search involves contacting a remote server, you should also validate that the server is available. At some point in your implementation, execute the provided completion block with a response object indicating your app’s readiness to perform the search.