public interface ThermalConnection
You need to implement your own interfaces based on this interface and implement its callbacks.
SystemCapability.PowerMgr#THERMAL_MANAGER| 限定符和类型 | 接口 | 说明 |
|---|---|---|
static class |
ThermalConnection.ThermalSeverityLevel |
Enumerates the thermal severity levels of a device.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
default void |
thermalServiceDied() |
Called when the thermal service encounters an exception or stops running.
|
void |
thermalStatusChanged(ThermalConnection.ThermalSeverityLevel level) |
Called when the thermal severity level of this device changes.
|
void thermalStatusChanged(ThermalConnection.ThermalSeverityLevel level)
You can take proper measures based on the thermal severity level of this device.
level - Indicates the thermal severity level of this device. For the detailed levels,
see ThermalSeverityLevel.default void thermalServiceDied()
This callback is invoked when the status of the thermal service becomes Died. You can use this callback to listen for whether the thermal service is running properly. If the thermal service stops running, your application should try to reconnect to the service.