Stay organized with collections
Save and categorize content based on your preferences.
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 |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-03-13 UTC.
[null,null,["Last updated 2025-03-13 UTC."],[],[],null,["# VirtualDisplayConfig.BrightnessListener\n\nAdded in [API level 36](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nVirtualDisplayConfig.BrightnessListener\n=======================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/hardware/display/VirtualDisplayConfig.BrightnessListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nVirtualDisplayConfig.BrightnessListener\n`\n\n\n`\n\n\n`\n\n|------------------------------------------------------------------|\n| android.hardware.display.VirtualDisplayConfig.BrightnessListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nListener for display brightness changes.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onBrightnessChanged](/reference/android/hardware/display/VirtualDisplayConfig.BrightnessListener#onBrightnessChanged(float))`(float brightness) ` Called when the display's brightness has changed. |\n\nPublic methods\n--------------\n\n### onBrightnessChanged\n\nAdded in [API level 36](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onBrightnessChanged (float brightness)\n```\n\nCalled when the display's brightness has changed.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `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 \u003cbr /\u003e |"]]