From a73488e0b3438bb1d6eba02b1d0fcc1973ab17e0 Mon Sep 17 00:00:00 2001 From: leafly2021 Date: Mon, 9 May 2022 15:38:03 +0800 Subject: [PATCH 1/3] add disableWindowDecor Signed-off-by: leafly2021 Change-Id: I6cc7d2ddd96fa924832d863d4f6b7fccc6e219c8 --- api/@ohos.window.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index c73851031b..d122c0c346 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -810,6 +810,13 @@ declare namespace window { * @since 7 */ setTouchable(isTouchable: boolean, callback: AsyncCallback): void; + + /** + * disable window decoration. It must be called before loadContent. + * @systemapi + * @since 9 + */ + disableWindowDecor(): void; } /** * window stage callback event type -- Gitee From 0398c90b6a8317bd82a94532af50e26a9369b8e3 Mon Sep 17 00:00:00 2001 From: qianlf Date: Thu, 12 May 2022 06:18:07 +0000 Subject: [PATCH 2/3] update api/@ohos.window.d.ts. --- api/@ohos.window.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index d122c0c346..0f2bf6755e 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -900,6 +900,13 @@ declare namespace window { * @since 9 */ off(eventType: 'windowStageEvent', callback?: Callback): void; + /** + * Sets whether can show on lock screen or not. + * @param showOnLockScreen can show on lock screen if true, or not if false. + * @syscap SystemCapability.WindowManager.WindowManager.Core + * @since 9 + */ + setShowOnLockScreen(showOnLockScreen: boolean): void; } } -- Gitee From da80567e7b380b93485591c407aed0a2dc8ad4a8 Mon Sep 17 00:00:00 2001 From: qianlf Date: Thu, 12 May 2022 06:37:34 +0000 Subject: [PATCH 3/3] update api/@ohos.window.d.ts. Signed-off-by: qianlf --- api/@ohos.window.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 0f2bf6755e..77267c6cbf 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -901,8 +901,8 @@ declare namespace window { */ off(eventType: 'windowStageEvent', callback?: Callback): void; /** - * Sets whether can show on lock screen or not. - * @param showOnLockScreen can show on lock screen if true, or not if false. + * Sets whether can show on lock screen or not + * @param showOnLockScreen can show on lock screen if true, or not if false * @syscap SystemCapability.WindowManager.WindowManager.Core * @since 9 */ -- Gitee