diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 030523a59281b1a3600050ed171f549e21781a1b..f7423869e5d2f68d61aca8bb334d15bf4375c814 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -5798,6 +5798,22 @@ declare namespace window { */ getWindowAvoidArea(type: AvoidAreaType): AvoidArea; + /** + * Get the avoid area, regardless of whether the area of this type is currently visible. + * + * @param { AvoidAreaType } type - Type of the area. + * @returns { AvoidArea } Area where the window cannot be displayed. + * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. + * @throws { BusinessError } 1300002 - This window state is abnormal. + * @throws { BusinessError } 1300003 - This window manager service works abnormally. + * @throws { BusinessError } 1300016 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; + * 3. Parameter verification failed. + * @syscap SystemCapability.Window.SessionManager + * @since 21 + */ + getWindowAvoidAreaIgnoringVisibility(type: AvoidAreaType): AvoidArea; + /** * Set whether system window type could obtain avoid area. *