Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

# VirtualDisplayConfig.BrightnessListener

*** ** * ** ***

` public static interface VirtualDisplayConfig.BrightnessListener `   
` `

|---|
| android.hardware.display.VirtualDisplayConfig.BrightnessListener |

<br />

*** ** * ** ***

Listener for display brightness changes.

## Summary

| ### Public methods ||
|---|---|
| ` abstract void` | ` https://developer.android.com/reference/android/hardware/display/VirtualDisplayConfig.BrightnessListener#onBrightnessChanged(float)(float brightness) ` Called when the display's brightness has changed. |

## Public methods

### onBrightnessChanged

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract void onBrightnessChanged (float brightness)
```

Called when the display's brightness has changed.

<br />

| Parameters ||
|---|---|
| `brightness` | `float`: the new brightness of the display. Value of `0.0` indicates the minimum supported brightness and value of `1.0` indicates the maximum supported brightness. Value is between 0.0f and 1.0f inclusive <br /> |