From a2c60507f574bcd1de46a7c86ad2301e41fbce38 Mon Sep 17 00:00:00 2001 From: yanghang Date: Wed, 6 Aug 2025 19:32:48 +0800 Subject: [PATCH] fix: add useinstead Signed-off-by: yanghang --- api/@system.brightness.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/@system.brightness.d.ts b/api/@system.brightness.d.ts index 2a12ce245a..bf517cfdde 100644 --- a/api/@system.brightness.d.ts +++ b/api/@system.brightness.d.ts @@ -305,6 +305,7 @@ export default class Brightness { * @syscap SystemCapability.PowerManager.DisplayPowerManager.Lite * @since 3 * @deprecated since 7 + * @useinstead ohos.brightness/brightness#setValue */ static setValue(options?: SetBrightnessOptions): void; @@ -335,6 +336,7 @@ export default class Brightness { * @syscap SystemCapability.PowerManager.DisplayPowerManager.Lite * @since 3 * @deprecated since 7 + * @useinstead ohos.window/Window#setWindowKeepScreenOn */ static setKeepScreenOn(options?: SetKeepScreenOnOptions): void; } -- Gitee