From 8e6724821523203b1450dbfbe7c461e76ca53ae2 Mon Sep 17 00:00:00 2001 From: chyyy0213 Date: Mon, 11 Apr 2022 15:15:04 +0800 Subject: [PATCH] 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 fc44ff8043..1c9532b5b0 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -848,6 +848,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; } /** * window stage callback event type -- Gitee