# CarClimateStateCallback

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

*** ** * ** ***


```
@CarProtocol
@RequiresCarApi(value = 5)
interface CarClimateStateCallback
```

<br />

*** ** * ** ***

A callback for the car climate state returned from the car hardware, for example, Fan speed, Temperature etc.

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CarClimateStateCallback#onCabinTemperatureStateAvailable(androidx.car.app.hardware.common.CarValue<java.lang.Float>)(hvacCabinTemperature: https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html!>)` Notifies that the climate state for `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateProfileRequest#FEATURE_CABIN_TEMPERATURE()` is updated. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CarClimateStateCallback#onDefrosterStateAvailable(androidx.car.app.hardware.common.CarValue<java.lang.Boolean>)(defrosterState: https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html!>)` Notifies that the climate state for `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateProfileRequest#FEATURE_HVAC_DEFROSTER()` is updated. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CarClimateStateCallback#onElectricDefrosterStateAvailable(androidx.car.app.hardware.common.CarValue<java.lang.Boolean>)( electricDefrosterState: https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html!> )` Notifies that the climate state for `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateProfileRequest#FEATURE_HVAC_ELECTRIC_DEFROSTER()` is updated. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CarClimateStateCallback#onFanDirectionStateAvailable(androidx.car.app.hardware.common.CarValue<java.lang.Integer>)(fanDirection: https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html!>)` Notifies that the climate state for `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateProfileRequest#FEATURE_FAN_DIRECTION()` is updated. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CarClimateStateCallback#onFanSpeedLevelStateAvailable(androidx.car.app.hardware.common.CarValue<java.lang.Integer>)(fanSpeedLevel: https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html!>)` Notifies that the climate state for `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateProfileRequest#FEATURE_FAN_SPEED()` is updated. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CarClimateStateCallback#onHvacAcStateAvailable(androidx.car.app.hardware.common.CarValue<java.lang.Boolean>)(hvacAcState: https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html!>)` Notifies that the climate state for `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateProfileRequest#FEATURE_HVAC_AC()` is updated. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CarClimateStateCallback#onHvacAutoModeStateAvailable(androidx.car.app.hardware.common.CarValue<java.lang.Boolean>)(hvacAutoModeState: https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html!>)` Notifies that the climate state for `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateProfileRequest#FEATURE_HVAC_AUTO_MODE()` is updated. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CarClimateStateCallback#onHvacAutoRecirculationStateAvailable(androidx.car.app.hardware.common.CarValue<java.lang.Boolean>)( hvacAutoRecirculationState: https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html!> )` Notifies that the climate state for `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateProfileRequest#FEATURE_HVAC_AUTO_RECIRCULATION()` is updated. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CarClimateStateCallback#onHvacDualModeStateAvailable(androidx.car.app.hardware.common.CarValue<java.lang.Boolean>)(hvacDualModeState: https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html!>)` Notifies that the climate state for `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateProfileRequest#FEATURE_HVAC_DUAL_MODE()` is updated. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CarClimateStateCallback#onHvacMaxAcModeStateAvailable(androidx.car.app.hardware.common.CarValue<java.lang.Boolean>)(hvacMaxAcModeState: https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html!>)` Notifies that the climate state for `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateProfileRequest#FEATURE_HVAC_MAX_AC()` is updated. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CarClimateStateCallback#onHvacPowerStateAvailable(androidx.car.app.hardware.common.CarValue<java.lang.Boolean>)(hvacPowerState: https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html!>)` Notifies that the climate state for `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateProfileRequest#FEATURE_HVAC_POWER()` is updated. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CarClimateStateCallback#onHvacRecirculationStateAvailable(androidx.car.app.hardware.common.CarValue<java.lang.Boolean>)( hvacRecirculationState: https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html!> )` Notifies that the climate state for `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateProfileRequest#FEATURE_HVAC_RECIRCULATION()` is updated. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CarClimateStateCallback#onMaxDefrosterStateAvailable(androidx.car.app.hardware.common.CarValue<java.lang.Boolean>)(maxDefrosterState: https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html!>)` Notifies that the climate state for `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateProfileRequest#FEATURE_HVAC_MAX_DEFROSTER()` is updated. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CarClimateStateCallback#onSeatTemperatureLevelStateAvailable(androidx.car.app.hardware.common.CarValue<java.lang.Integer>)( seatTemperatureLevel: https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html!> )` Notifies that the climate state for `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateProfileRequest#FEATURE_SEAT_TEMPERATURE_LEVEL()` is updated. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CarClimateStateCallback#onSeatVentilationLevelStateAvailable(androidx.car.app.hardware.common.CarValue<java.lang.Integer>)( seatVentilationLevel: https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html!> )` Notifies that the climate state for `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateProfileRequest#FEATURE_SEAT_VENTILATION_LEVEL()` is updated. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/CarClimateStateCallback#onSteeringWheelHeatStateAvailable(androidx.car.app.hardware.common.CarValue<java.lang.Boolean>)( steeringWheelHeatState: https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html!> )` Notifies that the climate state for `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateProfileRequest#FEATURE_STEERING_WHEEL_HEAT()` is updated. |

