Your app’s response to a set audio source in car intent.


class INSetAudioSourceInCarIntentResponse : INIntentResponse


An INSetAudioSourceInCarIntentResponse object contains the status of changing the audio source in the user’s vehicle. You create instances of this class when confirming or handling a set audio source in car intent.

You create an INSetAudioSourceInCarIntentResponse object in the confirm(intent:completion:) and handle(intent:completion:) methods of your set audio source in car handler object. For more information about implementing your handler object, see INSetAudioSourceInCarIntentHandling.


Initializing the Response Object

init(code: INSetAudioSourceInCarIntentResponseCode, userActivity: NSUserActivity?)

Initializes the response object with the specified code and user activity object.

Getting the Response Code

var code: INSetAudioSourceInCarIntentResponseCode

The code indicating whether you successfully handled the intent.

enum INSetAudioSourceInCarIntentResponseCode

Constants indicating the state of the response.


Inherits From

Conforms To

See Also

Set Audio Source in Car

protocol INSetAudioSourceInCarIntentHandling

The handler interface for changing a vehicle’s audio source.

class INSetAudioSourceInCarIntent

A request to change the source of audio playback in a CarPlay-enabled vehicle.