Added in API level 29

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

Added in API level 29
public abstract void onThermalStatusChanged (int status)

Called when overall thermal throttling status changed.

Parameters
status int: the status Value is PowerManager.THERMAL_STATUS_NONE, PowerManager.THERMAL_STATUS_LIGHT, PowerManager.THERMAL_STATUS_MODERATE, PowerManager.THERMAL_STATUS_SEVERE, PowerManager.THERMAL_STATUS_CRITICAL, PowerManager.THERMAL_STATUS_EMERGENCY, or PowerManager.THERMAL_STATUS_SHUTDOWN