From de8a2a219c77244216e64dccc5523ac71d62ca3f Mon Sep 17 00:00:00 2001 From: yyuehao Date: Thu, 11 Sep 2025 14:48:53 +0000 Subject: [PATCH 1/6] =?UTF-8?q?update=20api/@ohos.window.d.ts.=20number?= =?UTF-8?q?=E8=BD=ACint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yyuehao --- api/@ohos.window.d.ts | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 69d0beedad..e9a427eeca 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -5256,8 +5256,8 @@ declare namespace window { /** * Move window to the position. * - * @param { number } x - Indicate the X-coordinate of the window. - * @param { number } y - Indicate the Y-coordinate of the window. + * @param { int } x - Indicate the X-coordinate of the window. + * @param { int } y - Indicate the Y-coordinate of 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; @@ -5269,14 +5269,15 @@ declare namespace window { * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since 12 dynamic + * @since 20 static */ - moveWindowToAsync(x: number, y: number): Promise; + moveWindowToAsync(x: int, y: int): Promise; /** * Move window to the position. * - * @param { number } x - Indicate the X-coordinate of the window. - * @param { number } y - Indicate the Y-coordinate of the window. + * @param { int } x - Indicate the X-coordinate of the window. + * @param { int } y - Indicate the Y-coordinate of the window. * @param { ?MoveConfiguration } moveConfiguration - Indicate the window move configuration. * @returns { Promise } Promise that returns no value. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; @@ -5289,14 +5290,15 @@ declare namespace window { * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since 15 dynamic + * @since 20 static */ - moveWindowToAsync(x: number, y: number, moveConfiguration?: MoveConfiguration): Promise; + moveWindowToAsync(x: int, y: int, moveConfiguration?: MoveConfiguration): Promise; /** * Move window to the position relative to current screen. * - * @param { number } x - Indicate the X-coordinate of the window relative to current screen. - * @param { number } y - Indicate the Y-coordinate of the window relative to current screen. + * @param { int } x - Indicate the X-coordinate of the window relative to current screen. + * @param { int } y - Indicate the Y-coordinate of the window relative to current screen. * @returns { Promise } Promise that returns no value. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; @@ -5308,14 +5310,15 @@ declare namespace window { * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since 13 dynamic + * @since 20 static */ - moveWindowToGlobal(x: number, y: number): Promise; + moveWindowToGlobal(x: int, y: int): Promise; /** * Move window to the position relative to current screen. * - * @param { number } x - Indicate the X-coordinate of the window relative to current screen. - * @param { number } y - Indicate the Y-coordinate of the window relative to current screen. + * @param { int } x - Indicate the X-coordinate of the window relative to current screen. + * @param { int } y - Indicate the Y-coordinate of the window relative to current screen. * @param { ?MoveConfiguration } moveConfiguration - Indicate the window move configuration. * @returns { Promise } Promise that returns no value. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; @@ -5328,14 +5331,15 @@ declare namespace window { * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since 15 dynamic + * @since 20 static */ - moveWindowToGlobal(x: number, y: number, moveConfiguration?: MoveConfiguration): Promise; + moveWindowToGlobal(x: int, y: int, moveConfiguration?: MoveConfiguration): Promise; /** * Move window to the position relative to the main screen. * - * @param { number } x - Indicate the X-coordinate of the window relative to the main screen. - * @param { number } y - Indicate the Y-coordinate of the window relative to the main screen. + * @param { int } x - Indicate the X-coordinate of the window relative to the main screen. + * @param { int } y - Indicate the Y-coordinate of the window relative to the main screen. * @returns { Promise } Promise that returns no value. * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. * @throws { BusinessError } 1300002 - This window state is abnormal. @@ -5344,8 +5348,9 @@ declare namespace window { * @throws { BusinessError } 1300016 - Parameter error. Possible cause: 1.Invalid parameter range. * @syscap SystemCapability.Window.SessionManager * @since 20 dynamic + * @since 20 static */ - moveWindowToGlobalDisplay(x: number, y: number): Promise; + moveWindowToGlobalDisplay(x: int, y: int): Promise; /** * Set the size of a window . -- Gitee From b18ad8d814c37292b1d050f1d2b6a5a1ee715b9b Mon Sep 17 00:00:00 2001 From: yyuehao Date: Thu, 11 Sep 2025 14:57:01 +0000 Subject: [PATCH 2/6] =?UTF-8?q?update=20api/@ohos.window.d.ts.=20number=20?= =?UTF-8?q?=E8=BD=ACdouble?= 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, 12 insertions(+), 9 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index e9a427eeca..5d273989e4 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -5477,8 +5477,8 @@ declare namespace window { /** * Set the size of a window. * - * @param { number } width - Indicates the width of the window. The width should be greater than 0. - * @param { number } height - Indicates the height of the window. The height should be greater than 0. + * @param { int } width - Indicates the width of the window. The width should be greater than 0. + * @param { int } height - Indicates the height of the window. The height should be greater than 0. * @returns { Promise } Promise that returns no value. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; @@ -5490,8 +5490,9 @@ declare namespace window { * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since 12 dynamic + * @since 20 static */ - resizeAsync(width: number, height: number): Promise; + resizeAsync(width: int, height: int): Promise; /** * Set whether to follow parent window layout. Only sub windows and dialogs are available. @@ -9332,7 +9333,7 @@ declare namespace window { /** * Sets the aspect ratio of window * - * @param { number } ratio - The aspect ratio of window except decoration + * @param { double } ratio - The aspect ratio of window except decoration * @param { AsyncCallback } callback - The callback of setAspectRatio. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; @@ -9345,7 +9346,7 @@ declare namespace window { /** * Sets the aspect ratio of window * - * @param { number } ratio - The aspect ratio of window except decoration + * @param { double } ratio - The aspect ratio of window except decoration * @param { AsyncCallback } callback - The callback of setAspectRatio. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; @@ -9355,13 +9356,14 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @atomicservice * @since 12 dynamic + * @since 20 static */ - setAspectRatio(ratio: number, callback: AsyncCallback): void; + setAspectRatio(ratio: double, callback: AsyncCallback): void; /** * Sets the aspect ratio of window * - * @param { number } ratio - The aspect ratio of window except decoration + * @param { double } ratio - The aspect ratio of window except decoration * @returns { Promise } - The promise returned by the function. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; @@ -9374,7 +9376,7 @@ declare namespace window { /** * Sets the aspect ratio of window * - * @param { number } ratio - The aspect ratio of window except decoration + * @param { double } ratio - The aspect ratio of window except decoration * @returns { Promise } - The promise returned by the function. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; @@ -9384,8 +9386,9 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @atomicservice * @since 12 dynamic + * @since 20 static */ - setAspectRatio(ratio: number): Promise; + setAspectRatio(ratio: double): Promise; /** * Resets the aspect ratio of window -- Gitee From 90698c7fb5f6f0e4fdcb4e6553e687b0edb4baf4 Mon Sep 17 00:00:00 2001 From: yyuehao Date: Thu, 11 Sep 2025 15:02:54 +0000 Subject: [PATCH 3/6] =?UTF-8?q?update=20api/@ohos.window.d.ts.=20ani=20?= =?UTF-8?q?=E4=B8=89=E9=98=B6=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yyuehao --- api/@ohos.window.d.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 5d273989e4..1eb10500c6 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -3515,6 +3515,7 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @systemapi Hide this for inner system use. * @since 12 dynamic + * @since 20 static */ function setWindowLayoutMode(mode: WindowLayoutMode, callback: AsyncCallback): void; @@ -3544,6 +3545,7 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @systemapi Hide this for inner system use. * @since 12 dynamic + * @since 20 static */ function setWindowLayoutMode(mode: WindowLayoutMode): Promise; @@ -5510,6 +5512,7 @@ declare namespace window { * @stagemodelonly * @atomicservice * @since 17 dynamic + * @since 20 static */ setFollowParentWindowLayoutEnabled(enabled: boolean): Promise; @@ -5588,6 +5591,7 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @systemapi Hide this for inner system use. * @since 12 dynamic + * @since 20 static */ setWindowMode(mode: WindowMode): Promise; @@ -5619,6 +5623,7 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @systemapi Hide this for inner system use. * @since 12 dynamic + * @since 20 static */ setWindowMode(mode: WindowMode, callback: AsyncCallback): void; @@ -8857,6 +8862,7 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @systemapi * @since 9 dynamic + * @since 20 static */ setForbidSplitMove(isForbidSplitMove: boolean, callback: AsyncCallback): void; @@ -8873,6 +8879,7 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @systemapi * @since 9 dynamic + * @since 20 static */ setForbidSplitMove(isForbidSplitMove: boolean): Promise; @@ -9408,6 +9415,7 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @atomicservice * @since 12 dynamic + * @since 20 static */ resetAspectRatio(callback: AsyncCallback): void; @@ -9429,6 +9437,7 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @atomicservice * @since 12 dynamic + * @since 20 static */ resetAspectRatio(): Promise; @@ -9666,6 +9675,7 @@ declare namespace window { * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since 14 dynamic + * @since 20 static */ setResizeByDragEnabled(enable: boolean, callback: AsyncCallback): void; @@ -9682,6 +9692,7 @@ declare namespace window { * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since 14 dynamic + * @since 20 static */ setResizeByDragEnabled(enable: boolean): Promise; @@ -9741,6 +9752,7 @@ declare namespace window { * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since 12 dynamic + * @since 20 static */ getWindowLimits(): WindowLimits; @@ -9774,6 +9786,7 @@ declare namespace window { * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since 12 dynamic + * @since 20 static */ setWindowLimits(windowLimits: WindowLimits): Promise; @@ -9793,6 +9806,7 @@ declare namespace window { * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since 15 dynamic + * @since 20 static */ setWindowLimits(windowLimits: WindowLimits, isForcible: boolean): Promise; @@ -10264,6 +10278,7 @@ declare namespace window { * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since 15 dynamic + * @since 20 static */ stopMoving(): Promise; @@ -10294,6 +10309,7 @@ declare namespace window { * @throws { BusinessError } 1300004 - Unauthorized operation. * @syscap SystemCapability.Window.SessionManager * @since 20 dynamic + * @since 20 static */ enableDrag(enable: boolean): Promise; @@ -10766,6 +10782,7 @@ declare namespace window { * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since 17 dynamic + * @since 20 static */ setFollowParentMultiScreenPolicy(enabled: boolean): Promise; @@ -12158,6 +12175,7 @@ declare namespace window { * @StageModelOnly * @atomicservice * @since 15 dynamic + * @since 20 static */ setSupportedWindowModes(supportedWindowModes: Array): Promise; -- Gitee From d3a5fc88c98a3c3da4605683dcd5133bb5bc58cf Mon Sep 17 00:00:00 2001 From: yyuehao Date: Fri, 12 Sep 2025 03:49:52 +0000 Subject: [PATCH 4/6] =?UTF-8?q?update=20api/@ohos.window.d.ts.=20=E9=9D=99?= =?UTF-8?q?=E6=80=81=E5=8C=96=E6=A0=87=E7=AD=BE=E7=89=88=E6=9C=AC=E6=94=B9?= =?UTF-8?q?=E9=80=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yyuehao --- api/@ohos.window.d.ts | 60 ++++++++++++++++++++++--------------------- 1 file changed, 31 insertions(+), 29 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 1eb10500c6..4dbe617c6b 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -3515,7 +3515,7 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @systemapi Hide this for inner system use. * @since 12 dynamic - * @since 20 static + * @since 22 static */ function setWindowLayoutMode(mode: WindowLayoutMode, callback: AsyncCallback): void; @@ -3545,7 +3545,7 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @systemapi Hide this for inner system use. * @since 12 dynamic - * @since 20 static + * @since 22 static */ function setWindowLayoutMode(mode: WindowLayoutMode): Promise; @@ -5271,7 +5271,7 @@ declare namespace window { * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since 12 dynamic - * @since 20 static + * @since 22 static */ moveWindowToAsync(x: int, y: int): Promise; @@ -5292,7 +5292,7 @@ declare namespace window { * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since 15 dynamic - * @since 20 static + * @since 22 static */ moveWindowToAsync(x: int, y: int, moveConfiguration?: MoveConfiguration): Promise; @@ -5312,7 +5312,7 @@ declare namespace window { * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since 13 dynamic - * @since 20 static + * @since 22 static */ moveWindowToGlobal(x: int, y: int): Promise; @@ -5333,7 +5333,7 @@ declare namespace window { * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since 15 dynamic - * @since 20 static + * @since 22 static */ moveWindowToGlobal(x: int, y: int, moveConfiguration?: MoveConfiguration): Promise; @@ -5350,7 +5350,7 @@ declare namespace window { * @throws { BusinessError } 1300016 - Parameter error. Possible cause: 1.Invalid parameter range. * @syscap SystemCapability.Window.SessionManager * @since 20 dynamic - * @since 20 static + * @since 22 static */ moveWindowToGlobalDisplay(x: int, y: int): Promise; @@ -5512,7 +5512,7 @@ declare namespace window { * @stagemodelonly * @atomicservice * @since 17 dynamic - * @since 20 static + * @since 22 static */ setFollowParentWindowLayoutEnabled(enabled: boolean): Promise; @@ -5591,7 +5591,7 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @systemapi Hide this for inner system use. * @since 12 dynamic - * @since 20 static + * @since 22 static */ setWindowMode(mode: WindowMode): Promise; @@ -5623,7 +5623,7 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @systemapi Hide this for inner system use. * @since 12 dynamic - * @since 20 static + * @since 22 static */ setWindowMode(mode: WindowMode, callback: AsyncCallback): void; @@ -8862,7 +8862,7 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @systemapi * @since 9 dynamic - * @since 20 static + * @since 22 static */ setForbidSplitMove(isForbidSplitMove: boolean, callback: AsyncCallback): void; @@ -8879,7 +8879,7 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @systemapi * @since 9 dynamic - * @since 20 static + * @since 22 static */ setForbidSplitMove(isForbidSplitMove: boolean): Promise; @@ -9363,7 +9363,7 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @atomicservice * @since 12 dynamic - * @since 20 static + * @since 22 static */ setAspectRatio(ratio: double, callback: AsyncCallback): void; @@ -9393,7 +9393,7 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @atomicservice * @since 12 dynamic - * @since 20 static + * @since 22 static */ setAspectRatio(ratio: double): Promise; @@ -9415,7 +9415,7 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @atomicservice * @since 12 dynamic - * @since 20 static + * @since 22 static */ resetAspectRatio(callback: AsyncCallback): void; @@ -9437,7 +9437,7 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @atomicservice * @since 12 dynamic - * @since 20 static + * @since 22 static */ resetAspectRatio(): Promise; @@ -9675,7 +9675,7 @@ declare namespace window { * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since 14 dynamic - * @since 20 static + * @since 22 static */ setResizeByDragEnabled(enable: boolean, callback: AsyncCallback): void; @@ -9692,7 +9692,7 @@ declare namespace window { * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since 14 dynamic - * @since 20 static + * @since 22 static */ setResizeByDragEnabled(enable: boolean): Promise; @@ -9752,7 +9752,7 @@ declare namespace window { * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since 12 dynamic - * @since 20 static + * @since 22 static */ getWindowLimits(): WindowLimits; @@ -9786,7 +9786,7 @@ declare namespace window { * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since 12 dynamic - * @since 20 static + * @since 22 static */ setWindowLimits(windowLimits: WindowLimits): Promise; @@ -9806,7 +9806,7 @@ declare namespace window { * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since 15 dynamic - * @since 20 static + * @since 22 static */ setWindowLimits(windowLimits: WindowLimits, isForcible: boolean): Promise; @@ -10278,7 +10278,7 @@ declare namespace window { * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since 15 dynamic - * @since 20 static + * @since 22 static */ stopMoving(): Promise; @@ -10504,8 +10504,8 @@ declare namespace window { /** * Convert the window coordinates to the global coordinates. * - * @param { number } winX - Indicate the X-coordinate of the component relative to the current window. - * @param { number } winY - Indicate the Y-coordinate of the component relative to the current window. + * @param { int } winX - Indicate the X-coordinate of the component relative to the current window. + * @param { int } winY - Indicate the Y-coordinate of the component relative to the current window. * @returns { Promise } Promise used to return the Position. The pair {x, y} represents respectively the X-coordinate * and Y-coordinate of the window relative to the main screen. * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. @@ -10514,14 +10514,15 @@ declare namespace window { * @throws { BusinessError } 1300016 - Parameter error. Possible cause: 1.Invalid parameter range. * @syscap SystemCapability.Window.SessionManager * @since 20 dynamic + * @since 22 static */ - clientToGlobalDisplay(winX: number, winY: number): Promise; + clientToGlobalDisplay(winX: int, winY: int): Promise; /** * Convert the global coordinates to the window coordinates. * - * @param { number } globalDisplayX - Indicate the X-coordinate of the component relative to the main screen. - * @param { number } globalDisplayY - Indicate the Y-coordinate of the component relative to the main screen. + * @param { int } globalDisplayX - Indicate the X-coordinate of the component relative to the main screen. + * @param { int } globalDisplayY - Indicate the Y-coordinate of the component relative to the main screen. * @returns { Promise } Promise used to return the Position. The pair {x, y} represents respectively the X-coordinate * and Y-coordinate of the window relative to the current screen. * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. @@ -10530,8 +10531,9 @@ declare namespace window { * @throws { BusinessError } 1300016 - Parameter error. Possible cause: 1.Invalid parameter range. * @syscap SystemCapability.Window.SessionManager * @since 20 dynamic + * @since 22 static */ - globalDisplayToClient(globalDisplayX: number, globalDisplayY: number): Promise; + globalDisplayToClient(globalDisplayX: int, globalDisplayY: int): Promise; /** * Register the callback of rotation change @@ -10782,7 +10784,7 @@ declare namespace window { * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since 17 dynamic - * @since 20 static + * @since 22 static */ setFollowParentMultiScreenPolicy(enabled: boolean): Promise; -- Gitee From c1e7221d23b6c3a6a6a586fcc54c98511661b3c6 Mon Sep 17 00:00:00 2001 From: yyuehao Date: Fri, 12 Sep 2025 03:51:23 +0000 Subject: [PATCH 5/6] update api/@ohos.window.d.ts. Signed-off-by: yyuehao --- 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 4dbe617c6b..455fc8b1af 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -5492,7 +5492,7 @@ declare namespace window { * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since 12 dynamic - * @since 20 static + * @since 22 static */ resizeAsync(width: int, height: int): Promise; @@ -10309,7 +10309,7 @@ declare namespace window { * @throws { BusinessError } 1300004 - Unauthorized operation. * @syscap SystemCapability.Window.SessionManager * @since 20 dynamic - * @since 20 static + * @since 22 static */ enableDrag(enable: boolean): Promise; @@ -12177,7 +12177,7 @@ declare namespace window { * @StageModelOnly * @atomicservice * @since 15 dynamic - * @since 20 static + * @since 22 static */ setSupportedWindowModes(supportedWindowModes: Array): Promise; -- Gitee From fa3ef44eac2d45bbbf90ba9c25d05fcf9a6f9707 Mon Sep 17 00:00:00 2001 From: yyuehao Date: Mon, 15 Sep 2025 03:08:29 +0000 Subject: [PATCH 6/6] update api/@ohos.window.d.ts. Signed-off-by: yyuehao --- api/@ohos.window.d.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 455fc8b1af..dab3a6c38a 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -5280,7 +5280,8 @@ declare namespace window { * * @param { int } x - Indicate the X-coordinate of the window. * @param { int } y - Indicate the Y-coordinate of the window. - * @param { ?MoveConfiguration } moveConfiguration - Indicate the window move configuration. + * @param { ?MoveConfiguration } [moveConfiguration] - Indicate the window move configuration. + * If not provided, the window stays on the current display. * @returns { Promise } Promise that returns no value. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; @@ -5321,7 +5322,8 @@ declare namespace window { * * @param { int } x - Indicate the X-coordinate of the window relative to current screen. * @param { int } y - Indicate the Y-coordinate of the window relative to current screen. - * @param { ?MoveConfiguration } moveConfiguration - Indicate the window move configuration. + * @param { ?MoveConfiguration } [moveConfiguration] - Indicate the window move configuration. + * If not provided, the window stays on the current display. * @returns { Promise } Promise that returns no value. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; -- Gitee