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.


open suspend fun setCabinTargetTemperature(zone: VehicleZone<SeatArea>, degreesCelsius: Float)

Deprecated

24Q1, use the type-safe overload that accepts a Temperature value.

Replace with

import com.tomtom.tools.android.api.quantity.Temperature
setCabinTargetTemperature(zone, Temperature.celsius(degreesCelsius.toDouble()))

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.