Protocol

INSetAudioSourceInCarIntentHandling

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

Overview

Automotive venders can support the INSetAudioSourceInCarIntentHandling protocol in an Intents extension that they ship with their automotive apps. Use the methods of this protocol to resolve, confirm, and handle requests to change the vehicle’s current audio source. Your extension should be able to communicate with the vehicle and make the necessary audio changes.

Siri delivers an INSetAudioSourceInCarIntent object to your handler when the user asks to change the audio source. The provided intent object contains information that you use to determine the new audio source and to make the change.

Topics

Handling the Intent

Confirming the Response

func confirm(intent: INSetAudioSourceInCarIntent, completion: (INSetAudioSourceInCarIntentResponse) -> Void)

Called when it is time for you to confirm whether you can change the audio source.

Resolving Details of the Intent

func resolveAudioSource(for: INSetAudioSourceInCarIntent, with: (INCarAudioSourceResolutionResult) -> Void)

Called when it is time for you to resolve an explicitly selected audio source.

func resolveRelativeAudioSourceReference(for: INSetAudioSourceInCarIntent, with: (INRelativeReferenceResolutionResult) -> Void)

Called when it is time for you to resolve the audio source using a relative qualifier.

Relationships

Inherits From

See Also

Set Audio Source in Car

class INSetAudioSourceInCarIntent

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

class INSetAudioSourceInCarIntentResponse

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