From f8cf9fde6641ef9ce9dd0d863a44ff81768daedf Mon Sep 17 00:00:00 2001 From: meikun Date: Tue, 26 Aug 2025 14:40:37 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E8=87=AA=E7=94=B1=E5=A4=9A=E7=AA=97?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E5=88=87=E6=8D=A2=E6=9F=A5=E8=AF=A2=E4=B8=8E?= =?UTF-8?q?=E7=9B=91=E5=90=AC=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: meikun --- 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 030523a592..1db7927cee 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -10838,6 +10838,7 @@ declare namespace window { * @since 20 */ setDragKeyFramePolicy(keyFramePolicy: KeyFramePolicy): Promise; + api } /** -- Gitee From 6576aee57597ac2ceaf1c9206a94d06719791775 Mon Sep 17 00:00:00 2001 From: meikun Date: Tue, 26 Aug 2025 14:45:01 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E8=87=AA=E7=94=B1=E5=A4=9A=E7=AA=97?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E5=88=87=E6=8D=A2=E6=9F=A5=E8=AF=A2=E4=B8=8E?= =?UTF-8?q?=E7=9B=91=E5=90=AC=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: meikun --- api/@ohos.window.d.ts | 45 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 1db7927cee..7a3e397c66 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -10838,7 +10838,50 @@ declare namespace window { * @since 20 */ setDragKeyFramePolicy(keyFramePolicy: KeyFramePolicy): Promise; - api + + /** + * Get the status of free multi window mode. + * + * @returns { Promise } - Promise is used to return the effective policy of key frame. + * @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 } 1300003 - This window manager service works abnormally. + * @throws { BusinessError } 1300004 - Unauthorized operation. + * @throws { BusinessError } 1300016 - Parameter error. Possible cause: 1. Invalid parameter range; 2. The parameter format is incorrect. + * @syscap SystemCapability.Window.SessionManager + * @since 20 + */ + getFreeMultiWindowStatus(): Promise; + + /** + * free multi window status change callback on. + * + * @param { 'freeMultiWindowStatusChange' } eventType The value is fixed at 'freeMultiWindowStatusChange', indicating the free multi window status change. + * @param { Callback } callback Callback used to return the result whether the window is free multi window mode. + * @throws { BusinessError } 801 - Capability not supported. + * Function on('freeMultiWindowStatusChange') 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. + * @syscap SystemCapability.Window.SessionManager + * @atomicservice + * @since 20 + */ + on(eventType: 'freeMultiWindowStatusChange', callback: Callback): void; + + /** + * free multi window status change callback off. + * + * @param { 'freeMultiWindowStatusChange' } eventType The value is fixed at 'freeMultiWindowStatusChange', indicating the free multi window status change. + * @param { Callback } callback Callback used to return the result whether the window is free multi window mode. + * @throws { BusinessError } 801 - Capability not supported. + * Function off('freeMultiWindowStatusChange') 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. + * @syscap SystemCapability.Window.SessionManager + * @atomicservice + * @since 20 + */ + off(eventType: 'freeMultiWindowStatusChange', callback?: Callback): void; } /** -- Gitee From aa6e319900a90adfeb37899f8ce1e66e8e5dc942 Mon Sep 17 00:00:00 2001 From: meikun Date: Tue, 26 Aug 2025 16:35:32 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E8=87=AA=E7=94=B1=E5=A4=9A=E7=AA=97?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E5=88=87=E6=8D=A2=E6=9F=A5=E8=AF=A2=E4=B8=8E?= =?UTF-8?q?=E7=9B=91=E5=90=AC=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: meikun --- api/@ohos.window.d.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 7a3e397c66..31253749bf 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -10840,7 +10840,7 @@ declare namespace window { setDragKeyFramePolicy(keyFramePolicy: KeyFramePolicy): Promise; /** - * Get the status of free multi window mode. + * Get the result of free multi window mode. * * @returns { Promise } - Promise is used to return the effective policy of key frame. * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. @@ -10851,37 +10851,37 @@ declare namespace window { * @syscap SystemCapability.Window.SessionManager * @since 20 */ - getFreeMultiWindowStatus(): Promise; + isFreeMultiWindowMode(): Promise; /** - * free multi window status change callback on. + * free multi window mode change callback on. * - * @param { 'freeMultiWindowStatusChange' } eventType The value is fixed at 'freeMultiWindowStatusChange', indicating the free multi window status change. + * @param { 'freeMultiWindowModeChange' } eventType The value is fixed at 'freeMultiWindowModeChange', indicating the free multi window mode change. * @param { Callback } callback Callback used to return the result whether the window is free multi window mode. * @throws { BusinessError } 801 - Capability not supported. - * Function on('freeMultiWindowStatusChange') can not work correctly due to limited device capabilities. + * Function on('freeMultiWindowModeChange') 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. * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since 20 */ - on(eventType: 'freeMultiWindowStatusChange', callback: Callback): void; + on(eventType: 'freeMultiWindowModeChange', callback: Callback): void; /** - * free multi window status change callback off. + * free multi window mode change callback off. * - * @param { 'freeMultiWindowStatusChange' } eventType The value is fixed at 'freeMultiWindowStatusChange', indicating the free multi window status change. + * @param { 'freeMultiWindowModeChange' } eventType The value is fixed at 'freeMultiWindowModeChange', indicating the free multi window mode change. * @param { Callback } callback Callback used to return the result whether the window is free multi window mode. * @throws { BusinessError } 801 - Capability not supported. - * Function off('freeMultiWindowStatusChange') can not work correctly due to limited device capabilities. + * Function off('freeMultiWindowModeChange') 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. * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since 20 */ - off(eventType: 'freeMultiWindowStatusChange', callback?: Callback): void; + off(eventType: 'freeMultiWindowModeChange', callback?: Callback): void; } /** -- Gitee From 28c992411e0a0156d55a4a7bc9237cb9fa63aa40 Mon Sep 17 00:00:00 2001 From: meikun Date: Tue, 26 Aug 2025 16:43:10 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E8=87=AA=E7=94=B1=E5=A4=9A=E7=AA=97?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E5=88=87=E6=8D=A2=E6=9F=A5=E8=AF=A2=E4=B8=8E?= =?UTF-8?q?=E7=9B=91=E5=90=AC=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: meikun --- 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 31253749bf..be678d0996 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -10842,7 +10842,7 @@ declare namespace window { /** * Get the result of free multi window mode. * - * @returns { Promise } - Promise is used to return the effective policy of key frame. + * @returns { Promise } - Promise is used to return the result whether the window in free multi window mode. * @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 } 1300003 - This window manager service works abnormally. @@ -10857,7 +10857,7 @@ declare namespace window { * free multi window mode change callback on. * * @param { 'freeMultiWindowModeChange' } eventType The value is fixed at 'freeMultiWindowModeChange', indicating the free multi window mode change. - * @param { Callback } callback Callback used to return the result whether the window is free multi window mode. + * @param { Callback } callback Callback used to return the result whether the window in free multi window mode. * @throws { BusinessError } 801 - Capability not supported. * Function on('freeMultiWindowModeChange') can not work correctly due to limited device capabilities. * @throws { BusinessError } 1300002 - This window state is abnormal. -- Gitee