From 3b6af63d1686f982beaad93e7e9b2ef00158a09a Mon Sep 17 00:00:00 2001 From: ki_ja <1454623191@qq.com> Date: Fri, 6 Jun 2025 20:56:25 +0800 Subject: [PATCH 01/11] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=9E=9A=E4=B8=BE?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E3=80=81on=E5=92=8Coff=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ki_ja <1454623191@qq.com> --- api/@ohos.window.d.ts | 92 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 733632508d..1441f1a7e2 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -10162,6 +10162,8 @@ declare namespace window { * @crossplatform * @atomicservice * @since 11 + * @deprecated since 20 + * @useinstead ohos.window#LifecycleEventType */ enum WindowStageEventType { /** @@ -10286,6 +10288,59 @@ declare namespace window { PAUSED } + /** + * Window stage lifecycle callback event type + * + * @enum { number } + * @syscap SystemCapability.WindowManager.WindowManager.Core + * @StageModelOnly + * @crossplatform + * @atomicservice + * @since 20 + */ + enum LifecycleEventType { + /** + * The window stage is running in the foreground. + * + * @syscap SystemCapability.WindowManager.WindowManager.Core + * @StageModelOnly + * @crossplatform + * @atomicservice + * @since 20 + */ + SHOWN = 1, + /** + * The window stage is running in the foreground. + * + * @syscap SystemCapability.WindowManager.WindowManager.Core + * @StageModelOnly + * @crossplatform + * @atomicservice + * @since 20 + */ + RESUMED, + /** + * The window stage is running in the foreground. + * + * @syscap SystemCapability.WindowManager.WindowManager.Core + * @StageModelOnly + * @crossplatform + * @atomicservice + * @since 20 + */ + PAUSED, + /** + * The window stage is running in the foreground. + * + * @syscap SystemCapability.WindowManager.WindowManager.Core + * @StageModelOnly + * @crossplatform + * @atomicservice + * @since 20 + */ + HIDDEN + } + /** * Enum for window modality Type * @@ -11048,6 +11103,43 @@ declare namespace window { */ off(eventType: 'windowStageEvent', callback?: Callback): void; + /** + * 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 } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; + * 3. Parameter verification failed. + * @throws { BusinessError } 1300002 - This window state is abnormal. + * @throws { BusinessError } 1300005 - This window stage is abnormal. + * @syscap SystemCapability.WindowManager.WindowManager.Core + * @StageModelOnly + * @crossplatform + * @atomicservice + * @since 20 + */ + on(eventType: 'windowStageLifecycleEvent', callback: Callback): void; + + /** + * Unsubscribes from the window stage lifecycle change event. + * + * @param { 'windowStageEvent' } eventType Event type. The value is fixed at 'windowStageEvent', 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 } 401 - Parameter error. Possible cause: 1. Incorrect parameter types; + * 2. Parameter verification failed. + * @throws { BusinessError } 1300002 - This window state is abnormal. + * @throws { BusinessError } 1300005 - This window stage is abnormal. + * @syscap SystemCapability.WindowManager.WindowManager.Core + * @StageModelOnly + * @crossplatform + * @atomicservice + * @since 20 + */ + off(eventType: 'windowStageLifecycleEvent', callback?: Callback): void; + /** * Subscribes to the click event on the close button in the three-button navigation bar of the main window. * This event is triggered when the close button in the three-button navigation bar of the main window is clicked. -- Gitee From 6b4f74129791d2fe42daa52a0245323e9bce04df Mon Sep 17 00:00:00 2001 From: ki_ja <1454623191@qq.com> Date: Mon, 9 Jun 2025 17:39:05 +0800 Subject: [PATCH 02/11] =?UTF-8?q?0609-=E5=A2=9E=E5=8A=A0arkts=E6=A0=87?= =?UTF-8?q?=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ki_ja <1454623191@qq.com> --- api/@ohos.window.d.ts | 83 ++++++++++--------------------------------- 1 file changed, 18 insertions(+), 65 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 5e876872c8..7d9c31bdca 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -10514,8 +10514,7 @@ declare namespace window { * @StageModelOnly * @crossplatform * @atomicservice - * @since arkts {'1.1':'11', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 * @deprecated since 20 * @useinstead ohos.window#LifecycleEventType */ @@ -10656,60 +10655,8 @@ declare namespace window { * @StageModelOnly * @crossplatform * @atomicservice - * @since 20 - */ - enum LifecycleEventType { - /** - * The window stage is running in the foreground. - * - * @syscap SystemCapability.WindowManager.WindowManager.Core - * @StageModelOnly - * @crossplatform - * @atomicservice - * @since 20 - */ - SHOWN = 1, - /** - * The window stage is running in the foreground. - * - * @syscap SystemCapability.WindowManager.WindowManager.Core - * @StageModelOnly - * @crossplatform - * @atomicservice - * @since 20 - */ - RESUMED, - /** - * The window stage is running in the foreground. - * - * @syscap SystemCapability.WindowManager.WindowManager.Core - * @StageModelOnly - * @crossplatform - * @atomicservice - * @since 20 - */ - PAUSED, - /** - * The window stage is running in the foreground. - * - * @syscap SystemCapability.WindowManager.WindowManager.Core - * @StageModelOnly - * @crossplatform - * @atomicservice - * @since 20 - */ - HIDDEN - } - - /** - * Window stage lifecycle callback event type - * - * @enum { number } - * @syscap SystemCapability.WindowManager.WindowManager.Core - * @StageModelOnly - * @crossplatform - * @atomicservice - * @since 20 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ enum LifecycleEventType { /** @@ -10719,7 +10666,8 @@ declare namespace window { * @StageModelOnly * @crossplatform * @atomicservice - * @since 20 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ SHOWN = 1, /** @@ -10729,9 +10677,10 @@ declare namespace window { * @StageModelOnly * @crossplatform * @atomicservice - * @since 20 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ - RESUMED, + RESUMED = 2, /** * The window stage is running in the foreground. * @@ -10739,9 +10688,10 @@ declare namespace window { * @StageModelOnly * @crossplatform * @atomicservice - * @since 20 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ - PAUSED, + PAUSED = 3, /** * The window stage is running in the foreground. * @@ -10749,9 +10699,10 @@ declare namespace window { * @StageModelOnly * @crossplatform * @atomicservice - * @since 20 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ - HIDDEN + HIDDEN = 4 } /** @@ -11546,7 +11497,8 @@ declare namespace window { * @StageModelOnly * @crossplatform * @atomicservice - * @since 20 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ on(eventType: 'windowStageLifecycleEvent', callback: Callback): void; @@ -11565,7 +11517,8 @@ declare namespace window { * @StageModelOnly * @crossplatform * @atomicservice - * @since 20 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ off(eventType: 'windowStageLifecycleEvent', callback?: Callback): void; -- Gitee From 09e9376e63d848b0f8a0c7468e430f7321080edd Mon Sep 17 00:00:00 2001 From: ki_ja <1454623191@qq.com> Date: Mon, 9 Jun 2025 19:14:15 +0800 Subject: [PATCH 03/11] =?UTF-8?q?0609-=E4=BF=AE=E6=94=B9=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ki_ja <1454623191@qq.com> --- api/@ohos.window.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 7d9c31bdca..6d2fd0220e 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -10516,7 +10516,7 @@ declare namespace window { * @atomicservice * @since 11 * @deprecated since 20 - * @useinstead ohos.window#LifecycleEventType + * @useinstead ohos.window#WindowStageLifecycleEventType */ export enum WindowStageEventType { /** @@ -10658,7 +10658,7 @@ declare namespace window { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - enum LifecycleEventType { + enum WindowStageLifecycleEventType { /** * The window stage is running in the foreground. * @@ -11487,7 +11487,7 @@ 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. + * @param { Callback } callback Callback used to return the window stage lifecycle state. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -11500,13 +11500,13 @@ declare namespace window { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - on(eventType: 'windowStageLifecycleEvent', callback: Callback): void; + on(eventType: 'windowStageLifecycleEvent', callback: Callback): void; /** * Unsubscribes from the window stage lifecycle change event. * * @param { 'windowStageEvent' } eventType Event type. The value is fixed at 'windowStageEvent', indicating the window stage lifecycle change event. - * @param { Callback } callback Callback used to return the window stage lifecycle state. + * @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 } 401 - Parameter error. Possible cause: 1. Incorrect parameter types; @@ -11520,7 +11520,7 @@ declare namespace window { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - off(eventType: 'windowStageLifecycleEvent', callback?: Callback): void; + off(eventType: 'windowStageLifecycleEvent', callback?: Callback): void; /** * Subscribes to the click event on the close button in the three-button navigation bar of the main window. -- Gitee From 5352f7f28c19f9fa5db35c61322a6d1da06d02de Mon Sep 17 00:00:00 2001 From: ki_ja <1454623191@qq.com> Date: Wed, 11 Jun 2025 15:44:02 +0800 Subject: [PATCH 04/11] =?UTF-8?q?0611-=E5=A2=9E=E5=8A=A0=E5=BA=9F=E5=BC=83?= =?UTF-8?q?=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ki_ja <1454623191@qq.com> --- api/@ohos.window.d.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 6d2fd0220e..68c1a37148 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -10541,8 +10541,8 @@ declare namespace window { * @StageModelOnly * @crossplatform * @atomicservice - * @since arkts {'1.1':'11', '1.2':'20'} - * @arkts 1.1&1.2 + * @deprecated since 20 + * @useinstead ohos.window.WindowStageLifecycleEventType#SHOWN */ SHOWN = 1, /** @@ -10619,8 +10619,8 @@ declare namespace window { * @StageModelOnly * @crossplatform * @atomicservice - * @since arkts {'1.1':'11', '1.2':'20'} - * @arkts 1.1&1.2 + * @deprecated since 20 + * @useinstead ohos.window.WindowStageLifecycleEventType#HIDDEN */ HIDDEN = 4, /** @@ -10630,8 +10630,8 @@ declare namespace window { * @StageModelOnly * @crossplatform * @atomicservice - * @since arkts {'1.1':'11', '1.2':'20'} - * @arkts 1.1&1.2 + * @deprecated since 20 + * @useinstead ohos.window.WindowStageLifecycleEventType#RESUMED */ RESUMED = 5, /** @@ -10641,8 +10641,8 @@ declare namespace window { * @StageModelOnly * @crossplatform * @atomicservice - * @since arkts {'1.1':'11', '1.2':'20'} - * @arkts 1.1&1.2 + * @deprecated since 20 + * @useinstead ohos.window.WindowStageLifecycleEventType#PAUSED */ PAUSED = 6 } -- Gitee From cbf1e87e07a67e142960531b46736f33ed8d5391 Mon Sep 17 00:00:00 2001 From: ki_ja <1454623191@qq.com> Date: Thu, 12 Jun 2025 16:44:16 +0800 Subject: [PATCH 05/11] =?UTF-8?q?0612-=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: ki_ja <1454623191@qq.com> --- 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 68c1a37148..06f4acac1d 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -10671,7 +10671,7 @@ declare namespace window { */ SHOWN = 1, /** - * The window stage is running in the foreground. + * The window stage is interactive in the foreground. * * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly @@ -10682,7 +10682,7 @@ declare namespace window { */ RESUMED = 2, /** - * The window stage is running in the foreground. + * The window stage is not interactive in the foreground. * * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly @@ -10693,7 +10693,7 @@ declare namespace window { */ PAUSED = 3, /** - * The window stage is running in the foreground. + * The window stage is running in the background. * * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly -- Gitee From 98bd82e0c864cbb9392f624fb954fe23ae67c966 Mon Sep 17 00:00:00 2001 From: ki_ja <1454623191@qq.com> Date: Mon, 16 Jun 2025 11:13:50 +0800 Subject: [PATCH 06/11] =?UTF-8?q?0616-=E5=88=A0=E9=99=A4=E5=BA=9F=E5=BC=83?= =?UTF-8?q?=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ki_ja <1454623191@qq.com> --- api/@ohos.window.d.ts | 54 +++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 30 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 06f4acac1d..dc53ea86df 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -10514,9 +10514,8 @@ declare namespace window { * @StageModelOnly * @crossplatform * @atomicservice - * @since 11 - * @deprecated since 20 - * @useinstead ohos.window#WindowStageLifecycleEventType + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ export enum WindowStageEventType { /** @@ -10541,8 +10540,8 @@ declare namespace window { * @StageModelOnly * @crossplatform * @atomicservice - * @deprecated since 20 - * @useinstead ohos.window.WindowStageLifecycleEventType#SHOWN + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ SHOWN = 1, /** @@ -10619,8 +10618,8 @@ declare namespace window { * @StageModelOnly * @crossplatform * @atomicservice - * @deprecated since 20 - * @useinstead ohos.window.WindowStageLifecycleEventType#HIDDEN + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ HIDDEN = 4, /** @@ -10630,8 +10629,8 @@ declare namespace window { * @StageModelOnly * @crossplatform * @atomicservice - * @deprecated since 20 - * @useinstead ohos.window.WindowStageLifecycleEventType#RESUMED + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ RESUMED = 5, /** @@ -10641,8 +10640,8 @@ declare namespace window { * @StageModelOnly * @crossplatform * @atomicservice - * @deprecated since 20 - * @useinstead ohos.window.WindowStageLifecycleEventType#PAUSED + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ PAUSED = 6 } @@ -10655,8 +10654,8 @@ declare namespace window { * @StageModelOnly * @crossplatform * @atomicservice - * @since arkts {'1.1':'11', '1.2':'20'} - * @arkts 1.1&1.2 + * @since arkts {'1.1':'20'} + * @arkts 1.1 */ enum WindowStageLifecycleEventType { /** @@ -10666,8 +10665,8 @@ declare namespace window { * @StageModelOnly * @crossplatform * @atomicservice - * @since arkts {'1.1':'11', '1.2':'20'} - * @arkts 1.1&1.2 + * @since arkts {'1.1':'20'} + * @arkts 1.1 */ SHOWN = 1, /** @@ -10677,8 +10676,8 @@ declare namespace window { * @StageModelOnly * @crossplatform * @atomicservice - * @since arkts {'1.1':'11', '1.2':'20'} - * @arkts 1.1&1.2 + * @since arkts {'1.1':'20'} + * @arkts 1.1 */ RESUMED = 2, /** @@ -10688,8 +10687,8 @@ declare namespace window { * @StageModelOnly * @crossplatform * @atomicservice - * @since arkts {'1.1':'11', '1.2':'20'} - * @arkts 1.1&1.2 + * @since arkts {'1.1':'20'} + * @arkts 1.1 */ PAUSED = 3, /** @@ -10699,8 +10698,8 @@ declare namespace window { * @StageModelOnly * @crossplatform * @atomicservice - * @since arkts {'1.1':'11', '1.2':'20'} - * @arkts 1.1&1.2 + * @since arkts {'1.1':'20'} + * @arkts 1.1 */ HIDDEN = 4 } @@ -11488,17 +11487,14 @@ 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 } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types; - * 3. Parameter verification failed. * @throws { BusinessError } 1300002 - This window state is abnormal. * @throws { BusinessError } 1300005 - This window stage is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly * @crossplatform * @atomicservice - * @since arkts {'1.1':'11', '1.2':'20'} - * @arkts 1.1&1.2 + * @since arkts {'1.1':'20'} + * @arkts 1.1 */ on(eventType: 'windowStageLifecycleEvent', callback: Callback): void; @@ -11509,16 +11505,14 @@ 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 } 401 - Parameter error. Possible cause: 1. Incorrect parameter types; - * 2. Parameter verification failed. * @throws { BusinessError } 1300002 - This window state is abnormal. * @throws { BusinessError } 1300005 - This window stage is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly * @crossplatform * @atomicservice - * @since arkts {'1.1':'11', '1.2':'20'} - * @arkts 1.1&1.2 + * @since arkts {'1.1':'20'} + * @arkts 1.1 */ off(eventType: 'windowStageLifecycleEvent', callback?: Callback): void; -- Gitee From 95352f983337152594115956ed3c3f166b69787a Mon Sep 17 00:00:00 2001 From: ki_ja <1454623191@qq.com> Date: Tue, 17 Jun 2025 10:49:14 +0800 Subject: [PATCH 07/11] =?UTF-8?q?0617-=E4=BF=AE=E6=94=B9=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ki_ja <1454623191@qq.com> --- 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 dc53ea86df..2673602138 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -11501,7 +11501,7 @@ declare namespace window { /** * Unsubscribes from the window stage lifecycle change event. * - * @param { 'windowStageEvent' } eventType Event type. The value is fixed at 'windowStageEvent', indicating 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. -- Gitee From e0eefd8d679b5540431994c741b58f53aeeec1cf Mon Sep 17 00:00:00 2001 From: ki_ja <1454623191@qq.com> Date: Tue, 17 Jun 2025 17:22:27 +0800 Subject: [PATCH 08/11] =?UTF-8?q?0617-=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: ki_ja <1454623191@qq.com> --- api/@ohos.window.d.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 2673602138..91f276f63e 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -10653,18 +10653,16 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly * @crossplatform - * @atomicservice * @since arkts {'1.1':'20'} * @arkts 1.1 */ - enum WindowStageLifecycleEventType { + export enum WindowStageLifecycleEventType { /** * The window stage is running in the foreground. * * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly * @crossplatform - * @atomicservice * @since arkts {'1.1':'20'} * @arkts 1.1 */ @@ -10675,7 +10673,6 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly * @crossplatform - * @atomicservice * @since arkts {'1.1':'20'} * @arkts 1.1 */ @@ -10686,7 +10683,6 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly * @crossplatform - * @atomicservice * @since arkts {'1.1':'20'} * @arkts 1.1 */ @@ -10697,7 +10693,6 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly * @crossplatform - * @atomicservice * @since arkts {'1.1':'20'} * @arkts 1.1 */ @@ -11492,7 +11487,6 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly * @crossplatform - * @atomicservice * @since arkts {'1.1':'20'} * @arkts 1.1 */ @@ -11510,7 +11504,6 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly * @crossplatform - * @atomicservice * @since arkts {'1.1':'20'} * @arkts 1.1 */ -- Gitee From 1359fd2c8ef528ae892b230536edd99aa10a8d88 Mon Sep 17 00:00:00 2001 From: ki_ja <1454623191@qq.com> Date: Tue, 17 Jun 2025 20:02:11 +0800 Subject: [PATCH 09/11] =?UTF-8?q?0617-=E4=BF=AE=E6=94=B9=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ki_ja <1454623191@qq.com> --- 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 91f276f63e..36af019265 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -10656,7 +10656,7 @@ declare namespace window { * @since arkts {'1.1':'20'} * @arkts 1.1 */ - export enum WindowStageLifecycleEventType { + enum WindowStageLifecycleEventType { /** * The window stage is running in the foreground. * -- Gitee From 6c239c35a3eaa4362eb1f20f1b1f9d3f5165267e Mon Sep 17 00:00:00 2001 From: ki_ja <1454623191@qq.com> Date: Fri, 20 Jun 2025 10:28:31 +0800 Subject: [PATCH 10/11] =?UTF-8?q?0620-=E4=BF=AE=E6=94=B9=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ki_ja <1454623191@qq.com> --- api/@ohos.window.d.ts | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 36af019265..58a0e915a4 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -10653,8 +10653,7 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly * @crossplatform - * @since arkts {'1.1':'20'} - * @arkts 1.1 + * @since 20 */ enum WindowStageLifecycleEventType { /** @@ -10663,8 +10662,7 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly * @crossplatform - * @since arkts {'1.1':'20'} - * @arkts 1.1 + * @since 20 */ SHOWN = 1, /** @@ -10673,8 +10671,7 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly * @crossplatform - * @since arkts {'1.1':'20'} - * @arkts 1.1 + * @since 20 */ RESUMED = 2, /** @@ -10683,8 +10680,7 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly * @crossplatform - * @since arkts {'1.1':'20'} - * @arkts 1.1 + * @since 20 */ PAUSED = 3, /** @@ -10693,8 +10689,7 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly * @crossplatform - * @since arkts {'1.1':'20'} - * @arkts 1.1 + * @since 20 */ HIDDEN = 4 } @@ -11487,8 +11482,7 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly * @crossplatform - * @since arkts {'1.1':'20'} - * @arkts 1.1 + * @since 20 */ on(eventType: 'windowStageLifecycleEvent', callback: Callback): void; @@ -11504,8 +11498,7 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @StageModelOnly * @crossplatform - * @since arkts {'1.1':'20'} - * @arkts 1.1 + * @since 20 */ off(eventType: 'windowStageLifecycleEvent', callback?: Callback): void; -- Gitee From 153fba584a1bb38c3db20160d34bd327d0946181 Mon Sep 17 00:00:00 2001 From: ki_ja <1454623191@qq.com> Date: Fri, 20 Jun 2025 10:47:16 +0800 Subject: [PATCH 11/11] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=AF=E9=80=89?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ki_ja <1454623191@qq.com> --- 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 58a0e915a4..d654e51873 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -11490,7 +11490,7 @@ 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. + * @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 } 1300002 - This window state is abnormal. -- Gitee