setCabinTargetTemperature
abstract suspend fun setCabinTargetTemperature(zone: VehicleZone<SeatArea>, temperature: Temperature)
Sets the cabin target temperature for a specific zone.
Parameters
zone
A set of SeatArea; areas which are not supported by cabinTargetTemperature will be ignored.
temperature
The temperature. Values outside the range, as provided by the property cabinTargetTemperature, will be clamped.
Deprecated
24Q1, use the type-safe overload that accepts a Temperature value.
Replace with
import com.tomtom.tools.android.api.quantity.Temperature
Content copied to clipboard
setCabinTargetTemperature(zone, Temperature.celsius(degreesCelsius.toDouble()))
Content copied to clipboard
Sets the cabin target temperature for a specific zone.
Backwards-compatible alias for the setCabinTargetTemperature version that accepts a Temperature value.
Parameters
zone
A set of SeatArea; areas which are not supported by cabinTargetTemperatureCelsius will be ignored.
degreesCelsius
The temperature in Celsius. Values outside the range, as provided by the property cabinTargetTemperatureCelsius, will be clamped.