Protocol

INSetAudioSourceInCarIntentHandling

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

Declaration

@protocol INSetAudioSourceInCarIntentHandling

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

Resolving the Intent Parameters

- resolveAudioSourceForSetAudioSourceInCar:withCompletion:

Resolves an explicitly selected audio source.

- resolveRelativeAudioSourceReferenceForSetAudioSourceInCar:withCompletion:

Resolves the audio source using a relative qualifier.

Confirming the Response

- confirmSetAudioSourceInCar:completion:

Confirms whether you can change the audio source.

Handling the Intent

- handleSetAudioSourceInCar:completion:

Handles changing the audio source.

Required.

Relationships

Inherits From

See Also

Set Audio Source in Car

INSetAudioSourceInCarIntent

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

INSetAudioSourceInCarIntentResponse

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software