From 210d306c7988db39e95f07dee3b2fe0d13dd89b4 Mon Sep 17 00:00:00 2001 From: zhirong <215782872@qq.com> Date: Fri, 27 May 2022 09:09:48 +0800 Subject: [PATCH] fixed 5e9d6bd from https://gitee.com/yang-zhirong6/interface_sdk-js/pulls/1791 SetDimBehind SetOutsideTouchable Signed-off-by: zhirong <215782872@qq.com> Change-Id: I7351fe4061a838180d85a0afac0c532f5ebb8b89 --- api/@ohos.window.d.ts | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 980686b617c..4ba45b98eb9 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -812,6 +812,22 @@ declare namespace window { */ setBrightness(brightness: number, callback: AsyncCallback): void; + /** + * Sets the dimBehind of window. + * @param dimBehindValue the specified dimBehind. + * @syscap SystemCapability.WindowManager.WindowManager.Core + * @deprecated since 7 + */ + setDimBehind(dimBehindValue: number, callback: AsyncCallback): void; + + /** + * Sets the dimBehind of window. + * @param dimBehind the specified dimBehind. + * @syscap SystemCapability.WindowManager.WindowManager.Core + * @deprecated since 7 + */ + setDimBehind(dimBehindValue: number): Promise; + /** * Sets whether focusable or not. * @param isFocusable can be focus if true, or can not be focus if false. @@ -844,6 +860,22 @@ declare namespace window { */ setKeepScreenOn(isKeepScreenOn: boolean, callback: AsyncCallback): void; + /** + * Sets whether outside can be touch or not. + * @param touchable outside can be touch if true, or not if false. + * @syscap SystemCapability.WindowManager.WindowManager.Core + * @deprecated since 7 + */ + setOutsideTouchable(touchable: boolean): Promise; + + /** + * Sets whether outside can be touch or not. + * @param touchable outside can be touch if true, or not if false. + * @syscap SystemCapability.WindowManager.WindowManager.Core + * @deprecated since 7 + */ + setOutsideTouchable(touchable: boolean, callback: AsyncCallback): void; + /** * Sets whether is private mode or not. * @param isPrivacyMode in private mode if true, or not if false. -- Gitee