Protocol

INSetClimateSettingsInCarIntentHandling

The handler interface for changing a vehicle’s climate control settings.

Overview

Automotive venders can support the INSetClimateSettingsInCarIntentHandling 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 climate control settings. Your extension should be able to communicate with the vehicle and make the necessary changes.

Siri delivers an INSetClimateSettingsInCarIntent object to your handler when the user asks to change any climate settings. The provided intent object contains information that you use to determine which settings changed and what the new settings should be.

Topics

Handling the Intent

func handle(intent: INSetClimateSettingsInCarIntent, completion: (INSetClimateSettingsInCarIntentResponse) -> Void)

Called when it is time for you to change the climate control settings.

Required.

Confirming the Response

func confirm(intent: INSetClimateSettingsInCarIntent, completion: (INSetClimateSettingsInCarIntentResponse) -> Void)

Called when it is time for you to confirm whether you can change the climate settings.

Resolving Details of the Intent

func resolveEnableFan(for: INSetClimateSettingsInCarIntent, with: (INBooleanResolutionResult) -> Void)

Called when it is time for you to resolve whether the fan can be enabled.

func resolveEnableAirConditioner(for: INSetClimateSettingsInCarIntent, with: (INBooleanResolutionResult) -> Void)

Called when it is time for you to resolve whether the air conditioner can be enabled.

func resolveEnableClimateControl(for: INSetClimateSettingsInCarIntent, with: (INBooleanResolutionResult) -> Void)

Called when it is time for you to resolve whether the climate control system can be enabled.

func resolveEnableAutoMode(for: INSetClimateSettingsInCarIntent, with: (INBooleanResolutionResult) -> Void)

Called when it is time for you to resolve whether automatic mode can be enabled.

func resolveFanSpeedIndex(for: INSetClimateSettingsInCarIntent, with: (INIntegerResolutionResult) -> Void)

Called when it is time for you to resolve the requested fan speed index.

func resolveFanSpeedPercentage(for: INSetClimateSettingsInCarIntent, with: (INDoubleResolutionResult) -> Void)

Called when it is time for you to resolve the requested fan speed percentage.

func resolveRelativeFanSpeedSetting(for: INSetClimateSettingsInCarIntent, with: (INRelativeSettingResolutionResult) -> Void)

Called when it is time for you to resolve the requested relative qualifier for the fan speed.

func resolveTemperature(for: INSetClimateSettingsInCarIntent, with: (INTemperatureResolutionResult) -> Void)

Called when it is time for you to resolve the requested temperature value.

func resolveRelativeTemperatureSetting(for: INSetClimateSettingsInCarIntent, with: (INRelativeSettingResolutionResult) -> Void)

Called when it is time for you to resolve the requested relative qualifier for the temperature change.

func resolveClimateZone(for: INSetClimateSettingsInCarIntent, with: (INCarSeatResolutionResult) -> Void)

Called when it is time for you to resolve the requested climate zone.

Relationships

Inherits From

See Also

Set Climate Settings in Car

class INSetClimateSettingsInCarIntent

A request to change the climate settings in a CarPlay-enabled vehicle.

class INSetClimateSettingsInCarIntentResponse

Your app’s response to a set climate settings 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