diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 931334111220d7a0e23f3928f67da2366a2c90f4..f470da66260188df984feb3aa56fba3ec648b084 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; } }