diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index fc44ff8043c42a0978812a5b41227d4866fbf169..1c9532b5b09cee50260c4220841b2dd09e1176cb 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