From e71958739c6dc79d9521f0043bdb4ac1d41bd3c4 Mon Sep 17 00:00:00 2001 From: Peng fafu Date: Mon, 8 Sep 2025 18:58:46 +0800 Subject: [PATCH 1/5] windowSizeChange desc Signed-off-by: Peng fafu --- api/@ohos.arkui.uiExtension.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/@ohos.arkui.uiExtension.d.ts b/api/@ohos.arkui.uiExtension.d.ts index 43440c5094..b106a7835f 100644 --- a/api/@ohos.arkui.uiExtension.d.ts +++ b/api/@ohos.arkui.uiExtension.d.ts @@ -88,9 +88,9 @@ declare namespace uiExtension { off(type: 'avoidAreaChange', callback?: Callback): void; /** - * Subscribes to the window size change event of the host application. + * Subscribes to the component (EmbeddedComponent or UIExtensionComponent) size change event of the host application. * - * @param { 'windowSizeChange' } type - Event type. The value is fixed at 'windowSizeChange', indicating the window size change event. + * @param { 'windowSizeChange' } type - Event type. The value is fixed at 'windowSizeChange', indicating the component (EmbeddedComponent or UIExtensionComponent) size change event. * @param { Callback } callback - Callback used to return the window size. * @throws { BusinessError } 401 - Parameter error. Possible causes: *
1. Mandatory parameters are left unspecified. @@ -103,9 +103,9 @@ declare namespace uiExtension { on(type: 'windowSizeChange', callback: Callback): void; /** - * Unsubscribes from the window size change event of the host application. + * Unsubscribes from the component (EmbeddedComponent or UIExtensionComponent) size change event of the host application. * - * @param { 'windowSizeChange' } type - Event type. The value is fixed at 'windowSizeChange', indicating the window size change event. + * @param { 'windowSizeChange' } type - Event type. The value is fixed at 'windowSizeChange', indicating the component (EmbeddedComponent or UIExtensionComponent) size change event. * @param { Callback } callback - Callback used to return the window size. * @throws { BusinessError } 401 - Parameter error. Possible causes: *
1. Mandatory parameters are left unspecified. -- Gitee From 4dcc4d337c0993aa2192e5506130b3fb0578eb31 Mon Sep 17 00:00:00 2001 From: Peng fafu Date: Wed, 10 Sep 2025 16:33:31 +0800 Subject: [PATCH 2/5] windowSizeChange desc Signed-off-by: Peng fafu --- api/@ohos.arkui.uiExtension.d.ts | 4 ++-- api/@ohos.uiExtensionHost.d.ts | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/api/@ohos.arkui.uiExtension.d.ts b/api/@ohos.arkui.uiExtension.d.ts index b106a7835f..223e9ccfb7 100644 --- a/api/@ohos.arkui.uiExtension.d.ts +++ b/api/@ohos.arkui.uiExtension.d.ts @@ -91,7 +91,7 @@ declare namespace uiExtension { * Subscribes to the component (EmbeddedComponent or UIExtensionComponent) size change event of the host application. * * @param { 'windowSizeChange' } type - Event type. The value is fixed at 'windowSizeChange', indicating the component (EmbeddedComponent or UIExtensionComponent) size change event. - * @param { Callback } callback - Callback used to return the window size. + * @param { Callback } callback - Callback used to return the component (EmbeddedComponent or UIExtensionComponent) size. * @throws { BusinessError } 401 - Parameter error. Possible causes: *
1. Mandatory parameters are left unspecified. *
2. Incorrect parameters types. @@ -106,7 +106,7 @@ declare namespace uiExtension { * Unsubscribes from the component (EmbeddedComponent or UIExtensionComponent) size change event of the host application. * * @param { 'windowSizeChange' } type - Event type. The value is fixed at 'windowSizeChange', indicating the component (EmbeddedComponent or UIExtensionComponent) size change event. - * @param { Callback } callback - Callback used to return the window size. + * @param { Callback } callback - Callback used to return the component (EmbeddedComponent or UIExtensionComponent) size. * @throws { BusinessError } 401 - Parameter error. Possible causes: *
1. Mandatory parameters are left unspecified. *
2. Incorrect parameters types. diff --git a/api/@ohos.uiExtensionHost.d.ts b/api/@ohos.uiExtensionHost.d.ts index 12b73d66a1..fbdc2b3766 100644 --- a/api/@ohos.uiExtensionHost.d.ts +++ b/api/@ohos.uiExtensionHost.d.ts @@ -82,10 +82,10 @@ declare namespace uiExtensionHost { off(type: 'avoidAreaChange', callback?: Callback<{ type: window.AvoidAreaType, area: window.AvoidArea }>): void; /** - * Register the callback of windowSizeChange + * Subscribes to the component (EmbeddedComponent or UIExtensionComponent) size change event of the host application. * - * @param { 'windowSizeChange' } type - The value is fixed at 'windowSizeChange', indicating the window size change event. - * @param { Callback } callback - Callback used to return the window size. + * @param { 'windowSizeChange' } type - The value is fixed at 'windowSizeChange', indicating the component (EmbeddedComponent or UIExtensionComponent) size change event. + * @param { Callback } callback - Callback used to return the component (EmbeddedComponent or UIExtensionComponent) size. * @throws { BusinessError } 401 - Parameter error. Possible causes: *
1. Mandatory parameters are left unspecified. *
2. Incorrect parameters types. @@ -97,10 +97,10 @@ declare namespace uiExtensionHost { on(type: 'windowSizeChange', callback: Callback): void; /** - * Unregister the callback of windowSizeChange + * Unsubscribes from the component (EmbeddedComponent or UIExtensionComponent) size change event of the host application. * - * @param { 'windowSizeChange' } type - The value is fixed at 'windowSizeChange', indicating the window size change event. - * @param { Callback } callback - Callback used to return the window size. + * @param { 'windowSizeChange' } type - The value is fixed at 'windowSizeChange', indicating the component (EmbeddedComponent or UIExtensionComponent) size change event. + * @param { Callback } callback - Callback used to return the component (EmbeddedComponent or UIExtensionComponent) size. * @throws { BusinessError } 401 - Parameter error. Possible causes: *
1. Mandatory parameters are left unspecified. *
2. Incorrect parameters types. -- Gitee From 75f286dd15bbe486f8deaeb7cf1c69f16a9e57a7 Mon Sep 17 00:00:00 2001 From: Peng fafu Date: Wed, 10 Sep 2025 16:44:49 +0800 Subject: [PATCH 3/5] windowSizeChange desc Signed-off-by: Peng fafu --- api/@ohos.arkui.uiExtension.d.ts | 6 ++++-- api/@ohos.uiExtensionHost.d.ts | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/api/@ohos.arkui.uiExtension.d.ts b/api/@ohos.arkui.uiExtension.d.ts index 223e9ccfb7..caf8b8ad60 100644 --- a/api/@ohos.arkui.uiExtension.d.ts +++ b/api/@ohos.arkui.uiExtension.d.ts @@ -90,7 +90,8 @@ declare namespace uiExtension { /** * Subscribes to the component (EmbeddedComponent or UIExtensionComponent) size change event of the host application. * - * @param { 'windowSizeChange' } type - Event type. The value is fixed at 'windowSizeChange', indicating the component (EmbeddedComponent or UIExtensionComponent) size change event. + * @param { 'windowSizeChange' } type - Event type. The value is fixed at 'windowSizeChange', + * indicating the component (EmbeddedComponent or UIExtensionComponent) size change event. * @param { Callback } callback - Callback used to return the component (EmbeddedComponent or UIExtensionComponent) size. * @throws { BusinessError } 401 - Parameter error. Possible causes: *
1. Mandatory parameters are left unspecified. @@ -105,7 +106,8 @@ declare namespace uiExtension { /** * Unsubscribes from the component (EmbeddedComponent or UIExtensionComponent) size change event of the host application. * - * @param { 'windowSizeChange' } type - Event type. The value is fixed at 'windowSizeChange', indicating the component (EmbeddedComponent or UIExtensionComponent) size change event. + * @param { 'windowSizeChange' } type - Event type. The value is fixed at 'windowSizeChange', + * indicating the component (EmbeddedComponent or UIExtensionComponent) size change event. * @param { Callback } callback - Callback used to return the component (EmbeddedComponent or UIExtensionComponent) size. * @throws { BusinessError } 401 - Parameter error. Possible causes: *
1. Mandatory parameters are left unspecified. diff --git a/api/@ohos.uiExtensionHost.d.ts b/api/@ohos.uiExtensionHost.d.ts index fbdc2b3766..ca0ec94668 100644 --- a/api/@ohos.uiExtensionHost.d.ts +++ b/api/@ohos.uiExtensionHost.d.ts @@ -84,7 +84,8 @@ declare namespace uiExtensionHost { /** * Subscribes to the component (EmbeddedComponent or UIExtensionComponent) size change event of the host application. * - * @param { 'windowSizeChange' } type - The value is fixed at 'windowSizeChange', indicating the component (EmbeddedComponent or UIExtensionComponent) size change event. + * @param { 'windowSizeChange' } type - The value is fixed at 'windowSizeChange', + * indicating the component (EmbeddedComponent or UIExtensionComponent) size change event. * @param { Callback } callback - Callback used to return the component (EmbeddedComponent or UIExtensionComponent) size. * @throws { BusinessError } 401 - Parameter error. Possible causes: *
1. Mandatory parameters are left unspecified. @@ -99,7 +100,8 @@ declare namespace uiExtensionHost { /** * Unsubscribes from the component (EmbeddedComponent or UIExtensionComponent) size change event of the host application. * - * @param { 'windowSizeChange' } type - The value is fixed at 'windowSizeChange', indicating the component (EmbeddedComponent or UIExtensionComponent) size change event. + * @param { 'windowSizeChange' } type - The value is fixed at 'windowSizeChange', + * indicating the component (EmbeddedComponent or UIExtensionComponent) size change event. * @param { Callback } callback - Callback used to return the component (EmbeddedComponent or UIExtensionComponent) size. * @throws { BusinessError } 401 - Parameter error. Possible causes: *
1. Mandatory parameters are left unspecified. -- Gitee From 601dd2dddaba4ca4c096b4ef7797642e7e4be7ff Mon Sep 17 00:00:00 2001 From: Peng fafu Date: Thu, 11 Sep 2025 10:21:04 +0800 Subject: [PATCH 4/5] windowSizeChange desc Signed-off-by: Peng fafu --- api/@ohos.arkui.uiExtension.d.ts | 11 +++++++---- api/@ohos.uiExtensionHost.d.ts | 11 +++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/api/@ohos.arkui.uiExtension.d.ts b/api/@ohos.arkui.uiExtension.d.ts index caf8b8ad60..0095ec35bd 100644 --- a/api/@ohos.arkui.uiExtension.d.ts +++ b/api/@ohos.arkui.uiExtension.d.ts @@ -88,11 +88,12 @@ declare namespace uiExtension { off(type: 'avoidAreaChange', callback?: Callback): void; /** - * Subscribes to the component (EmbeddedComponent or UIExtensionComponent) size change event of the host application. + * Subscribes to the component (EmbeddedComponent or UIExtensionComponent) size change event. * * @param { 'windowSizeChange' } type - Event type. The value is fixed at 'windowSizeChange', * indicating the component (EmbeddedComponent or UIExtensionComponent) size change event. - * @param { Callback } callback - Callback used to return the component (EmbeddedComponent or UIExtensionComponent) size. + * @param { Callback } callback - Callback used to return the component (EmbeddedComponent or + * UIExtensionComponent) size. * @throws { BusinessError } 401 - Parameter error. Possible causes: *
1. Mandatory parameters are left unspecified. *
2. Incorrect parameters types. @@ -104,11 +105,13 @@ declare namespace uiExtension { on(type: 'windowSizeChange', callback: Callback): void; /** - * Unsubscribes from the component (EmbeddedComponent or UIExtensionComponent) size change event of the host application. + * Unsubscribes from the component (EmbeddedComponent or UIExtensionComponent) size change event. * * @param { 'windowSizeChange' } type - Event type. The value is fixed at 'windowSizeChange', * indicating the component (EmbeddedComponent or UIExtensionComponent) size change event. - * @param { Callback } callback - Callback used to return the component (EmbeddedComponent or UIExtensionComponent) size. + * @param { Callback } callback - Callback used to return the component (EmbeddedComponent or + * UIExtensionComponent) size. + * Not passing or passing a value of null or undefined indicates unsubscribes all callbacks. * @throws { BusinessError } 401 - Parameter error. Possible causes: *
1. Mandatory parameters are left unspecified. *
2. Incorrect parameters types. diff --git a/api/@ohos.uiExtensionHost.d.ts b/api/@ohos.uiExtensionHost.d.ts index ca0ec94668..91edd71811 100644 --- a/api/@ohos.uiExtensionHost.d.ts +++ b/api/@ohos.uiExtensionHost.d.ts @@ -82,11 +82,12 @@ declare namespace uiExtensionHost { off(type: 'avoidAreaChange', callback?: Callback<{ type: window.AvoidAreaType, area: window.AvoidArea }>): void; /** - * Subscribes to the component (EmbeddedComponent or UIExtensionComponent) size change event of the host application. + * Subscribes to the component (EmbeddedComponent or UIExtensionComponent) size change event. * * @param { 'windowSizeChange' } type - The value is fixed at 'windowSizeChange', * indicating the component (EmbeddedComponent or UIExtensionComponent) size change event. - * @param { Callback } callback - Callback used to return the component (EmbeddedComponent or UIExtensionComponent) size. + * @param { Callback } callback - Callback used to return the component (EmbeddedComponent or + * UIExtensionComponent) size. * @throws { BusinessError } 401 - Parameter error. Possible causes: *
1. Mandatory parameters are left unspecified. *
2. Incorrect parameters types. @@ -98,11 +99,13 @@ declare namespace uiExtensionHost { on(type: 'windowSizeChange', callback: Callback): void; /** - * Unsubscribes from the component (EmbeddedComponent or UIExtensionComponent) size change event of the host application. + * Unsubscribes from the component (EmbeddedComponent or UIExtensionComponent) size change event. * * @param { 'windowSizeChange' } type - The value is fixed at 'windowSizeChange', * indicating the component (EmbeddedComponent or UIExtensionComponent) size change event. - * @param { Callback } callback - Callback used to return the component (EmbeddedComponent or UIExtensionComponent) size. + * @param { Callback } callback - Callback used to return the component (EmbeddedComponent or + * UIExtensionComponent) size. + * Not passing or passing a value of null or undefined indicates unsubscribes all callbacks. * @throws { BusinessError } 401 - Parameter error. Possible causes: *
1. Mandatory parameters are left unspecified. *
2. Incorrect parameters types. -- Gitee From 7eaba5dcebe52207159f5de965a58c818cc8e4bb Mon Sep 17 00:00:00 2001 From: Peng fafu Date: Fri, 12 Sep 2025 17:37:14 +0800 Subject: [PATCH 5/5] windowSizeChange desc Signed-off-by: Peng fafu --- api/@ohos.arkui.uiExtension.d.ts | 11 +++++------ api/@ohos.uiExtensionHost.d.ts | 11 +++++------ 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/api/@ohos.arkui.uiExtension.d.ts b/api/@ohos.arkui.uiExtension.d.ts index 0095ec35bd..835c68b74b 100644 --- a/api/@ohos.arkui.uiExtension.d.ts +++ b/api/@ohos.arkui.uiExtension.d.ts @@ -91,9 +91,9 @@ declare namespace uiExtension { * Subscribes to the component (EmbeddedComponent or UIExtensionComponent) size change event. * * @param { 'windowSizeChange' } type - Event type. The value is fixed at 'windowSizeChange', - * indicating the component (EmbeddedComponent or UIExtensionComponent) size change event. + * indicating the component (EmbeddedComponent or UIExtensionComponent) size change event. * @param { Callback } callback - Callback used to return the component (EmbeddedComponent or - * UIExtensionComponent) size. + * UIExtensionComponent) size. * @throws { BusinessError } 401 - Parameter error. Possible causes: *
1. Mandatory parameters are left unspecified. *
2. Incorrect parameters types. @@ -108,10 +108,9 @@ declare namespace uiExtension { * Unsubscribes from the component (EmbeddedComponent or UIExtensionComponent) size change event. * * @param { 'windowSizeChange' } type - Event type. The value is fixed at 'windowSizeChange', - * indicating the component (EmbeddedComponent or UIExtensionComponent) size change event. - * @param { Callback } callback - Callback used to return the component (EmbeddedComponent or - * UIExtensionComponent) size. - * Not passing or passing a value of null or undefined indicates unsubscribes all callbacks. + * indicating the component (EmbeddedComponent or UIExtensionComponent) size change event. + * @param { Callback } [callback] - Unregister the callback function. + * If not provided, all callbacks for the given event type will be removed. * @throws { BusinessError } 401 - Parameter error. Possible causes: *
1. Mandatory parameters are left unspecified. *
2. Incorrect parameters types. diff --git a/api/@ohos.uiExtensionHost.d.ts b/api/@ohos.uiExtensionHost.d.ts index 91edd71811..bf10397911 100644 --- a/api/@ohos.uiExtensionHost.d.ts +++ b/api/@ohos.uiExtensionHost.d.ts @@ -85,9 +85,9 @@ declare namespace uiExtensionHost { * Subscribes to the component (EmbeddedComponent or UIExtensionComponent) size change event. * * @param { 'windowSizeChange' } type - The value is fixed at 'windowSizeChange', - * indicating the component (EmbeddedComponent or UIExtensionComponent) size change event. + * indicating the component (EmbeddedComponent or UIExtensionComponent) size change event. * @param { Callback } callback - Callback used to return the component (EmbeddedComponent or - * UIExtensionComponent) size. + * UIExtensionComponent) size. * @throws { BusinessError } 401 - Parameter error. Possible causes: *
1. Mandatory parameters are left unspecified. *
2. Incorrect parameters types. @@ -102,10 +102,9 @@ declare namespace uiExtensionHost { * Unsubscribes from the component (EmbeddedComponent or UIExtensionComponent) size change event. * * @param { 'windowSizeChange' } type - The value is fixed at 'windowSizeChange', - * indicating the component (EmbeddedComponent or UIExtensionComponent) size change event. - * @param { Callback } callback - Callback used to return the component (EmbeddedComponent or - * UIExtensionComponent) size. - * Not passing or passing a value of null or undefined indicates unsubscribes all callbacks. + * indicating the component (EmbeddedComponent or UIExtensionComponent) size change event. + * @param { Callback } [callback] - Unregister the callback function. + * If not provided, all callbacks for the given event type will be removed. * @throws { BusinessError } 401 - Parameter error. Possible causes: *
1. Mandatory parameters are left unspecified. *
2. Incorrect parameters types. -- Gitee