# CabinTemperatureProfile

Artifact: [androidx.car.app:app](https://developer.android.com/jetpack/androidx/releases/car-app) [View Source](https://cs.android.com/search?q=file:androidx/car/app/hardware/climate/CabinTemperatureProfile.java+class:androidx.car.app.hardware.climate.CabinTemperatureProfile) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.3.0)

*** ** * ** ***


```
@RequiresCarApi(value = 5)
class CabinTemperatureProfile
```

<br />

*** ** * ** ***

Container class for information about the `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateProfileRequest#FEATURE_CABIN_TEMPERATURE()` feature such as supported min/max values and increments for the feature.

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CabinTemperatureProfile.Builder` A builder for CabinTemperatureProfile. |

| ### Public functions |
|---|---|
| `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-map/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-set/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html<https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarZone!>!, https://developer.android.com/reference/android/util/Pair.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html!, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html!>!>` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CabinTemperatureProfile#getCarZoneSetsToCabinCelsiusTemperatureRanges()()` Returns a pair of supported min/max range values in Celsius for the feature mapped to the set of car zones. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CabinTemperatureProfile#getCelsiusSupportedIncrement()()` Returns the increment number by which the Celsius values in the range differ. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CabinTemperatureProfile#getFahrenheitSupportedIncrement()()` Returns the increment number by which the Fahrenheit values in the range differ. |
| `https://developer.android.com/reference/android/util/Pair.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html!, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html!>` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CabinTemperatureProfile#getSupportedMinMaxCelsiusRange()()` Returns a pair of min and max range for the values of the property in Celsius. |
| `https://developer.android.com/reference/android/util/Pair.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html!, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html!>` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CabinTemperatureProfile#getSupportedMinMaxFahrenheitRange()()` Returns a pair of min and max range for the values of the property in Fahrenheit. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CabinTemperatureProfile#hasCarZoneSetsToCabinCelsiusTemperatureRanges()()` Reports whether the min/max Celsius mapped to the car zones is available or not. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CabinTemperatureProfile#hasCelsiusSupportedIncrement()()` Reports whether the increment value in Celsius is available or not. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CabinTemperatureProfile#hasFahrenheitSupportedIncrement()()` Reports whether the increment value in Fahrenheit is available or not. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CabinTemperatureProfile#hasSupportedMinMaxCelsiusRange()()` Reports whether the min/max Celsius from the config array is available or not. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CabinTemperatureProfile#hasSupportedMinMaxFahrenheitRange()()` Reports whether the min/max Fahrenheit from the config array is available or not. |

## Public functions

### getCarZoneSetsToCabinCelsiusTemperatureRanges

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.3.0)

```
fun getCarZoneSetsToCabinCelsiusTemperatureRanges(): (Mutable)Map<(Mutable)Set<CarZone!>!, Pair<Float!, Float!>!>
```

Returns a pair of supported min/max range values in Celsius for the feature mapped to the set of car zones.

The values that can be regulated together for a set of car zones are combined together.

### getCelsiusSupportedIncrement

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.3.0)

```
fun getCelsiusSupportedIncrement(): Float
```

Returns the increment number by which the Celsius values in the range differ.

For example, for the range \[16.0, 28.0\] and increment 0.5 would mean possible values like \[16.0, 16.5, 17.0, ...., 27.5, 28.0\].

throws IllegalStateException if the values of the increment is not present.

### getFahrenheitSupportedIncrement

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.3.0)

```
fun getFahrenheitSupportedIncrement(): Float
```

Returns the increment number by which the Fahrenheit values in the range differ.

For example, for the range \[60.5, 82.5\] and increment 1.0 would mean possible values like \[60.5, 61.5, 62.0, ...., 81.5, 82.5\].

throws IllegalStateException if the values of the increment is not present.

### getSupportedMinMaxCelsiusRange

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.3.0)

```
fun getSupportedMinMaxCelsiusRange(): Pair<Float!, Float!>
```

Returns a pair of min and max range for the values of the property in Celsius.

### getSupportedMinMaxFahrenheitRange

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.3.0)

```
fun getSupportedMinMaxFahrenheitRange(): Pair<Float!, Float!>
```

Returns a pair of min and max range for the values of the property in Fahrenheit.

### hasCarZoneSetsToCabinCelsiusTemperatureRanges

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.3.0)

```
fun hasCarZoneSetsToCabinCelsiusTemperatureRanges(): Boolean
```

Reports whether the min/max Celsius mapped to the car zones is available or not.

### hasCelsiusSupportedIncrement

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.3.0)

```
fun hasCelsiusSupportedIncrement(): Boolean
```

Reports whether the increment value in Celsius is available or not.

### hasFahrenheitSupportedIncrement

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.3.0)

```
fun hasFahrenheitSupportedIncrement(): Boolean
```

Reports whether the increment value in Fahrenheit is available or not.

### hasSupportedMinMaxCelsiusRange

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.3.0)

```
fun hasSupportedMinMaxCelsiusRange(): Boolean
```

Reports whether the min/max Celsius from the config array is available or not.

### hasSupportedMinMaxFahrenheitRange

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.3.0)

```
fun hasSupportedMinMaxFahrenheitRange(): Boolean
```

Reports whether the min/max Fahrenheit from the config array is available or not.