From ffe7e742d53f7cb2c41cbfad471c608d6ea3352e Mon Sep 17 00:00:00 2001 From: linghao Date: Tue, 3 Jun 2025 11:04:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3=E9=94=99=E8=AF=AF=E7=A0=81?= =?UTF-8?q?=E6=95=B4=E6=94=B9=20Signed-off-by:=20linghao=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/@ohos.window.d.ts | 33 ++++----------------------------- 1 file changed, 4 insertions(+), 29 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 9384998fec..cd18b64d03 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -4132,7 +4132,6 @@ declare namespace window { * * @param { AsyncCallback } callback - Callback used to return the result. * @throws { BusinessError } 1300002 - This window state is abnormal. - * @throws { BusinessError } 1300003 - This window manager service works abnormally. * @syscap SystemCapability.WindowManager.WindowManager.Core * @crossplatform * @since 10 @@ -4142,7 +4141,6 @@ declare namespace window { * * @param { AsyncCallback } callback - Callback used to return the result. * @throws { BusinessError } 1300002 - This window state is abnormal. - * @throws { BusinessError } 1300003 - This window manager service works abnormally. * @syscap SystemCapability.WindowManager.WindowManager.Core * @crossplatform * @atomicservice @@ -4164,7 +4162,6 @@ declare namespace window { * * @returns { Promise } Promise that returns no value. * @throws { BusinessError } 1300002 - This window state is abnormal. - * @throws { BusinessError } 1300003 - This window manager service works abnormally. * @syscap SystemCapability.WindowManager.WindowManager.Core * @crossplatform * @since 10 @@ -4174,7 +4171,6 @@ declare namespace window { * * @returns { Promise } Promise that returns no value. * @throws { BusinessError } 1300002 - This window state is abnormal. - * @throws { BusinessError } 1300003 - This window manager service works abnormally. * @syscap SystemCapability.WindowManager.WindowManager.Core * @crossplatform * @atomicservice @@ -5309,7 +5305,6 @@ declare namespace window { * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types. * @throws { BusinessError } 1300002 - This window state is abnormal. - * @throws { BusinessError } 1300003 - This window manager service works abnormally. * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly * @crossplatform @@ -5324,7 +5319,6 @@ declare namespace window { * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types. * @throws { BusinessError } 1300002 - This window state is abnormal. - * @throws { BusinessError } 1300003 - This window manager service works abnormally. * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly * @crossplatform @@ -5356,7 +5350,6 @@ declare namespace window { * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types. * @throws { BusinessError } 1300002 - This window state is abnormal. - * @throws { BusinessError } 1300003 - This window manager service works abnormally. * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly * @crossplatform @@ -5371,7 +5364,6 @@ declare namespace window { * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types. * @throws { BusinessError } 1300002 - This window state is abnormal. - * @throws { BusinessError } 1300003 - This window manager service works abnormally. * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly * @crossplatform @@ -5450,7 +5442,6 @@ declare namespace window { * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types. * @throws { BusinessError } 1300002 - This window state is abnormal. - * @throws { BusinessError } 1300003 - This window manager service works abnormally. * @syscap SystemCapability.WindowManager.WindowManager.Core * @crossplatform * @since 10 @@ -5463,7 +5454,6 @@ declare namespace window { * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types. * @throws { BusinessError } 1300002 - This window state is abnormal. - * @throws { BusinessError } 1300003 - This window manager service works abnormally. * @syscap SystemCapability.WindowManager.WindowManager.Core * @crossplatform * @atomicservice @@ -5491,7 +5481,6 @@ declare namespace window { * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types. * @throws { BusinessError } 1300002 - This window state is abnormal. - * @throws { BusinessError } 1300003 - This window manager service works abnormally. * @syscap SystemCapability.WindowManager.WindowManager.Core * @crossplatform * @since 10 @@ -5504,7 +5493,6 @@ declare namespace window { * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types. * @throws { BusinessError } 1300002 - This window state is abnormal. - * @throws { BusinessError } 1300003 - This window manager service works abnormally. * @syscap SystemCapability.WindowManager.WindowManager.Core * @crossplatform * @atomicservice @@ -9423,7 +9411,6 @@ declare namespace window { * @returns { Promise } Promise used to return the subwindow. * @throws { BusinessError } 401 - Parameter error. Possible cause: Incorrect parameter types. * @throws { BusinessError } 1300002 - This window state is abnormal. - * @throws { BusinessError } 1300005 - This window stage is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly * @crossplatform @@ -9436,7 +9423,6 @@ declare namespace window { * @returns { Promise } Promise used to return the subwindow. * @throws { BusinessError } 401 - Parameter error. Possible cause: Incorrect parameter types. * @throws { BusinessError } 1300002 - This window state is abnormal. - * @throws { BusinessError } 1300005 - This window stage is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly * @crossplatform @@ -9463,7 +9449,6 @@ declare namespace window { * @param { AsyncCallback } callback Callback used to return the subwindow. * @throws { BusinessError } 401 - Parameter error. Possible cause: Incorrect parameter types. * @throws { BusinessError } 1300002 - This window state is abnormal. - * @throws { BusinessError } 1300005 - This window stage is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly * @crossplatform @@ -9476,7 +9461,6 @@ declare namespace window { * @param { AsyncCallback } callback Callback used to return the subwindow. * @throws { BusinessError } 401 - Parameter error. Possible cause: Incorrect parameter types. * @throws { BusinessError } 1300002 - This window state is abnormal. - * @throws { BusinessError } 1300005 - This window stage is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly * @crossplatform @@ -9527,7 +9511,7 @@ declare namespace window { * Get sub window of the stage. * * @returns { Promise> } - * @throws { BusinessError } 1300005 - This window stage is abnormal. + * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly * @crossplatform @@ -9537,7 +9521,7 @@ declare namespace window { * Get sub window of the stage. * * @returns { Promise> } - * @throws { BusinessError } 1300005 - This window stage is abnormal. + * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly * @crossplatform @@ -9558,7 +9542,7 @@ declare namespace window { * Get sub window of the stage. * * @param { AsyncCallback> } callback Callback used to return all the subwindows. - * @throws { BusinessError } 1300005 - This window stage is abnormal. + * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly * @crossplatform @@ -9568,7 +9552,7 @@ declare namespace window { * Get sub window of the stage. * * @param { AsyncCallback> } callback Callback used to return all the subwindows. - * @throws { BusinessError } 1300005 - This window stage is abnormal. + * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly * @crossplatform @@ -9599,7 +9583,6 @@ declare namespace window { * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types. * @throws { BusinessError } 1300002 - This window state is abnormal. - * @throws { BusinessError } 1300005 - This window stage is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly * @crossplatform @@ -9614,7 +9597,6 @@ declare namespace window { * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types. * @throws { BusinessError } 1300002 - This window state is abnormal. - * @throws { BusinessError } 1300005 - This window stage is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly * @crossplatform @@ -9645,7 +9627,6 @@ declare namespace window { * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types. * @throws { BusinessError } 1300002 - This window state is abnormal. - * @throws { BusinessError } 1300005 - This window stage is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly * @crossplatform @@ -9660,7 +9641,6 @@ declare namespace window { * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types. * @throws { BusinessError } 1300002 - This window state is abnormal. - * @throws { BusinessError } 1300005 - This window stage is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly * @crossplatform @@ -9689,7 +9669,6 @@ declare namespace window { * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types. * @throws { BusinessError } 1300002 - This window state is abnormal. - * @throws { BusinessError } 1300005 - This window stage is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly * @crossplatform @@ -9703,7 +9682,6 @@ declare namespace window { * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types. * @throws { BusinessError } 1300002 - This window state is abnormal. - * @throws { BusinessError } 1300005 - This window stage is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly * @crossplatform @@ -9721,7 +9699,6 @@ declare namespace window { * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types. * @throws { BusinessError } 1300002 - This window state is abnormal. - * @throws { BusinessError } 1300003 - This window manager service works abnormally. * @syscap SystemCapability.WindowManager.WindowManager.Core * @stagemodelonly * @crossplatform @@ -9738,7 +9715,6 @@ declare namespace window { * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types. * @throws { BusinessError } 1300002 - This window state is abnormal. - * @throws { BusinessError } 1300003 - This window manager service works abnormally. * @syscap SystemCapability.WindowManager.WindowManager.Core * @stagemodelonly * @crossplatform @@ -9756,7 +9732,6 @@ declare namespace window { * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types. * @throws { BusinessError } 1300002 - This window state is abnormal. - * @throws { BusinessError } 1300003 - This window manager service works abnormally. * @syscap SystemCapability.WindowManager.WindowManager.Core * @stagemodelonly * @crossplatform -- Gitee