Stay organized with collections
Save and categorize content based on your preferences.
AmbientBacklightCallback
interface AmbientBacklightCallback
Callback used to monitor status of ambient backlight.
Summary
Public methods |
abstract Unit |
Called when new ambient backlight event is emitted.
|
Public methods
onAmbientBacklightEvent
abstract fun onAmbientBacklightEvent(event: AmbientBacklightEvent): Unit
Called when new ambient backlight event is emitted.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-13 UTC."],[],[],null,["# MediaQualityManager.AmbientBacklightCallback\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nAmbientBacklightCallback\n========================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/media/quality/MediaQualityManager.AmbientBacklightCallback \"View this page in Java\") \n\n```\ninterface AmbientBacklightCallback\n```\n\n|-------------------------------------------------------------------------|\n| [android.media.quality.MediaQualityManager.AmbientBacklightCallback](#) |\n\nCallback used to monitor status of ambient backlight.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onAmbientBacklightEvent](#onAmbientBacklightEvent(android.media.quality.AmbientBacklightEvent))`(`event:` `[AmbientBacklightEvent](/reference/kotlin/android/media/quality/AmbientBacklightEvent)`)` Called when new ambient backlight event is emitted. |\n\nPublic methods\n--------------\n\n### onAmbientBacklightEvent\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onAmbientBacklightEvent(event: AmbientBacklightEvent): Unit\n```\n\nCalled when new ambient backlight event is emitted.\n\n| Parameters ||\n|---------|----------------------------------------------------------------------------------------------------------------------|\n| `event` | [AmbientBacklightEvent](/reference/kotlin/android/media/quality/AmbientBacklightEvent): This value cannot be `null`. |"]]