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

*** ** * ** ***


```
public final class RegisterClimateStateRequest.Builder
```

<br />

*** ** * ** ***

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

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/car/app/hardware/climate/RegisterClimateStateRequest.Builder#Builder(boolean)(boolean registerAllFeatures)` Creates an instance of `https://developer.android.com/reference/androidx/car/app/hardware/climate/RegisterClimateStateRequest.Builder`. |

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/car/app/hardware/climate/RegisterClimateStateRequest.Builder` | `https://developer.android.com/reference/androidx/car/app/hardware/climate/RegisterClimateStateRequest.Builder#addClimateRegisterFeatures(androidx.car.app.hardware.climate.CarClimateFeature...)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html CarClimateFeature[] features)` Adds CarClimateFeatures in ClimateProfileRequest.ClimateProfileFeature. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/car/app/hardware/climate/RegisterClimateStateRequest` | `https://developer.android.com/reference/androidx/car/app/hardware/climate/RegisterClimateStateRequest.Builder#build()()` Constructs the `https://developer.android.com/reference/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)

```
public Builder(boolean registerAllFeatures)
```

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

| Parameters |
|---|---|
| `boolean registerAllFeatures` | a boolean value used to register all climate features in all zones |

## Public methods

### addClimateRegisterFeatures

```
public @NonNull RegisterClimateStateRequest.Builder addClimateRegisterFeatures(@NonNull CarClimateFeature[] features)
```

Adds CarClimateFeatures in ClimateProfileRequest.ClimateProfileFeature.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html CarClimateFeature[] features` | 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)

```
public @NonNull RegisterClimateStateRequest build()
```

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