Instance Method


Confirms whether you can change the audio source.


optional func confirm(intent: INSetAudioSourceInCarIntent, completion: @escaping (INSetAudioSourceInCarIntentResponse) -> 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 INSetAudioSourceInCarIntentResponse object containing the status of whether your app is able to change the audio source. This parameter must not be nil.


Implement this method to validate that you can change the audio source using the given parameters. For example, you might use this method to verify that you have an active connection to the vehicle. At some point in your implementation, execute the provided completion block with a response object indicating your app’s readiness to make the change.