Class

INSetAudioSourceInCarIntentResponse

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

Overview

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.

Topics

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.

Relationships

Inherits From

Conforms To

See Also

Set Audio Source in Car

protocol INSetAudioSourceInCarIntentHandling

Handles the changing of a vehicle’s audio source.

class INSetAudioSourceInCarIntent

Changes the source of audio playback in a CarPlay-enabled vehicle.