diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 7a8e16c3c0eabdc9893f8e52213bf26f94b7fdc9..ddb0f5c6a24e9003d66c51a3f48bb9340b70d397 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -33,11 +33,7 @@ declare namespace window { /** * System alert. */ - TYPE_SYSTEM_ALERT, - /** - * System gesture. - */ - TYPE_SYSTEM_GESTURE + TYPE_SYSTEM_ALERT } /** @@ -271,7 +267,7 @@ declare namespace window { /** * The dimbehind value of window. - * @since 6 + * @since 7 */ dimBehindValue: number @@ -681,7 +677,7 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @since 7 */ - on(type: 'keyboardHeightChange', callback: AsyncCallback): void; + on(type: 'keyboardHeightChange', callback: Callback): void; /** * unregister the callback of keyboardHeightChange @@ -689,7 +685,7 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @since 7 */ - off(type: 'keyboardHeightChange', callback: AsyncCallback): void; + off(type: 'keyboardHeightChange', callback?: Callback): void; /** * Whether the window supports thr wide gamut setting.