# AThermalHeadroomThreshold

This struct defines an instance of headroom threshold value and its status.

## Summary

The value should be monotonically non-decreasing as the thermal status increases. For [ATHERMAL_STATUS_SEVERE](https://developer.android.com/ndk/reference/group/thermal#group___thermal_1gga12839f5ee073eb6d2c099b48680459dda2be15702c0757c9eb08a24886427c711), its headroom threshold is guaranteed to be 1.0f. For status below severe status, the value should be lower or equal to 1.0f, and for status above severe, the value should be larger or equal to 1.0f.

Also see [AThermal_getThermalHeadroom](https://developer.android.com/ndk/reference/group/thermal#group___thermal_1ga0dd3a87803b3549a9352ef5e6bf83d80) for explanation on headroom, and [AThermal_getThermalHeadroomThresholds](https://developer.android.com/ndk/reference/group/thermal#group___thermal_1gad5f0c9c4bc98a169b406e361df2fcb17) for how to use this.

| ### Public attributes ||
|---|---|
| `https://developer.android.com/ndk/reference/struct/a-thermal-headroom-threshold#struct_a_thermal_headroom_threshold_1a56fbb372ae64755e1cb18476202edb2e` | `float` |
| `https://developer.android.com/ndk/reference/struct/a-thermal-headroom-threshold#struct_a_thermal_headroom_threshold_1a3a74887a17f9508217295f30c259da4e` | `https://developer.android.com/ndk/reference/group/thermal#group___thermal_1ga12839f5ee073eb6d2c099b48680459dd` |

## Public attributes

### headroom

Declared in `android/thermal.h`

```text
float AThermalHeadroomThreshold::headroom
```

### thermalStatus

Declared in `android/thermal.h`

```text
AThermalStatus AThermalHeadroomThreshold::thermalStatus
```