VirtualDisplayConfig.BrightnessListener
public
static
interface
VirtualDisplayConfig.BrightnessListener
android.hardware.display.VirtualDisplayConfig.BrightnessListener |
Listener for display brightness changes.
Summary
Public methods | |
---|---|
abstract
void
|
onBrightnessChanged(float brightness)
Called when the display's brightness has changed. |
Public methods
onBrightnessChanged
public abstract void onBrightnessChanged (float brightness)
Called when the display's brightness has changed.
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 |