From 6b53016c82a0ded2b7f35cedd5f15e4431d9f7f3 Mon Sep 17 00:00:00 2001 From: chyyy0213 Date: Mon, 11 Apr 2022 15:15:04 +0800 Subject: [PATCH] fixed 8e67248 from https://gitee.com/chyyy0213/interface_sdk-js/pulls/1505 add setTransparent for window Change-Id: I768a2fd6bc0a4a4f78afa4e4e1e6af4375ff5e21 Signed-off-by: chyyy0213 --- api/@ohos.window.d.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 9313341112..f470da6626 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -830,6 +830,22 @@ declare namespace window { * @since 7 */ setTouchable(isTouchable: boolean, callback: AsyncCallback): void; + + /** + * Sets whether is transparent or not. + * @param isTransparent is transparent if true, or not if false. + * @syscap SystemCapability.WindowManager.WindowManager.Core + * @since 7 + */ + setTransparent(isTransparent: boolean): Promise; + + /** + * Sets whether is transparent or not. + * @param isTransparent is transparent if true, or not if false. + * @syscap SystemCapability.WindowManager.WindowManager.Core + * @since 7 + */ + setTransparent(isTransparent: boolean, callback: AsyncCallback): void; } } -- Gitee