# 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)
public final class CabinTemperatureProfile
```

<br />

*** ** * ** ***

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

## Summary

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

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/Map.html<https://developer.android.com/reference/java/util/Set.html<https://developer.android.com/reference/androidx/car/app/hardware/common/CarZone>, https://developer.android.com/reference/android/util/Pair.html<https://developer.android.com/reference/java/lang/Float.html, https://developer.android.com/reference/java/lang/Float.html>>` | `https://developer.android.com/reference/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. |
| `float` | `https://developer.android.com/reference/androidx/car/app/hardware/climate/CabinTemperatureProfile#getCelsiusSupportedIncrement()()` Returns the increment number by which the Celsius values in the range differ. |
| `float` | `https://developer.android.com/reference/androidx/car/app/hardware/climate/CabinTemperatureProfile#getFahrenheitSupportedIncrement()()` Returns the increment number by which the Fahrenheit values in the range differ. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/util/Pair.html<https://developer.android.com/reference/java/lang/Float.html, https://developer.android.com/reference/java/lang/Float.html>` | `https://developer.android.com/reference/androidx/car/app/hardware/climate/CabinTemperatureProfile#getSupportedMinMaxCelsiusRange()()` Returns a pair of min and max range for the values of the property in Celsius. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/util/Pair.html<https://developer.android.com/reference/java/lang/Float.html, https://developer.android.com/reference/java/lang/Float.html>` | `https://developer.android.com/reference/androidx/car/app/hardware/climate/CabinTemperatureProfile#getSupportedMinMaxFahrenheitRange()()` Returns a pair of min and max range for the values of the property in Fahrenheit. |
| `boolean` | `https://developer.android.com/reference/androidx/car/app/hardware/climate/CabinTemperatureProfile#hasCarZoneSetsToCabinCelsiusTemperatureRanges()()` Reports whether the min/max Celsius mapped to the car zones is available or not. |
| `boolean` | `https://developer.android.com/reference/androidx/car/app/hardware/climate/CabinTemperatureProfile#hasCelsiusSupportedIncrement()()` Reports whether the increment value in Celsius is available or not. |
| `boolean` | `https://developer.android.com/reference/androidx/car/app/hardware/climate/CabinTemperatureProfile#hasFahrenheitSupportedIncrement()()` Reports whether the increment value in Fahrenheit is available or not. |
| `boolean` | `https://developer.android.com/reference/androidx/car/app/hardware/climate/CabinTemperatureProfile#hasSupportedMinMaxCelsiusRange()()` Reports whether the min/max Celsius from the config array is available or not. |
| `boolean` | `https://developer.android.com/reference/androidx/car/app/hardware/climate/CabinTemperatureProfile#hasSupportedMinMaxFahrenheitRange()()` Reports whether the min/max Fahrenheit from the config array is available or not. |

## Public methods

### getCarZoneSetsToCabinCelsiusTemperatureRanges

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

```
public @NonNull Map<Set<CarZone>, Pair<Float, Float>> getCarZoneSetsToCabinCelsiusTemperatureRanges()
```

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)

```
public float getCelsiusSupportedIncrement()
```

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)

```
public float getFahrenheitSupportedIncrement()
```

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)

```
public @NonNull Pair<Float, Float> getSupportedMinMaxCelsiusRange()
```

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)

```
public @NonNull Pair<Float, Float> getSupportedMinMaxFahrenheitRange()
```

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)

```
public boolean hasCarZoneSetsToCabinCelsiusTemperatureRanges()
```

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)

```
public boolean hasCelsiusSupportedIncrement()
```

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)

```
public boolean hasFahrenheitSupportedIncrement()
```

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)

```
public boolean hasSupportedMinMaxCelsiusRange()
```

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)

```
public boolean hasSupportedMinMaxFahrenheitRange()
```

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