# 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)

*** ** * ** ***


```
public final class CarClimateFeature.Builder
```

<br />

*** ** * ** ***

A builder for CarClimateFeature.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/car/app/hardware/climate/CarClimateFeature.Builder#Builder(int)(int feature)` Creates an instance of builder. |

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/car/app/hardware/climate/CarClimateFeature.Builder` | `https://developer.android.com/reference/androidx/car/app/hardware/climate/CarClimateFeature.Builder#addCarZones(androidx.car.app.hardware.common.CarZone...)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html CarZone[] carZones)` Adds CarZones into the CarClimateFeature. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/car/app/hardware/climate/CarClimateFeature` | `https://developer.android.com/reference/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)

```
public Builder(int feature)
```

Creates an instance of builder.

| Parameters |
|---|---|
| `int feature` | one of integer flags in ClimateStateFeature or ClimateProfileFeatures |

## Public methods

### addCarZones

```
public @NonNull CarClimateFeature.Builder addCarZones(@NonNull CarZone[] carZones)
```

Adds CarZones into the CarClimateFeature.

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

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html CarZone[] carZones` | CarZones for this CarClimateFeature |

### build

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

```
public @NonNull CarClimateFeature build()
```

Create a CarClimateFeature.