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

*** ** * ** ***


```
class RegisterClimateStateRequest.Builder
```

<br />

*** ** * ** ***

A builder of `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/RegisterClimateStateRequest`.

## Summary

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

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/RegisterClimateStateRequest.Builder` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/RegisterClimateStateRequest.Builder#addClimateRegisterFeatures(androidx.car.app.hardware.climate.CarClimateFeature...)(features: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CarClimateFeature!>)` Adds CarClimateFeatures in ClimateProfileRequest.ClimateProfileFeature. |
| `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/RegisterClimateStateRequest` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/RegisterClimateStateRequest.Builder#build()()` Constructs the `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/RegisterClimateStateRequest` defined by this builder. |

## Public constructors

### Builder

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

```
Builder(registerAllFeatures: Boolean)
```

Creates an instance of `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/RegisterClimateStateRequest.Builder`.

| Parameters |
|---|---|
| `registerAllFeatures: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | a boolean value used to register all climate features in all zones |

## Public functions

### addClimateRegisterFeatures

```
fun addClimateRegisterFeatures(features: Array<CarClimateFeature!>): RegisterClimateStateRequest.Builder
```

Adds CarClimateFeatures in ClimateProfileRequest.ClimateProfileFeature.

| Parameters |
|---|---|
| `features: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CarClimateFeature!>` | indicate which features the application is interested in |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | if the feature flag is not one of ClimateProfileFeature |

### build

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

```
fun build(): RegisterClimateStateRequest
```

Constructs the `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/RegisterClimateStateRequest` defined by this builder.