Protocol

INSaveProfileInCarIntentHandling

Handles the saving of vehicle environment settings to a user-specified profile.

Overview

Automotive venders can support the INSaveProfileInCarIntentHandling 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 save vehicle-related settings to the profile that the user designated. Your extension should be able to communicate with the vehicle and save the necessary settings.

Siri delivers an INSaveProfileInCarIntent object to your handler when the user asks to save the current settings to a specific profile. The provided intent object contains information that you use to determine where to save the settings.

Topics

Handling the Intent

func handle(intent: INSaveProfileInCarIntent, completion: (INSaveProfileInCarIntentResponse) -> Void)

Called when it is time for you to save any settings to the designated profile.

Required.

Confirming the Response

func confirm(intent: INSaveProfileInCarIntent, completion: (INSaveProfileInCarIntentResponse) -> Void)

Called when it is time for you to confirm whether you can save the settings to the designated profile.

Resolving Details of the Intent

func resolveProfileNumber(for: INSaveProfileInCarIntent, with: (INIntegerResolutionResult) -> Void)

Called when it is time for you to resolve the profile index in which to save any settings.

func resolveProfileName(for: INSaveProfileInCarIntent, with: (INStringResolutionResult) -> Void)

Called when it is time for you to resolve the profile name in which to save any settings.

Relationships

Inherits From

See Also

Save Profile in Car

class INSaveProfileInCarIntent

Saves the user’s vehicle environment settings in a CarPlay-enabled vehicle.

class INSaveProfileInCarIntentResponse

Contains your app’s response to a save profile in car intent.