From 6967d3a4de82ebf7556a983f538acfab9808d704 Mon Sep 17 00:00:00 2001 From: zhirong <215782872@qq.com> Date: Fri, 27 May 2022 09:09:48 +0800 Subject: [PATCH] fixed 9e88d9e 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 | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 980686b617..3084130e6b 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -286,6 +286,12 @@ declare namespace window { */ brightness: number + /** + * The dimbehind value of window. + * @deprecated since 9 + */ + dimBehindValue: number + /** * Whether keep screen on. * @since 6 @@ -812,6 +818,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 9 + */ + setDimBehind(dimBehindValue: number, callback: AsyncCallback): void; + + /** + * Sets the dimBehind of window. + * @param dimBehind the specified dimBehind. + * @syscap SystemCapability.WindowManager.WindowManager.Core + * @deprecated since 9 + */ + 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 +866,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 9 + */ + 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 9 + */ + 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