From 570dbf9d473722c412a32b816334ddc6ef7cf2e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=A0=91=E5=B1=B1?= Date: Fri, 8 Aug 2025 14:26:53 +0800 Subject: [PATCH 1/3] =?UTF-8?q?loadContent=E6=8F=8F=E8=BF=B0=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈树山 --- api/@ohos.window.d.ts | 48 +++++++++++++++++++++++-------------------- 1 file changed, 26 insertions(+), 22 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index c72946638f..77672cdff5 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -6358,7 +6358,7 @@ declare namespace window { * @param { LocalStorage } storage - The data object shared within the content instance loaded by the window * @param { AsyncCallback } callback - Callback used to return the result. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types. + * 2. Incorrect parameter types; * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @throws { BusinessError } 1300003 - This window manager service works abnormally. @@ -6375,7 +6375,7 @@ declare namespace window { * @param { LocalStorage } storage - The data object shared within the content instance loaded by the window * @param { AsyncCallback } callback - Callback used to return the result. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types. + * 2. Incorrect parameter types; * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core @@ -6392,7 +6392,8 @@ declare namespace window { * @param { LocalStorage } storage - Page-level UI state storage unit, which is used to transfer the state attribute for the page. * @param { AsyncCallback } callback - Callback used to return the result. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types. + * 2. Incorrect parameter types; + * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly @@ -6412,7 +6413,7 @@ declare namespace window { * @param { LocalStorage } storage - The data object shared within the content instance loaded by the window * @returns { Promise } Promise that returns no value. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types. + * 2. Incorrect parameter types; * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @throws { BusinessError } 1300003 - This window manager service works abnormally. @@ -6429,7 +6430,7 @@ declare namespace window { * @param { LocalStorage } storage - The data object shared within the content instance loaded by the window * @returns { Promise } Promise that returns no value. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types. + * 2. Incorrect parameter types; * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core @@ -6446,7 +6447,8 @@ declare namespace window { * @param { LocalStorage } storage - Page-level UI state storage unit, which is used to transfer the state attribute for the page. * @returns { Promise } Promise that returns no value. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types. + * 2. Incorrect parameter types; + * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly @@ -10981,7 +10983,7 @@ declare namespace window { * Window stage lifecycle callback event type * * @enum { number } - * @syscap SystemCapability.WindowManager.WindowManager.Core + * @syscap SystemCapability.Window.SessionManager * @stagemodelonly * @since 20 */ @@ -10989,7 +10991,7 @@ declare namespace window { /** * The window stage is running in the foreground. * - * @syscap SystemCapability.WindowManager.WindowManager.Core + * @syscap SystemCapability.Window.SessionManager * @stagemodelonly * @since 20 */ @@ -10997,7 +10999,7 @@ declare namespace window { /** * The window stage is interactive in the foreground. * - * @syscap SystemCapability.WindowManager.WindowManager.Core + * @syscap SystemCapability.Window.SessionManager * @stagemodelonly * @since 20 */ @@ -11005,7 +11007,7 @@ declare namespace window { /** * The window stage is not interactive in the foreground. * - * @syscap SystemCapability.WindowManager.WindowManager.Core + * @syscap SystemCapability.Window.SessionManager * @stagemodelonly * @since 20 */ @@ -11013,7 +11015,7 @@ declare namespace window { /** * The window stage is running in the background. * - * @syscap SystemCapability.WindowManager.WindowManager.Core + * @syscap SystemCapability.Window.SessionManager * @stagemodelonly * @since 20 */ @@ -11494,7 +11496,7 @@ declare namespace window { * @param { LocalStorage } storage The data object shared within the content instance loaded by the window * @param { AsyncCallback } callback Callback used to return the result. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types. + * 2. Incorrect parameter types; * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @throws { BusinessError } 1300005 - This window stage is abnormal. @@ -11511,7 +11513,7 @@ declare namespace window { * @param { LocalStorage } storage The data object shared within the content instance loaded by the window * @param { AsyncCallback } callback Callback used to return the result. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types. + * 2. Incorrect parameter types; * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core @@ -11528,7 +11530,7 @@ declare namespace window { * @param { LocalStorage } storage The data object shared within the content instance loaded by the window * @param { AsyncCallback } callback Callback used to return the result. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types. + * 2. Incorrect parameter types; * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core @@ -11548,7 +11550,7 @@ declare namespace window { * @param { LocalStorage } storage The data object shared within the content instance loaded by the window * @returns { Promise } * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types. + * 2. Incorrect parameter types; * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @throws { BusinessError } 1300005 - This window stage is abnormal. @@ -11565,7 +11567,7 @@ declare namespace window { * @param { LocalStorage } storage The data object shared within the content instance loaded by the window * @returns { Promise } * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types. + * 2. Incorrect parameter types; * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core @@ -11582,7 +11584,7 @@ declare namespace window { * @param { LocalStorage } storage The data object shared within the content instance loaded by the window * @returns { Promise } * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types. + * 2. Incorrect parameter types; * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core @@ -11600,7 +11602,7 @@ declare namespace window { * @param { string } path of the page to which the content will be loaded * @param { AsyncCallback } callback Callback used to return the result. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types. + * 2. Incorrect parameter types; * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @throws { BusinessError } 1300005 - This window stage is abnormal. @@ -11615,7 +11617,7 @@ declare namespace window { * @param { string } path of the page to which the content will be loaded * @param { AsyncCallback } callback Callback used to return the result. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types. + * 2. Incorrect parameter types; * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core @@ -11630,7 +11632,7 @@ declare namespace window { * @param { string } path of the page to which the content will be loaded * @param { AsyncCallback } callback Callback used to return the result. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types. + * 2. Incorrect parameter types; * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core @@ -11803,9 +11805,10 @@ declare namespace window { * * @param { 'windowStageLifecycleEvent' } eventType Event type. The value is fixed at 'windowStageLifecycleEvent', indicating the window stage lifecycle change event. * @param { Callback } callback Callback used to return the window stage lifecycle state. + * @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 } 1300005 - This window stage is abnormal. - * @syscap SystemCapability.WindowManager.WindowManager.Core + * @syscap SystemCapability.Window.SessionManager * @stagemodelonly * @since 20 */ @@ -11818,9 +11821,10 @@ declare namespace window { * @param { Callback } [callback] Callback used to return the window stage lifecycle state. * If a value is passed in, the corresponding subscription is canceled. * If no value is passed in, all subscriptions to the specified event are canceled. + * @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 } 1300005 - This window stage is abnormal. - * @syscap SystemCapability.WindowManager.WindowManager.Core + * @syscap SystemCapability.Window.SessionManager * @stagemodelonly * @since 20 */ -- Gitee From 3ec94e255bc62c2a9c8be953bce59ab865cc4423 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=A0=91=E5=B1=B1?= Date: Fri, 8 Aug 2025 19:02:02 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A3=80=E8=A7=86?= =?UTF-8?q?=E6=84=8F=E8=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈树山 --- api/@ohos.window.d.ts | 105 ++++++++++++++++++++++++------------------ 1 file changed, 60 insertions(+), 45 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 77672cdff5..f198732e8f 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -6357,9 +6357,10 @@ declare namespace window { * @param { string } path - Path of the page to which the content will be loaded * @param { LocalStorage } storage - The data object shared within the content instance loaded by the window * @param { AsyncCallback } callback - Callback used to return the result. - * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types; - * 3. Invalid path parameter. + * @throws { BusinessError } 401 - Parameter error. Possible cause: + * 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; + * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @throws { BusinessError } 1300003 - This window manager service works abnormally. * @syscap SystemCapability.WindowManager.WindowManager.Core @@ -6374,9 +6375,10 @@ declare namespace window { * @param { string } path - Path of the page to which the content will be loaded * @param { LocalStorage } storage - The data object shared within the content instance loaded by the window * @param { AsyncCallback } callback - Callback used to return the result. - * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types; - * 3. Invalid path parameter. + * @throws { BusinessError } 401 - Parameter error. Possible cause: + * 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; + * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly @@ -6391,9 +6393,10 @@ declare namespace window { * @param { string } path - Path of the page from which the content will be loaded. The path is configured in the main_pages.json file of the project. * @param { LocalStorage } storage - Page-level UI state storage unit, which is used to transfer the state attribute for the page. * @param { AsyncCallback } callback - Callback used to return the result. - * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types; - * 3. Invalid path parameter. + * @throws { BusinessError } 401 - Parameter error. Possible cause: + * 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; + * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly @@ -6412,9 +6415,10 @@ declare namespace window { * @param { string } path - Path of the page to which the content will be loaded * @param { LocalStorage } storage - The data object shared within the content instance loaded by the window * @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. Invalid path parameter. + * @throws { BusinessError } 401 - Parameter error. Possible cause: + * 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; + * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @throws { BusinessError } 1300003 - This window manager service works abnormally. * @syscap SystemCapability.WindowManager.WindowManager.Core @@ -6429,9 +6433,10 @@ declare namespace window { * @param { string } path - Path of the page to which the content will be loaded * @param { LocalStorage } storage - The data object shared within the content instance loaded by the window * @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. Invalid path parameter. + * @throws { BusinessError } 401 - Parameter error. Possible cause: + * 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; + * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly @@ -6446,9 +6451,10 @@ declare namespace window { * @param { string } path - Path of the page from which the content will be loaded. The path is configured in the main_pages.json file of the project. * @param { LocalStorage } storage - Page-level UI state storage unit, which is used to transfer the state attribute for the page. * @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. Invalid path parameter. + * @throws { BusinessError } 401 - Parameter error. Possible cause: + * 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; + * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly @@ -11495,9 +11501,10 @@ declare namespace window { * @param { string } path Path of the page to which the content will be loaded * @param { LocalStorage } storage The data object shared within the content instance loaded by the window * @param { AsyncCallback } callback Callback used to return the result. - * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types; - * 3. Invalid path parameter. + * @throws { BusinessError } 401 - Parameter error. Possible cause: + * 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; + * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @throws { BusinessError } 1300005 - This window stage is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core @@ -11512,9 +11519,10 @@ declare namespace window { * @param { string } path Path of the page to which the content will be loaded * @param { LocalStorage } storage The data object shared within the content instance loaded by the window * @param { AsyncCallback } callback Callback used to return the result. - * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types; - * 3. Invalid path parameter. + * @throws { BusinessError } 401 - Parameter error. Possible cause: + * 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; + * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly @@ -11529,9 +11537,10 @@ declare namespace window { * @param { string } path Path of the page to which the content will be loaded * @param { LocalStorage } storage The data object shared within the content instance loaded by the window * @param { AsyncCallback } callback Callback used to return the result. - * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types; - * 3. Invalid path parameter. + * @throws { BusinessError } 401 - Parameter error. Possible cause: + * 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; + * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly @@ -11549,9 +11558,10 @@ declare namespace window { * @param { string } path of the page to which the content will be loaded * @param { LocalStorage } storage The data object shared within the content instance loaded by the window * @returns { Promise } - * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types; - * 3. Invalid path parameter. + * @throws { BusinessError } 401 - Parameter error. Possible cause: + * 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; + * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @throws { BusinessError } 1300005 - This window stage is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core @@ -11566,9 +11576,10 @@ declare namespace window { * @param { string } path of the page to which the content will be loaded * @param { LocalStorage } storage The data object shared within the content instance loaded by the window * @returns { Promise } - * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types; - * 3. Invalid path parameter. + * @throws { BusinessError } 401 - Parameter error. Possible cause: + * 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; + * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly @@ -11583,9 +11594,10 @@ declare namespace window { * @param { string } path of the page to which the content will be loaded * @param { LocalStorage } storage The data object shared within the content instance loaded by the window * @returns { Promise } - * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types; - * 3. Invalid path parameter. + * @throws { BusinessError } 401 - Parameter error. Possible cause: + * 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; + * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly @@ -11601,9 +11613,10 @@ declare namespace window { * * @param { string } path of the page to which the content will be loaded * @param { AsyncCallback } callback Callback used to return the result. - * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types; - * 3. Invalid path parameter. + * @throws { BusinessError } 401 - Parameter error. Possible cause: + * 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; + * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @throws { BusinessError } 1300005 - This window stage is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core @@ -11616,9 +11629,10 @@ declare namespace window { * * @param { string } path of the page to which the content will be loaded * @param { AsyncCallback } callback Callback used to return the result. - * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types; - * 3. Invalid path parameter. + * @throws { BusinessError } 401 - Parameter error. Possible cause: + * 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; + * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly @@ -11631,9 +11645,10 @@ declare namespace window { * * @param { string } path of the page to which the content will be loaded * @param { AsyncCallback } callback Callback used to return the result. - * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types; - * 3. Invalid path parameter. + * @throws { BusinessError } 401 - Parameter error. Possible cause: + * 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; + * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly -- Gitee From cce46b1384c8266a538df84969916aa0b9c88096 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=A0=91=E5=B1=B1?= Date: Sat, 9 Aug 2025 20:02:43 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=8D=A2=E8=A1=8C=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈树山 --- api/@ohos.window.d.ts | 160 +++++++++++++++++++++++++++--------------- 1 file changed, 102 insertions(+), 58 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index f198732e8f..0e741ced67 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -6350,9 +6350,11 @@ declare namespace window { getPreferredOrientation(): Orientation; /** - * Loads the content of a page, with its path in the current project specified, to this window, and transfers the state attribute to the page through a local storage. + * Loads the content of a page, with its path in the current project specified, to this window, + * and transfers the state attribute to the page through a local storage. * This API uses a promise to return the result. You are advised to call this API during UIAbility startup. - * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content. Exercise caution when using it. + * If called multiple times, this API will destroy the existing page content (UIContent) + * before loading the new content. Exercise caution when using it. * * @param { string } path - Path of the page to which the content will be loaded * @param { LocalStorage } storage - The data object shared within the content instance loaded by the window @@ -6364,13 +6366,15 @@ declare namespace window { * @throws { BusinessError } 1300002 - This window state is abnormal. * @throws { BusinessError } 1300003 - This window manager service works abnormally. * @syscap SystemCapability.WindowManager.WindowManager.Core - * @StageModelOnly + * @stagemodelonly * @since 9 */ /** - * Loads the content of a page, with its path in the current project specified, to this window, and transfers the state attribute to the page through a local storage. + * Loads the content of a page, with its path in the current project specified, to this window, + * and transfers the state attribute to the page through a local storage. * This API uses a promise to return the result. You are advised to call this API during UIAbility startup. - * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content. Exercise caution when using it. + * If called multiple times, this API will destroy the existing page content (UIContent) + * before loading the new content. Exercise caution when using it. * * @param { string } path - Path of the page to which the content will be loaded * @param { LocalStorage } storage - The data object shared within the content instance loaded by the window @@ -6381,16 +6385,19 @@ declare namespace window { * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core - * @StageModelOnly + * @stagemodelonly * @crossplatform * @since 10 */ /** - * Loads the content of a page, with its path in the current project specified, to this window, and transfers the state attribute to the page through a local storage. + * Loads the content of a page, with its path in the current project specified, + * to this window, and transfers the state attribute to the page through a local storage. * This API uses a promise to return the result. You are advised to call this API during UIAbility startup. - * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content. Exercise caution when using it. + * If called multiple times, this API will destroy the existing page content (UIContent) + * before loading the new content. Exercise caution when using it. * - * @param { string } path - Path of the page from which the content will be loaded. The path is configured in the main_pages.json file of the project. + * @param { string } path - Path of the page from which the content will be loaded. + * The path is configured in the main_pages.json file of the project. * @param { LocalStorage } storage - Page-level UI state storage unit, which is used to transfer the state attribute for the page. * @param { AsyncCallback } callback - Callback used to return the result. * @throws { BusinessError } 401 - Parameter error. Possible cause: @@ -6399,7 +6406,7 @@ declare namespace window { * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core - * @StageModelOnly + * @stagemodelonly * @crossplatform * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} @@ -6408,9 +6415,11 @@ declare namespace window { loadContent(path: string, storage: LocalStorage, callback: AsyncCallback): void; /** - * Loads the content of a page, with its path in the current project specified, to this window, and transfers the state attribute to the page through a local storage. + * Loads the content of a page, with its path in the current project specified, to this window, + * and transfers the state attribute to the page through a local storage. * This API uses a promise to return the result. You are advised to call this API during UIAbility startup. - * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content. Exercise caution when using it. + * If called multiple times, this API will destroy the existing page content (UIContent) + * before loading the new content. Exercise caution when using it. * * @param { string } path - Path of the page to which the content will be loaded * @param { LocalStorage } storage - The data object shared within the content instance loaded by the window @@ -6422,13 +6431,15 @@ declare namespace window { * @throws { BusinessError } 1300002 - This window state is abnormal. * @throws { BusinessError } 1300003 - This window manager service works abnormally. * @syscap SystemCapability.WindowManager.WindowManager.Core - * @StageModelOnly + * @stagemodelonly * @since 9 */ /** - * Loads the content of a page, with its path in the current project specified, to this window, and transfers the state attribute to the page through a local storage. + * Loads the content of a page, with its path in the current project specified, to this window, + * and transfers the state attribute to the page through a local storage. * This API uses a promise to return the result. You are advised to call this API during UIAbility startup. - * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content. Exercise caution when using it. + * If called multiple times, this API will destroy the existing page content (UIContent) + * before loading the new content. Exercise caution when using it. * * @param { string } path - Path of the page to which the content will be loaded * @param { LocalStorage } storage - The data object shared within the content instance loaded by the window @@ -6439,16 +6450,19 @@ declare namespace window { * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core - * @StageModelOnly + * @stagemodelonly * @crossplatform * @since 10 */ /** - * Loads the content of a page, with its path in the current project specified, to this window, and transfers the state attribute to the page through a local storage. + * Loads the content of a page, with its path in the current project specified, to this window, + * and transfers the state attribute to the page through a local storage. * This API uses a promise to return the result. You are advised to call this API during UIAbility startup. - * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content. Exercise caution when using it. + * If called multiple times, this API will destroy the existing page content (UIContent) + * before loading the new content. Exercise caution when using it. * - * @param { string } path - Path of the page from which the content will be loaded. The path is configured in the main_pages.json file of the project. + * @param { string } path - Path of the page from which the content will be loaded. + * The path is configured in the main_pages.json file of the project. * @param { LocalStorage } storage - Page-level UI state storage unit, which is used to transfer the state attribute for the page. * @returns { Promise } Promise that returns no value. * @throws { BusinessError } 401 - Parameter error. Possible cause: @@ -6457,7 +6471,7 @@ declare namespace window { * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core - * @StageModelOnly + * @stagemodelonly * @crossplatform * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} @@ -11493,10 +11507,14 @@ declare namespace window { * @since 11 */ getSubWindow(callback: AsyncCallback>): void; + /** - * Loads the content of a page, with its path in the current project specified, to the main window of this window stage, and transfers the state attribute to the page through a local storage. - * This API uses an asynchronous callback to return the result. You are advised to call this API during UIAbility startup. - * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content. Exercise caution when using it. + * Loads the content of a page, with its path in the current project specified, to the main window + * of this window stage, and transfers the state attribute to the page through a local storage. + * This API uses an asynchronous callback to return the result. + * You are advised to call this API during UIAbility startup. + * If called multiple times, this API will destroy the existing page content (UIContent) + * before loading the new content. Exercise caution when using it. * * @param { string } path Path of the page to which the content will be loaded * @param { LocalStorage } storage The data object shared within the content instance loaded by the window @@ -11508,13 +11526,16 @@ declare namespace window { * @throws { BusinessError } 1300002 - This window state is abnormal. * @throws { BusinessError } 1300005 - This window stage is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core - * @StageModelOnly + * @stagemodelonly * @since 9 */ /** - * Loads the content of a page, with its path in the current project specified, to the main window of this window stage, and transfers the state attribute to the page through a local storage. - * This API uses an asynchronous callback to return the result. You are advised to call this API during UIAbility startup. - * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content. Exercise caution when using it. + * Loads the content of a page, with its path in the current project specified, to the main window + * of this window stage, and transfers the state attribute to the page through a local storage. + * This API uses an asynchronous callback to return the result. + * You are advised to call this API during UIAbility startup. + * If called multiple times, this API will destroy the existing page content (UIContent) + * before loading the new content. Exercise caution when using it. * * @param { string } path Path of the page to which the content will be loaded * @param { LocalStorage } storage The data object shared within the content instance loaded by the window @@ -11525,14 +11546,17 @@ declare namespace window { * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core - * @StageModelOnly + * @stagemodelonly * @crossplatform * @since 10 */ /** - * Loads the content of a page, with its path in the current project specified, to the main window of this window stage, and transfers the state attribute to the page through a local storage. - * This API uses an asynchronous callback to return the result. You are advised to call this API during UIAbility startup. - * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content. Exercise caution when using it. + * Loads the content of a page, with its path in the current project specified, to the main window + * of this window stage, and transfers the state attribute to the page through a local storage. + * This API uses an asynchronous callback to return the result. + * You are advised to call this API during UIAbility startup. + * If called multiple times, this API will destroy the existing page content (UIContent) + * before loading the new content. Exercise caution when using it. * * @param { string } path Path of the page to which the content will be loaded * @param { LocalStorage } storage The data object shared within the content instance loaded by the window @@ -11543,17 +11567,20 @@ declare namespace window { * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core - * @StageModelOnly + * @stagemodelonly * @crossplatform * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ loadContent(path: string, storage: LocalStorage, callback: AsyncCallback): void; + /** - * Loads the content of a page, with its path in the current project specified, to the main window of this window stage, and transfers the state attribute to the page through a local storage. + * Loads the content of a page, with its path in the current project specified, to the main window + * of this window stage, and transfers the state attribute to the page through a local storage. * This API uses a promise to return the result. You are advised to call this API during UIAbility startup. - * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content. Exercise caution when using it. + * If called multiple times, this API will destroy the existing page content (UIContent) + * before loading the new content. Exercise caution when using it. * * @param { string } path of the page to which the content will be loaded * @param { LocalStorage } storage The data object shared within the content instance loaded by the window @@ -11565,13 +11592,15 @@ declare namespace window { * @throws { BusinessError } 1300002 - This window state is abnormal. * @throws { BusinessError } 1300005 - This window stage is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core - * @StageModelOnly + * @stagemodelonly * @since 9 */ /** - * Loads the content of a page, with its path in the current project specified, to the main window of this window stage, and transfers the state attribute to the page through a local storage. + * Loads the content of a page, with its path in the current project specified, to the main window + * of this window stage, and transfers the state attribute to the page through a local storage. * This API uses a promise to return the result. You are advised to call this API during UIAbility startup. - * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content. Exercise caution when using it. + * If called multiple times, this API will destroy the existing page content (UIContent) + * before loading the new content. Exercise caution when using it. * * @param { string } path of the page to which the content will be loaded * @param { LocalStorage } storage The data object shared within the content instance loaded by the window @@ -11582,14 +11611,16 @@ declare namespace window { * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core - * @StageModelOnly + * @stagemodelonly * @crossplatform * @since 10 */ /** - * Loads the content of a page, with its path in the current project specified, to the main window of this window stage, and transfers the state attribute to the page through a local storage. + * Loads the content of a page, with its path in the current project specified, to the main window + * of this window stage, and transfers the state attribute to the page through a local storage. * This API uses a promise to return the result. You are advised to call this API during UIAbility startup. - * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content. Exercise caution when using it. + * If called multiple times, this API will destroy the existing page content (UIContent) + * before loading the new content. Exercise caution when using it. * * @param { string } path of the page to which the content will be loaded * @param { LocalStorage } storage The data object shared within the content instance loaded by the window @@ -11600,16 +11631,19 @@ declare namespace window { * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core - * @StageModelOnly + * @stagemodelonly * @crossplatform * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ loadContent(path: string, storage?: LocalStorage): Promise; + /** - * Loads content from a page to this window stage. This API uses an asynchronous callback to return the result. You are advised to call this API during UIAbility startup. - * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content. Exercise caution when using it. + * Loads content from a page to this window stage. This API uses an asynchronous callback to + * return the result. You are advised to call this API during UIAbility startup. + * If called multiple times, this API will destroy the existing page content (UIContent) + * before loading the new content. Exercise caution when using it. * * @param { string } path of the page to which the content will be loaded * @param { AsyncCallback } callback Callback used to return the result. @@ -11620,12 +11654,14 @@ declare namespace window { * @throws { BusinessError } 1300002 - This window state is abnormal. * @throws { BusinessError } 1300005 - This window stage is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core - * @StageModelOnly + * @stagemodelonly * @since 9 */ /** - * Loads content from a page to this window stage. This API uses an asynchronous callback to return the result. You are advised to call this API during UIAbility startup. - * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content. Exercise caution when using it. + * Loads content from a page to this window stage. This API uses an asynchronous callback to + * return the result. You are advised to call this API during UIAbility startup. + * If called multiple times, this API will destroy the existing page content (UIContent) + * before loading the new content. Exercise caution when using it. * * @param { string } path of the page to which the content will be loaded * @param { AsyncCallback } callback Callback used to return the result. @@ -11635,13 +11671,15 @@ declare namespace window { * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core - * @StageModelOnly + * @stagemodelonly * @crossplatform * @since 10 */ /** - * Loads content from a page to this window stage. This API uses an asynchronous callback to return the result. You are advised to call this API during UIAbility startup. - * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content. Exercise caution when using it. + * Loads content from a page to this window stage. This API uses an asynchronous callback to + * return the result. You are advised to call this API during UIAbility startup. + * If called multiple times, this API will destroy the existing page content (UIContent) + * before loading the new content. Exercise caution when using it. * * @param { string } path of the page to which the content will be loaded * @param { AsyncCallback } callback Callback used to return the result. @@ -11651,7 +11689,7 @@ declare namespace window { * 3. Invalid path parameter. * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core - * @StageModelOnly + * @stagemodelonly * @crossplatform * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} @@ -11818,9 +11856,12 @@ declare namespace window { /** * Subscribes to the window stage lifecycle change event. * - * @param { 'windowStageLifecycleEvent' } eventType Event type. The value is fixed at 'windowStageLifecycleEvent', indicating the window stage lifecycle change event. - * @param { Callback } callback Callback used to return the window stage lifecycle state. - * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. + * @param { 'windowStageLifecycleEvent' } eventType Event type. + * The value is fixed at 'windowStageLifecycleEvent', indicating the window stage lifecycle change event. + * @param { Callback } callback Callback used to + * return the window stage lifecycle state. + * @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 } 1300005 - This window stage is abnormal. * @syscap SystemCapability.Window.SessionManager @@ -11832,11 +11873,14 @@ declare namespace window { /** * Unsubscribes from the window stage lifecycle change event. * - * @param { 'windowStageLifecycleEvent' } eventType Event type. The value is fixed at 'windowStageLifecycleEvent', indicating the window stage lifecycle change event. - * @param { Callback } [callback] Callback used to return the window stage lifecycle state. - * If a value is passed in, the corresponding subscription is canceled. - * If no value is passed in, all subscriptions to the specified event are canceled. - * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. + * @param { 'windowStageLifecycleEvent' } eventType Event type. + * The value is fixed at 'windowStageLifecycleEvent', indicating the window stage lifecycle change event. + * @param { Callback } [callback] Callback used to + * return the window stage lifecycle state. + * If a value is passed in, the corresponding subscription is canceled. + * If no value is passed in, all subscriptions to the specified event are canceled. + * @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 } 1300005 - This window stage is abnormal. * @syscap SystemCapability.Window.SessionManager -- Gitee