diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index ed6887dd917959e9d4f5555cb39fbeb1085393b4..21a6e812bd061d363b22a4597bf0ee8249d5ef89 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -265,6 +265,12 @@ declare namespace window { */ brightness: number + /** + * The dimbehind value of window. + * @since 7 + */ + dimBehindValue: number + /** * Whether keep screen on. * @since 6 @@ -729,6 +735,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 + * @since 7 + */ + setDimBehind(dimBehindValue: number, callback: AsyncCallback): void; + + /** + * Sets the dimBehind of window. + * @param dimBehind the specified dimBehind. + * @syscap SystemCapability.WindowManager.WindowManager.Core + * @since 7 + */ + setDimBehind(dimBehindValue: number): Promise; + /** * Sets whether focusable or not. * @param isFocusable can be focus if true, or can not be focus if false. @@ -761,6 +783,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 + * @since 7 + */ + 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 + * @since 7 + */ + setOutsideTouchable(touchable: boolean, callback: AsyncCallback): void; + /** * Sets whether is private mode or not. * @param isPrivacyMode in private mode if true, or not if false.