# CarClimateFeature.Builder

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

*** ** * ** ***


```
class CarClimateFeature.Builder
```

<br />

*** ** * ** ***

A builder for CarClimateFeature.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CarClimateFeature.Builder#Builder(int)(feature: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Creates an instance of builder. |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CarClimateFeature.Builder` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CarClimateFeature.Builder#addCarZones(androidx.car.app.hardware.common.CarZone...)(carZones: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarZone!>)` Adds CarZones into the CarClimateFeature. |
| `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CarClimateFeature` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CarClimateFeature.Builder#build()()` Create a CarClimateFeature. |

## Public constructors

### Builder

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

```
Builder(feature: Int)
```

Creates an instance of builder.

| Parameters |
|---|---|
| `feature: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | one of integer flags in ClimateStateFeature or ClimateProfileFeatures |

## Public functions

### addCarZones

```
fun addCarZones(carZones: Array<CarZone!>): CarClimateFeature.Builder
```

Adds CarZones into the CarClimateFeature.

If carZones are not set in the feature, the Builder will create the feature with all available zones.

| Parameters |
|---|---|
| `carZones: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarZone!>` | CarZones for this CarClimateFeature |

### build

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

```
fun build(): CarClimateFeature
```

Create a CarClimateFeature.