## Public functions

### onCabinTemperatureStateAvailable

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

```
fun onCabinTemperatureStateAvailable(hvacCabinTemperature: CarValue<Float!>): Unit
```

Notifies that the climate state for `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateProfileRequest#FEATURE_CABIN_TEMPERATURE()` is updated.

| Parameters |
|---|---|
| `hvacCabinTemperature: https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html!>` | the updated state of hvacCabinTemperature |

### onDefrosterStateAvailable

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

```
fun onDefrosterStateAvailable(defrosterState: CarValue<Boolean!>): Unit
```

Notifies that the climate state for `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateProfileRequest#FEATURE_HVAC_DEFROSTER()` is updated.

| Parameters |
|---|---|
| `defrosterState: https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html!>` | the updated state of defrosterState |

### onElectricDefrosterStateAvailable

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

```
fun onElectricDefrosterStateAvailable(
    electricDefrosterState: CarValue<Boolean!>
): Unit
```

Notifies that the climate state for `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateProfileRequest#FEATURE_HVAC_ELECTRIC_DEFROSTER()` is updated.

| Parameters |
|---|---|
| `electricDefrosterState: https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html!>` | the updated state of electricDefrosterState |

### onFanDirectionStateAvailable

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

```
fun onFanDirectionStateAvailable(fanDirection: CarValue<Int!>): Unit
```

Notifies that the climate state for `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateProfileRequest#FEATURE_FAN_DIRECTION()` is updated.

| Parameters |
|---|---|
| `fanDirection: https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html!>` | the updated state of fanDirection |

### onFanSpeedLevelStateAvailable

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

```
fun onFanSpeedLevelStateAvailable(fanSpeedLevel: CarValue<Int!>): Unit
```

Notifies that the climate state for `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateProfileRequest#FEATURE_FAN_SPEED()` is updated.

| Parameters |
|---|---|
| `fanSpeedLevel: https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html!>` | the updated state of fanSpeedLevel |

### onHvacAcStateAvailable

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

```
fun onHvacAcStateAvailable(hvacAcState: CarValue<Boolean!>): Unit
```

Notifies that the climate state for `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateProfileRequest#FEATURE_HVAC_AC()` is updated.

| Parameters |
|---|---|
| `hvacAcState: https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html!>` | the updated state of hvacAcState |

### onHvacAutoModeStateAvailable

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

```
fun onHvacAutoModeStateAvailable(hvacAutoModeState: CarValue<Boolean!>): Unit
```

Notifies that the climate state for `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateProfileRequest#FEATURE_HVAC_AUTO_MODE()` is updated.

