From 23e6eaf5d35f136bfb69494814bb2a1abe84fcd6 Mon Sep 17 00:00:00 2001 From: yyuehao Date: Wed, 10 Sep 2025 04:01:39 +0000 Subject: [PATCH 1/8] =?UTF-8?q?update=20api/@ohos.window.d.ts.=20maximize?= =?UTF-8?q?=20=E5=A2=9E=E5=8A=A0=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yyuehao --- api/@ohos.window.d.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 6dc429c950..03370cf094 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -9796,6 +9796,27 @@ declare namespace window { */ maximize(presentation?: MaximizePresentation): Promise; + /** + * Maximizes the main window. + * + * @param { ?MaximizePresentation } [presentation] - Layout when the window is maximized. + * The default value is window.MaximizePresentation.ENTER_IMMERSIVE, + * indicating that the window enters the immersive layout when maximized. + * @param { ?boolean } [acrossDisplay] - The parameter controls the waterfall mode of main windows in the folded state. + * The value true Indicates that the window could enter the waterfall mode directly, + * and maintains the waterfall mode when the decive is folded. + * @returns { Promise } - Promise that returns no value. + * @throws { BusinessError } 801 - Capability not supported. Function maximize can not work correctly due to limited device capabilities. + * @throws { BusinessError } 1300002 - This window state is abnormal. + * @throws { BusinessError } 1300003 - This window manager service works abnormally. + * @throws { BusinessError } 1300004 - Unauthorized operation. + * @syscap SystemCapability.Window.SessionManager + * @atomicservice + * @since 22 + * @arkts 1.1&1.2 + */ + maximize(presentation?: MaximizePresentation, acrossDisplay?: boolean): Promise; + /** * Set whether to enable a window to resize by drag. * -- Gitee From 82f4de8301fe9c711dad47508f906433c0962ef1 Mon Sep 17 00:00:00 2001 From: yyuehao Date: Wed, 10 Sep 2025 06:19:00 +0000 Subject: [PATCH 2/8] update api/@ohos.window.d.ts. Signed-off-by: yyuehao --- api/@ohos.window.d.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 03370cf094..b58b006c55 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -9811,7 +9811,6 @@ declare namespace window { * @throws { BusinessError } 1300003 - This window manager service works abnormally. * @throws { BusinessError } 1300004 - Unauthorized operation. * @syscap SystemCapability.Window.SessionManager - * @atomicservice * @since 22 * @arkts 1.1&1.2 */ -- Gitee From 45628307c7835aa263dda8455758e685f40f2e2c Mon Sep 17 00:00:00 2001 From: yyuehao Date: Wed, 10 Sep 2025 06:56:21 +0000 Subject: [PATCH 3/8] update api/@ohos.window.d.ts. Signed-off-by: yyuehao --- api/@ohos.window.d.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index b58b006c55..f6130806f3 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -9794,6 +9794,22 @@ declare namespace window { * @since arkts {'1.1':'20', '1.2':'20'} * @arkts 1.1&1.2 */ + /** + * Maximizes the main window. + * + * @param { ?MaximizePresentation } presentation - Layout when the window is maximized. + * The default value is window.MaximizePresentation.ENTER_IMMERSIVE, + * indicating that the window enters the immersive layout when maximized. + * @returns { Promise } - Promise that returns no value. + * @throws { BusinessError } 801 - Capability not supported. Function maximize can not work correctly due to limited device capabilities. + * @throws { BusinessError } 1300002 - This window state is abnormal. + * @throws { BusinessError } 1300003 - This window manager service works abnormally. + * @throws { BusinessError } 1300004 - Unauthorized operation. + * @syscap SystemCapability.Window.SessionManager + * @atomicservice + * @since 20 + * @arkts 1.1 + */ maximize(presentation?: MaximizePresentation): Promise; /** -- Gitee From 9ea561b774cda8777567209f59f948927bd2e73f Mon Sep 17 00:00:00 2001 From: yyuehao Date: Thu, 11 Sep 2025 06:51:22 +0000 Subject: [PATCH 4/8] update api/@ohos.window.d.ts. Signed-off-by: yyuehao --- api/@ohos.window.d.ts | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index f6130806f3..b58b006c55 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -9794,22 +9794,6 @@ declare namespace window { * @since arkts {'1.1':'20', '1.2':'20'} * @arkts 1.1&1.2 */ - /** - * Maximizes the main window. - * - * @param { ?MaximizePresentation } presentation - Layout when the window is maximized. - * The default value is window.MaximizePresentation.ENTER_IMMERSIVE, - * indicating that the window enters the immersive layout when maximized. - * @returns { Promise } - Promise that returns no value. - * @throws { BusinessError } 801 - Capability not supported. Function maximize can not work correctly due to limited device capabilities. - * @throws { BusinessError } 1300002 - This window state is abnormal. - * @throws { BusinessError } 1300003 - This window manager service works abnormally. - * @throws { BusinessError } 1300004 - Unauthorized operation. - * @syscap SystemCapability.Window.SessionManager - * @atomicservice - * @since 20 - * @arkts 1.1 - */ maximize(presentation?: MaximizePresentation): Promise; /** -- Gitee From d96964f4d8ab62c476a8b3018c237a305b739999 Mon Sep 17 00:00:00 2001 From: yyuehao Date: Thu, 11 Sep 2025 06:54:40 +0000 Subject: [PATCH 5/8] update api/@ohos.window.d.ts. Signed-off-by: yyuehao --- api/@ohos.window.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index b58b006c55..c18f85a22f 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -9802,11 +9802,12 @@ declare namespace window { * @param { ?MaximizePresentation } [presentation] - Layout when the window is maximized. * The default value is window.MaximizePresentation.ENTER_IMMERSIVE, * indicating that the window enters the immersive layout when maximized. - * @param { ?boolean } [acrossDisplay] - The parameter controls the waterfall mode of main windows in the folded state. + * @param { ?boolean } [acrossDisplay] - Parameter controls the waterfall mode of main windows in the folded state. * The value true Indicates that the window could enter the waterfall mode directly, * and maintains the waterfall mode when the decive is folded. * @returns { Promise } - Promise that returns no value. - * @throws { BusinessError } 801 - Capability not supported. Function maximize can not work correctly due to limited device capabilities. + * @throws { BusinessError } 801 - Capability not supported. + * Function maximize can not work correctly due to limited device capabilities. * @throws { BusinessError } 1300002 - This window state is abnormal. * @throws { BusinessError } 1300003 - This window manager service works abnormally. * @throws { BusinessError } 1300004 - Unauthorized operation. -- Gitee From 857cf65fb67f1929ab86d7b019a92dafd73b11cb Mon Sep 17 00:00:00 2001 From: yyuehao Date: Fri, 12 Sep 2025 03:55:59 +0000 Subject: [PATCH 6/8] =?UTF-8?q?update=20api/@ohos.window.d.ts.=20=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E9=BB=98=E8=AE=A4=E5=8F=82=E6=95=B0=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yyuehao --- api/@ohos.window.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index c18f85a22f..f0bcae2aae 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -9805,6 +9805,7 @@ declare namespace window { * @param { ?boolean } [acrossDisplay] - Parameter controls the waterfall mode of main windows in the folded state. * The value true Indicates that the window could enter the waterfall mode directly, * and maintains the waterfall mode when the decive is folded. + * The default value is false. * @returns { Promise } - Promise that returns no value. * @throws { BusinessError } 801 - Capability not supported. * Function maximize can not work correctly due to limited device capabilities. -- Gitee From 258b7b7d24b2b0e8d7a1787f0d02ab4ccb135e2e Mon Sep 17 00:00:00 2001 From: yyuehao Date: Mon, 15 Sep 2025 14:24:08 +0000 Subject: [PATCH 7/8] update api/@ohos.window.d.ts. Signed-off-by: yyuehao --- 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 f0bcae2aae..2bc5dafa88 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -9799,10 +9799,10 @@ declare namespace window { /** * Maximizes the main window. * - * @param { ?MaximizePresentation } [presentation] - Layout when the window is maximized. + * @param { MaximizePresentation } [presentation] - Layout when the window is maximized. * The default value is window.MaximizePresentation.ENTER_IMMERSIVE, * indicating that the window enters the immersive layout when maximized. - * @param { ?boolean } [acrossDisplay] - Parameter controls the waterfall mode of main windows in the folded state. + * @param { boolean } [acrossDisplay] - Parameter controls the waterfall mode of main windows in the folded state. * The value true Indicates that the window could enter the waterfall mode directly, * and maintains the waterfall mode when the decive is folded. * The default value is false. @@ -9813,8 +9813,7 @@ declare namespace window { * @throws { BusinessError } 1300003 - This window manager service works abnormally. * @throws { BusinessError } 1300004 - Unauthorized operation. * @syscap SystemCapability.Window.SessionManager - * @since 22 - * @arkts 1.1&1.2 + * @since 22 dynamic&static */ maximize(presentation?: MaximizePresentation, acrossDisplay?: boolean): Promise; -- Gitee From ce1a44cd7aca688288f550db486c38a1959147de Mon Sep 17 00:00:00 2001 From: yyuehao Date: Thu, 18 Sep 2025 01:38:39 +0000 Subject: [PATCH 8/8] =?UTF-8?q?update=20api/@ohos.window.d.ts.=20=E8=AF=B4?= =?UTF-8?q?=E6=98=8E=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yyuehao --- 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 2bc5dafa88..48a86e22ab 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -9802,9 +9802,9 @@ declare namespace window { * @param { MaximizePresentation } [presentation] - Layout when the window is maximized. * The default value is window.MaximizePresentation.ENTER_IMMERSIVE, * indicating that the window enters the immersive layout when maximized. - * @param { boolean } [acrossDisplay] - Parameter controls the waterfall mode of main windows in the folded state. + * @param { boolean } [acrossDisplay] - Parameter controls the waterfall mode of main windows in the half-folded state. * The value true Indicates that the window could enter the waterfall mode directly, - * and maintains the waterfall mode when the decive is folded. + * and maintains the waterfall mode when the device is half-folded. * The default value is false. * @returns { Promise } - Promise that returns no value. * @throws { BusinessError } 801 - Capability not supported. -- Gitee