Stay organized with collections
Save and categorize content based on your preferences.
PowerManager.OnThermalStatusChangedListener
public
static
interface
PowerManager.OnThermalStatusChangedListener
android.os.PowerManager.OnThermalStatusChangedListener
|
Listener passed to
PowerManager.addThermalStatusListener
and
PowerManager.removeThermalStatusListener
to notify caller of thermal status has changed.
Summary
Public methods |
abstract
void
|
onThermalStatusChanged(int status)
Called when overall thermal throttling status changed.
|
Public methods
onThermalStatusChanged
public abstract void onThermalStatusChanged (int status)
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](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nPowerManager.OnThermalStatusChangedListener\n===========================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/os/PowerManager.OnThermalStatusChangedListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nPowerManager.OnThermalStatusChangedListener\n`\n\n\n`\n\n\n`\n\n|--------------------------------------------------------|\n| android.os.PowerManager.OnThermalStatusChangedListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nListener passed to\n[PowerManager.addThermalStatusListener](/reference/android/os/PowerManager#addThermalStatusListener(android.os.PowerManager.OnThermalStatusChangedListener)) and\n[PowerManager.removeThermalStatusListener](/reference/android/os/PowerManager#removeThermalStatusListener(android.os.PowerManager.OnThermalStatusChangedListener))\nto notify caller of thermal status has changed.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onThermalStatusChanged](/reference/android/os/PowerManager.OnThermalStatusChangedListener#onThermalStatusChanged(int))`(int status) ` Called when overall thermal throttling status changed. |\n\nPublic methods\n--------------\n\n### onThermalStatusChanged\n\nAdded in [API level 29](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onThermalStatusChanged (int status)\n```\n\nCalled when overall thermal throttling status changed.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `status` | `int`: the status Value is [PowerManager.THERMAL_STATUS_NONE](/reference/android/os/PowerManager#THERMAL_STATUS_NONE), [PowerManager.THERMAL_STATUS_LIGHT](/reference/android/os/PowerManager#THERMAL_STATUS_LIGHT), [PowerManager.THERMAL_STATUS_MODERATE](/reference/android/os/PowerManager#THERMAL_STATUS_MODERATE), [PowerManager.THERMAL_STATUS_SEVERE](/reference/android/os/PowerManager#THERMAL_STATUS_SEVERE), [PowerManager.THERMAL_STATUS_CRITICAL](/reference/android/os/PowerManager#THERMAL_STATUS_CRITICAL), [PowerManager.THERMAL_STATUS_EMERGENCY](/reference/android/os/PowerManager#THERMAL_STATUS_EMERGENCY), or [PowerManager.THERMAL_STATUS_SHUTDOWN](/reference/android/os/PowerManager#THERMAL_STATUS_SHUTDOWN) \u003cbr /\u003e |"]]