# CarHardwareManager

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

*** ** * ** ***


```
@RequiresCarApi(value = 3)
@MainThread
public interface CarHardwareManager extends Manager
```

<br />

Known direct subclasses [AutomotiveCarHardwareManager](https://developer.android.com/reference/androidx/car/app/hardware/AutomotiveCarHardwareManager)

|---|---|
| `https://developer.android.com/reference/androidx/car/app/hardware/AutomotiveCarHardwareManager` | `https://developer.android.com/reference/androidx/car/app/hardware/CarHardwareManager` which uses Android Automotive OS APIs to access properties, sensors, and actions. |

*** ** * ** ***

Manages access to car hardware specific properties and sensors.

## Summary

| ### Public methods |
|---|---|
| `default @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/car/app/hardware/climate/CarClimate` | `@https://developer.android.com/reference/androidx/car/app/annotations/ExperimentalCarApi https://developer.android.com/reference/androidx/car/app/hardware/CarHardwareManager#getCarClimate()()` Returns the `https://developer.android.com/reference/androidx/car/app/hardware/climate/CarClimate` that can be used to query climate information from the car hardware. |
| `default @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/car/app/hardware/info/CarInfo` | `https://developer.android.com/reference/androidx/car/app/hardware/CarHardwareManager#getCarInfo()()` Returns the `https://developer.android.com/reference/androidx/car/app/hardware/info/CarInfo` that can be used to query the car hardware information such as make, model, etc. |
| `default @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/car/app/hardware/info/CarSensors` | `https://developer.android.com/reference/androidx/car/app/hardware/CarHardwareManager#getCarSensors()()` Returns the `https://developer.android.com/reference/androidx/car/app/hardware/info/CarSensors` that can be used to access sensor information from the car hardware. |

## Public methods

### getCarClimate

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

```
@ExperimentalCarApi
default @NonNull CarClimate getCarClimate()
```

Returns the `https://developer.android.com/reference/androidx/car/app/hardware/climate/CarClimate` that can be used to query climate information from the car hardware.

### getCarInfo

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

```
default @NonNull CarInfo getCarInfo()
```

Returns the `https://developer.android.com/reference/androidx/car/app/hardware/info/CarInfo` that can be used to query the car hardware information such as make, model, etc.

### getCarSensors

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

```
default @NonNull CarSensors getCarSensors()
```

Returns the `https://developer.android.com/reference/androidx/car/app/hardware/info/CarSensors` that can be used to access sensor information from the car hardware.