From 236368f880a97f7332303b7ae954bac592e779e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=82=96=E8=91=9B?= Date: Thu, 19 Jun 2025 10:28:48 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E6=94=AF=E6=8C=81=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E5=8D=A1=E7=89=87=E8=B0=83=E6=95=B4=E5=B0=BA=E5=AF=B8=E7=9A=84?= =?UTF-8?q?=E8=83=BD=E5=8A=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 李肖葛 --- api/@ohos.app.form.FormExtensionAbility.d.ts | 15 ++++++++++++ api/@ohos.app.form.formHost.d.ts | 18 +++++++++++++++ api/@ohos.app.form.formInfo.d.ts | 24 ++++++++++++++++++++ 3 files changed, 57 insertions(+) diff --git a/api/@ohos.app.form.FormExtensionAbility.d.ts b/api/@ohos.app.form.FormExtensionAbility.d.ts index 8eb3e5f9f9..fa09d57f05 100644 --- a/api/@ohos.app.form.FormExtensionAbility.d.ts +++ b/api/@ohos.app.form.FormExtensionAbility.d.ts @@ -338,5 +338,20 @@ declare class FormExtensionAbility { * @since 20 */ onFormLocationChanged(formId: string, newLocation: formInfo.FormLocation): void; + + /** + * Called to notify the form provider that the size of the form has been changed. Override this method if + * you want to know the form size be changed, used for data continuity and layout refresh. + * + * @param { string } formId - Indicates the form id. + * @param { string } newDimesnion - Indicates the new dimesnion of the form. + * @param { formInfo.Rect } newRect - Indicates the new rect(vp) of the form. + * + * @syscap SystemCapability.Ability.Form + * @stagemodelonly + * @since 20 + * @arkts 1.1&1.2 + */ + onSizeChanged(formId: string, newDimesnion: string, newRect: formInfo.Rect): void; } export default FormExtensionAbility; diff --git a/api/@ohos.app.form.formHost.d.ts b/api/@ohos.app.form.formHost.d.ts index cb7a9402a3..4e7acf2872 100644 --- a/api/@ohos.app.form.formHost.d.ts +++ b/api/@ohos.app.form.formHost.d.ts @@ -1274,5 +1274,23 @@ declare namespace formHost { * @since 12 */ function updateFormLocation(formId: string, location: formInfo.FormLocation): void; + + /** + * Update size of the form. + * + * @permission ohos.permission.REQUIRE_FORM + * @param { string } formId - Indicates the form id. + * @param { string } newDimesnion - The newDimesnion of the form. + * @param { formInfo.Rect } newRect - The newRect of the form. + * @throws { BusinessError } 201 - Permissions denied. + * @throws { BusinessError } 202 - caller is not system app. + * @throws { BusinessError } 801 - Capability not supported.function requestOverRange can not work correctly + * due to limited device capabilities. + * @syscap SystemCapability.Ability.Form + * @systemapi + * @since 20 + * @arkts 1.2 + */ + function updateFormSize(formId: string, newDimesnion: string, newRect: formInfo.Rect): void; } export default formHost; diff --git a/api/@ohos.app.form.formInfo.d.ts b/api/@ohos.app.form.formInfo.d.ts index c6c6e9245b..51400ba478 100644 --- a/api/@ohos.app.form.formInfo.d.ts +++ b/api/@ohos.app.form.formInfo.d.ts @@ -472,6 +472,30 @@ declare namespace formInfo { * @since 20 */ readonly sceneAnimationParams?: SceneAnimationParams; + + /** + * Obtains the resizable of the form. + * + * @type { ?boolean } + * @readonly + * @syscap SystemCapability.Ability.Form + * @systemapi + * @since 20 + * @arkts 1.2 + */ + readonly resizable?: boolean; + + /** + * Obtains the group id of the form. + * + * @type { ?string } + * @readonly + * @syscap SystemCapability.Ability.Form + * @systemapi + * @since 20 + * @arkts 1.2 + */ + readonly groupId?: string; } /** -- Gitee From 5d3f4c82b371280e48a5448c10abdc22e25f5b2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=82=96=E8=91=9B?= Date: Mon, 23 Jun 2025 15:02:55 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E6=94=AF=E6=8C=81=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E5=8D=A1=E7=89=87=E8=B0=83=E6=95=B4=E5=B0=BA=E5=AF=B8=E7=9A=84?= =?UTF-8?q?=E8=83=BD=E5=8A=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 李肖葛 --- api/@ohos.app.form.FormExtensionAbility.d.ts | 4 ++-- api/@ohos.app.form.formHost.d.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/@ohos.app.form.FormExtensionAbility.d.ts b/api/@ohos.app.form.FormExtensionAbility.d.ts index fa09d57f05..a19c1912af 100644 --- a/api/@ohos.app.form.FormExtensionAbility.d.ts +++ b/api/@ohos.app.form.FormExtensionAbility.d.ts @@ -344,7 +344,7 @@ declare class FormExtensionAbility { * you want to know the form size be changed, used for data continuity and layout refresh. * * @param { string } formId - Indicates the form id. - * @param { string } newDimesnion - Indicates the new dimesnion of the form. + * @param { string } newDimension - Indicates the new dimension of the form. * @param { formInfo.Rect } newRect - Indicates the new rect(vp) of the form. * * @syscap SystemCapability.Ability.Form @@ -352,6 +352,6 @@ declare class FormExtensionAbility { * @since 20 * @arkts 1.1&1.2 */ - onSizeChanged(formId: string, newDimesnion: string, newRect: formInfo.Rect): void; + onSizeChanged(formId: string, newDimension: string, newRect: formInfo.Rect): void; } export default FormExtensionAbility; diff --git a/api/@ohos.app.form.formHost.d.ts b/api/@ohos.app.form.formHost.d.ts index 4e7acf2872..2b3f28db59 100644 --- a/api/@ohos.app.form.formHost.d.ts +++ b/api/@ohos.app.form.formHost.d.ts @@ -1280,7 +1280,7 @@ declare namespace formHost { * * @permission ohos.permission.REQUIRE_FORM * @param { string } formId - Indicates the form id. - * @param { string } newDimesnion - The newDimesnion of the form. + * @param { string } newDimension - The newDimension of the form. * @param { formInfo.Rect } newRect - The newRect of the form. * @throws { BusinessError } 201 - Permissions denied. * @throws { BusinessError } 202 - caller is not system app. @@ -1291,6 +1291,6 @@ declare namespace formHost { * @since 20 * @arkts 1.2 */ - function updateFormSize(formId: string, newDimesnion: string, newRect: formInfo.Rect): void; + function updateFormSize(formId: string, newDimension: string, newRect: formInfo.Rect): void; } export default formHost; -- Gitee From 129898841c451988ace26190d731f72ecd8a33a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=82=96=E8=91=9B?= Date: Mon, 23 Jun 2025 15:18:02 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E6=94=AF=E6=8C=81=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E5=8D=A1=E7=89=87=E8=B0=83=E6=95=B4=E5=B0=BA=E5=AF=B8=E7=9A=84?= =?UTF-8?q?=E8=83=BD=E5=8A=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 李肖葛 --- api/@ohos.app.form.FormExtensionAbility.d.ts | 2 +- api/@ohos.app.form.formHost.d.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/@ohos.app.form.FormExtensionAbility.d.ts b/api/@ohos.app.form.FormExtensionAbility.d.ts index a19c1912af..65f2245500 100644 --- a/api/@ohos.app.form.FormExtensionAbility.d.ts +++ b/api/@ohos.app.form.FormExtensionAbility.d.ts @@ -343,7 +343,7 @@ declare class FormExtensionAbility { * Called to notify the form provider that the size of the form has been changed. Override this method if * you want to know the form size be changed, used for data continuity and layout refresh. * - * @param { string } formId - Indicates the form id. + * @param { string } formId - Indicates the ID of the form. * @param { string } newDimension - Indicates the new dimension of the form. * @param { formInfo.Rect } newRect - Indicates the new rect(vp) of the form. * diff --git a/api/@ohos.app.form.formHost.d.ts b/api/@ohos.app.form.formHost.d.ts index 2b3f28db59..60469fbdd6 100644 --- a/api/@ohos.app.form.formHost.d.ts +++ b/api/@ohos.app.form.formHost.d.ts @@ -1280,8 +1280,8 @@ declare namespace formHost { * * @permission ohos.permission.REQUIRE_FORM * @param { string } formId - Indicates the form id. - * @param { string } newDimension - The newDimension of the form. - * @param { formInfo.Rect } newRect - The newRect of the form. + * @param { string } newDimension - The new dimension of the form. + * @param { formInfo.Rect } newRect - The new size of the form. * @throws { BusinessError } 201 - Permissions denied. * @throws { BusinessError } 202 - caller is not system app. * @throws { BusinessError } 801 - Capability not supported.function requestOverRange can not work correctly -- Gitee From b51cbf55d50a241608984ecf991938c9875a348a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=82=96=E8=91=9B?= Date: Tue, 24 Jun 2025 14:09:50 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E6=94=AF=E6=8C=81=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E5=8D=A1=E7=89=87=E8=B0=83=E6=95=B4=E5=B0=BA=E5=AF=B8=E7=9A=84?= =?UTF-8?q?=E8=83=BD=E5=8A=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 李肖葛 --- api/@ohos.app.form.formHost.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/@ohos.app.form.formHost.d.ts b/api/@ohos.app.form.formHost.d.ts index 60469fbdd6..83815cbb12 100644 --- a/api/@ohos.app.form.formHost.d.ts +++ b/api/@ohos.app.form.formHost.d.ts @@ -1280,7 +1280,7 @@ declare namespace formHost { * * @permission ohos.permission.REQUIRE_FORM * @param { string } formId - Indicates the form id. - * @param { string } newDimension - The new dimension of the form. + * @param { string } newDimesnion - The new dimension of the form. * @param { formInfo.Rect } newRect - The new size of the form. * @throws { BusinessError } 201 - Permissions denied. * @throws { BusinessError } 202 - caller is not system app. @@ -1291,6 +1291,6 @@ declare namespace formHost { * @since 20 * @arkts 1.2 */ - function updateFormSize(formId: string, newDimension: string, newRect: formInfo.Rect): void; + function updateFormSize(formId: string, newDimesnion: string, newRect: formInfo.Rect): void; } export default formHost; -- Gitee From 52116c526262bcddea711c7c810e5764af28e54d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=82=96=E8=91=9B?= Date: Tue, 24 Jun 2025 14:39:56 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E6=94=AF=E6=8C=81=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E5=8D=A1=E7=89=87=E8=B0=83=E6=95=B4=E5=B0=BA=E5=AF=B8=E7=9A=84?= =?UTF-8?q?=E8=83=BD=E5=8A=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 李肖葛 --- api/@ohos.app.form.formHost.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/@ohos.app.form.formHost.d.ts b/api/@ohos.app.form.formHost.d.ts index 83815cbb12..60469fbdd6 100644 --- a/api/@ohos.app.form.formHost.d.ts +++ b/api/@ohos.app.form.formHost.d.ts @@ -1280,7 +1280,7 @@ declare namespace formHost { * * @permission ohos.permission.REQUIRE_FORM * @param { string } formId - Indicates the form id. - * @param { string } newDimesnion - The new dimension of the form. + * @param { string } newDimension - The new dimension of the form. * @param { formInfo.Rect } newRect - The new size of the form. * @throws { BusinessError } 201 - Permissions denied. * @throws { BusinessError } 202 - caller is not system app. @@ -1291,6 +1291,6 @@ declare namespace formHost { * @since 20 * @arkts 1.2 */ - function updateFormSize(formId: string, newDimesnion: string, newRect: formInfo.Rect): void; + function updateFormSize(formId: string, newDimension: string, newRect: formInfo.Rect): void; } export default formHost; -- Gitee