From 7fa72f8c72d8227441037cde2b5e270fea2ff8e3 Mon Sep 17 00:00:00 2001 From: qinchang_pc Date: Tue, 7 Nov 2023 00:51:30 +0800 Subject: [PATCH] feat: thermal add escape level Signed-off-by: qinchang_pc --- api/@ohos.thermal.d.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/api/@ohos.thermal.d.ts b/api/@ohos.thermal.d.ts index 0c58ae935..21526eefd 100644 --- a/api/@ohos.thermal.d.ts +++ b/api/@ohos.thermal.d.ts @@ -80,13 +80,21 @@ declare namespace thermal { */ WARNING = 5, /** - * The device has entered the emergency state. You need to stop all services except those - * for the emergency help purposes. + * The device has entered the emergency state. The supply of equipment resources has been + * minimized, leaving only the basic functions available. * * @syscap SystemCapability.PowerManager.ThermalManager * @since 8 */ - EMERGENCY = 6 + EMERGENCY = 6, + /** + * The device is about to enter a thermal escape state. All abilities will be forcibly + * stopped, you need to implement escape measures. + * + * @syscap SystemCapability.PowerManager.ThermalManager + * @since 11 + */ + ESCAPE = 7 } /**