From 98c77a8bebc9af6c6668bc816fc7099426a2fd5e Mon Sep 17 00:00:00 2001 From: tanhon Date: Wed, 27 Aug 2025 10:59:33 +0800 Subject: [PATCH 1/6] i Signed-off-by: tanhon --- api/@ohos.window.d.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 030523a592..149abbbb28 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -5798,6 +5798,23 @@ declare namespace window { */ getWindowAvoidArea(type: AvoidAreaType): AvoidArea; + /** + * Get the avoid area, regardless of whether the area of this type is currentlt 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.WindowManager.SessionManager. + * @since arkts {'1.1':'12', '1.2':'21'} + * @arkts 1.1&1.2 + */ + getWindowAvoidAreaIgnoringVisibility(type: AvoidAreaType): AvoidArea; + /** * Set whether system window type could obtain avoid area. * -- Gitee From adb63303ccb65ebe584a66ded120353e16cefa3a Mon Sep 17 00:00:00 2001 From: tanhon Date: Wed, 27 Aug 2025 12:03:38 +0800 Subject: [PATCH 2/6] i Signed-off-by: tanhon --- api/@ohos.window.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 149abbbb28..717cecc873 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -5809,7 +5809,7 @@ declare namespace window { * @throws { BusinessError } 1300016 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. - * @syscap SystemCapability.WindowManager.SessionManager. + * @syscap SystemCapability.Window.SessionManager. * @since arkts {'1.1':'12', '1.2':'21'} * @arkts 1.1&1.2 */ -- Gitee From 24eece6a5656d2c50c52475d2fbf1e056d783b97 Mon Sep 17 00:00:00 2001 From: tanhon Date: Wed, 27 Aug 2025 12:04:53 +0800 Subject: [PATCH 3/6] ii Signed-off-by: tanhon --- api/@ohos.window.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 717cecc873..77f190df25 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -5809,7 +5809,7 @@ declare namespace window { * @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. + * @syscap SystemCapability.Window.SessionManager * @since arkts {'1.1':'12', '1.2':'21'} * @arkts 1.1&1.2 */ -- Gitee From a3df4318642ae8763473dd7793147ab8bbbd06ee Mon Sep 17 00:00:00 2001 From: tanhon Date: Wed, 27 Aug 2025 12:06:51 +0800 Subject: [PATCH 4/6] ii Signed-off-by: tanhon --- api/@ohos.window.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 77f190df25..d29b5109b9 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -5799,7 +5799,7 @@ declare namespace window { getWindowAvoidArea(type: AvoidAreaType): AvoidArea; /** - * Get the avoid area, regardless of whether the area of this type is currentlt visible + * 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. @@ -5810,7 +5810,7 @@ declare namespace window { * 2. Incorrect parameter types; * 3. Parameter verification failed. * @syscap SystemCapability.Window.SessionManager - * @since arkts {'1.1':'12', '1.2':'21'} + * @since arkts {'1.1':'21', '1.2':'21'} * @arkts 1.1&1.2 */ getWindowAvoidAreaIgnoringVisibility(type: AvoidAreaType): AvoidArea; -- Gitee From d2ef4ccf8d73294db8893e7735078ab25e5fd4b5 Mon Sep 17 00:00:00 2001 From: tanhon Date: Thu, 28 Aug 2025 16:06:09 +0800 Subject: [PATCH 5/6] iii Signed-off-by: tanhon --- api/@ohos.window.d.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index d29b5109b9..b036edda06 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -5627,8 +5627,7 @@ declare namespace window { * @throws { BusinessError } 1300003 - This window manager service works abnormally. * @syscap SystemCapability.Window.SessionManager * @atomicservice - * @since arkts {'1.1':'13', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 21 */ getGlobalRect(): Rect; @@ -5799,9 +5798,9 @@ declare namespace window { getWindowAvoidArea(type: AvoidAreaType): AvoidArea; /** - * Get the avoid area, regardless of whether the area of this type is currently visible + * Get the avoid area, regardless of whether the area of this type is currently visible. * - * @param { AvoidAreaType } type - Type of the area + * @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. -- Gitee From 7056490e257f9fee87a16f82d7dc86d9ed8606d0 Mon Sep 17 00:00:00 2001 From: tanhon Date: Thu, 28 Aug 2025 16:08:47 +0800 Subject: [PATCH 6/6] ii Signed-off-by: tanhon --- api/@ohos.window.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index b036edda06..f7423869e5 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -5627,7 +5627,8 @@ declare namespace window { * @throws { BusinessError } 1300003 - This window manager service works abnormally. * @syscap SystemCapability.Window.SessionManager * @atomicservice - * @since 21 + * @since arkts {'1.1':'13', '1.2':'20'} + * @arkts 1.1&1.2 */ getGlobalRect(): Rect; @@ -5809,8 +5810,7 @@ declare namespace window { * 2. Incorrect parameter types; * 3. Parameter verification failed. * @syscap SystemCapability.Window.SessionManager - * @since arkts {'1.1':'21', '1.2':'21'} - * @arkts 1.1&1.2 + * @since 21 */ getWindowAvoidAreaIgnoringVisibility(type: AvoidAreaType): AvoidArea; -- Gitee