Stay organized with collections
Save and categorize content based on your preferences.
OnThermalStatusChangedListener
interface OnThermalStatusChangedListener
Listener passed to android.os.PowerManager#addThermalStatusListener and PowerManager.removeThermalStatusListener
to notify caller of thermal status has changed.
Summary
Public methods |
abstract Unit |
Called when overall thermal throttling status changed.
|
Public methods
onThermalStatusChanged
abstract fun onThermalStatusChanged(status: Int): Unit
Called when overall thermal throttling status changed.
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-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# PowerManager.OnThermalStatusChangedListener\n\nAdded in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nOnThermalStatusChangedListener\n==============================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/os/PowerManager.OnThermalStatusChangedListener \"View this page in Java\") \n\n```\ninterface OnThermalStatusChangedListener\n```\n\n|-------------------------------------------------------------|\n| [android.os.PowerManager.OnThermalStatusChangedListener](#) |\n\nListener passed to android.os.PowerManager#addThermalStatusListener and [PowerManager.removeThermalStatusListener](/reference/kotlin/android/os/PowerManager#removeThermalStatusListener(android.os.PowerManager.OnThermalStatusChangedListener)) to notify caller of thermal status has changed.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onThermalStatusChanged](#onThermalStatusChanged(kotlin.Int))`(`status:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Called when overall thermal throttling status changed. |\n\nPublic methods\n--------------\n\n### onThermalStatusChanged\n\nAdded in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onThermalStatusChanged(status: Int): Unit\n```\n\nCalled when overall thermal throttling status changed.\n\n| Parameters ||\n|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `status` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): the status Value is [android.os.PowerManager#THERMAL_STATUS_NONE](/reference/kotlin/android/os/PowerManager#THERMAL_STATUS_NONE:kotlin.Int), [android.os.PowerManager#THERMAL_STATUS_LIGHT](/reference/kotlin/android/os/PowerManager#THERMAL_STATUS_LIGHT:kotlin.Int), [android.os.PowerManager#THERMAL_STATUS_MODERATE](/reference/kotlin/android/os/PowerManager#THERMAL_STATUS_MODERATE:kotlin.Int), [android.os.PowerManager#THERMAL_STATUS_SEVERE](/reference/kotlin/android/os/PowerManager#THERMAL_STATUS_SEVERE:kotlin.Int), [android.os.PowerManager#THERMAL_STATUS_CRITICAL](/reference/kotlin/android/os/PowerManager#THERMAL_STATUS_CRITICAL:kotlin.Int), [android.os.PowerManager#THERMAL_STATUS_EMERGENCY](/reference/kotlin/android/os/PowerManager#THERMAL_STATUS_EMERGENCY:kotlin.Int), or [android.os.PowerManager#THERMAL_STATUS_SHUTDOWN](/reference/kotlin/android/os/PowerManager#THERMAL_STATUS_SHUTDOWN:kotlin.Int) |"]]