| Parameters |
|---|---|
| `hvacAutoModeState: https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html!>` | the updated state of hvacAutoModeState |

### onHvacAutoRecirculationStateAvailable

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

```
fun onHvacAutoRecirculationStateAvailable(
    hvacAutoRecirculationState: CarValue<Boolean!>
): Unit
```

Notifies that the climate state for `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateProfileRequest#FEATURE_HVAC_AUTO_RECIRCULATION()` is updated.

| Parameters |
|---|---|
| `hvacAutoRecirculationState: https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html!>` | the updated state of hvacAutoRecirculationState |

### onHvacDualModeStateAvailable

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

```
fun onHvacDualModeStateAvailable(hvacDualModeState: CarValue<Boolean!>): Unit
```

Notifies that the climate state for `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateProfileRequest#FEATURE_HVAC_DUAL_MODE()` is updated.

| Parameters |
|---|---|
| `hvacDualModeState: https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html!>` | the updated state of hvacDualModeState |

### onHvacMaxAcModeStateAvailable

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

```
fun onHvacMaxAcModeStateAvailable(hvacMaxAcModeState: CarValue<Boolean!>): Unit
```

Notifies that the climate state for `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateProfileRequest#FEATURE_HVAC_MAX_AC()` is updated.

| Parameters |
|---|---|
| `hvacMaxAcModeState: https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html!>` | the updated state of hvacMaxAcModeState |

### onHvacPowerStateAvailable

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

```
fun onHvacPowerStateAvailable(hvacPowerState: CarValue<Boolean!>): Unit
```

Notifies that the climate state for `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateProfileRequest#FEATURE_HVAC_POWER()` is updated.

| Parameters |
|---|---|
| `hvacPowerState: https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html!>` | the updated state of hvacPowerState |

### onHvacRecirculationStateAvailable

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

```
fun onHvacRecirculationStateAvailable(
    hvacRecirculationState: CarValue<Boolean!>
): Unit
```

Notifies that the climate state for `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateProfileRequest#FEATURE_HVAC_RECIRCULATION()` is updated.

| Parameters |
|---|---|
| `hvacRecirculationState: https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html!>` | the updated state of hvacRecirculationState |

### onMaxDefrosterStateAvailable

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

```
fun onMaxDefrosterStateAvailable(maxDefrosterState: CarValue<Boolean!>): Unit
```

Notifies that the climate state for `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateProfileRequest#FEATURE_HVAC_MAX_DEFROSTER()` is updated.

| Parameters |
|---|---|
| `maxDefrosterState: https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html!>` | the updated state of maxDefrosterState |

### onSeatTemperatureLevelStateAvailable

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

```
fun onSeatTemperatureLevelStateAvailable(
    seatTemperatureLevel: CarValue<Int!>
): Unit
```

Notifies that the climate state for `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateProfileRequest#FEATURE_SEAT_TEMPERATURE_LEVEL()` is updated.

| Parameters |
|---|---|
| `seatTemperatureLevel: https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html!>` | the updated state of seatTemperatureLevel |

### onSeatVentilationLevelStateAvailable

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

```
fun onSeatVentilationLevelStateAvailable(
    seatVentilationLevel: CarValue<Int!>
): Unit
```

Notifies that the climate state for `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateProfileRequest#FEATURE_SEAT_VENTILATION_LEVEL()` is updated.

| Parameters |
|---|---|
| `seatVentilationLevel: https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html!>` | the updated state of seatVentilationLevel |

### onSteeringWheelHeatStateAvailable

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

```
fun onSteeringWheelHeatStateAvailable(
    steeringWheelHeatState: CarValue<Boolean!>
): Unit
```

Notifies that the climate state for `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateProfileRequest#FEATURE_STEERING_WHEEL_HEAT()` is updated.

| Parameters |
|---|---|
| `steeringWheelHeatState: https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html!>` | the updated state of steeringWheelHeatState |