# CarClimateFeature

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/CarClimateFeature.java+class:androidx.car.app.hardware.climate.CarClimateFeature) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.3.0)

*** ** * ** ***


```
@RequiresCarApi(value = 5)
@MainThread
@CarProtocol
class CarClimateFeature
```

<br />

*** ** * ** ***

A data value used in climate related requests to indicate the features and zones the caller is interested in.

## Summary

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

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CarClimateFeature#equals(java.lang.Object)(o: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!)` |
| `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarZone!>` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CarClimateFeature#getCarZones()()` Returns a list of CarZones. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CarClimateFeature#getFeature()()` Returns an integer flag of the feature. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CarClimateFeature#hashCode()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CarClimateFeature#toString()()` |

## Public functions

### equals

```
fun equals(o: Any!): Boolean
```

### getCarZones

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

```
fun getCarZones(): (Mutable)List<CarZone!>
```

Returns a list of CarZones.

If the application is interested in all zones, the return value will only contains a CarZone#CAR_ZONE_GLOBAL. Otherwise, the return values will contain every individual seats the application requested for.

For example, the application requested information for the second row seats. The list will contain three individual CarZones. They are the left side seat of the second row, the center seat of the second row and the right side seat of the second row.

### getFeature

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

```
fun getFeature(): Int
```

Returns an integer flag of the feature.

The feature flag must be one of ClimateProfileRequest.ClimateProfileFeatures.

### hashCode

```
fun hashCode(): Int
```

### toString

```
fun toString(): String
```