From 0356819c93bcaa04fd051d8c99e633b64e7e05d6 Mon Sep 17 00:00:00 2001 From: Hayden Lee Date: Fri, 20 Jun 2025 16:03:46 +0800 Subject: [PATCH 1/2] =?UTF-8?q?showWindow=E5=8F=82=E6=95=B0=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E9=94=99=E8=AF=AF=E7=A0=81=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Hayden Lee --- api/@ohos.window.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 07a6f1a100..ddeb0cb829 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -4297,9 +4297,9 @@ declare namespace window { * * @param { ShowWindowOptions } options - options of window shown * @returns { Promise } Promise that returns no value. - * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types; - * 3. Parameter verification failed. + * @throws { BusinessError } 1300016 - Parameter validation error. Possible cause: 1. The value of the parameter is out of the allowed range; + * 2. The length of the parameter exceeds the allowed length; + * 3. The parameter format is incorrect. * @throws { BusinessError } 801 - Capability not supported. Function showWindow can not work correctly due to limited device capabilities. * @throws { BusinessError } 1300002 - This window state is abnormal. * @throws { BusinessError } 1300004 - Unauthorized operation. @@ -9621,7 +9621,7 @@ declare namespace window { * Get the zlevel of current sub window. * * @returns { number } - the zlevel of current sub window. - * @throws { BusinessError } 801 - Capability not supported. Function setSubWindowZLevel can not work correctly due to limited device capabilities. + * @throws { BusinessError } 801 - Capability not supported. Function getSubWindowZLevel can not work correctly due to limited device capabilities. * @throws { BusinessError } 1300002 - This window state is abnormal. * @throws { BusinessError } 1300004 - Unauthorized operation. * @syscap SystemCapability.Window.SessionManager -- Gitee From 8c25f4e87c0c2be4022385ff2702f9dd64983339 Mon Sep 17 00:00:00 2001 From: Hayden Lee Date: Mon, 23 Jun 2025 14:48:45 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E9=94=99=E8=AF=AF=E7=A0=81=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Hayden Lee --- 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 ddeb0cb829..449ee1e205 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -4297,12 +4297,12 @@ declare namespace window { * * @param { ShowWindowOptions } options - options of window shown * @returns { Promise } Promise that returns no value. - * @throws { BusinessError } 1300016 - Parameter validation error. Possible cause: 1. The value of the parameter is out of the allowed range; - * 2. The length of the parameter exceeds the allowed length; - * 3. The parameter format is incorrect. * @throws { BusinessError } 801 - Capability not supported. Function showWindow can not work correctly due to limited device capabilities. * @throws { BusinessError } 1300002 - This window state is abnormal. * @throws { BusinessError } 1300004 - Unauthorized operation. + * @throws { BusinessError } 1300016 - Parameter validation error. Possible cause: 1. The value of the parameter is out of the allowed range; + * 2. The length of the parameter exceeds the allowed length; + * 3. The parameter format is incorrect. * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since 20 -- Gitee