From c9f3043d8263195bc30a25ff540a0b17f4cbd8af Mon Sep 17 00:00:00 2001 From: liweifeng Date: Sat, 16 Jul 2022 16:13:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=B7=A8=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E5=8D=A1=E7=89=87=E4=BF=A1=E6=81=AF=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liweifeng Change-Id: Iaf2dbc4de1aa91ae1f3c5732c8a980291d638699 --- .../component/ets/form_component.d.ts | 1 + api/@ohos.application.formHost.d.ts | 13 ++++++++ api/@ohos.application.formInfo.d.ts | 32 +++++++++++++++++-- 3 files changed, 44 insertions(+), 2 deletions(-) diff --git a/api/@internal/component/ets/form_component.d.ts b/api/@internal/component/ets/form_component.d.ts index e94054f90f..b31e8274a4 100644 --- a/api/@internal/component/ets/form_component.d.ts +++ b/api/@internal/component/ets/form_component.d.ts @@ -67,6 +67,7 @@ interface FormComponentInterface { module: string; dimension?: FormDimension; temporary?: boolean; + device?: string; }): FormComponentAttribute; } diff --git a/api/@ohos.application.formHost.d.ts b/api/@ohos.application.formHost.d.ts index e60df45a3d..c2918ee827 100644 --- a/api/@ohos.application.formHost.d.ts +++ b/api/@ohos.application.formHost.d.ts @@ -267,5 +267,18 @@ declare namespace formHost { */ function notifyFormsEnableUpdate(formIds: Array, isEnableUpdate: boolean, callback: AsyncCallback): void; function notifyFormsEnableUpdate(formIds: Array, isEnableUpdate: boolean): Promise; + + /** + * Obtains the FormInfo objects provided by specified requirements. + * + * @since 9 + * @syscap SystemCapability.Ability.Form + * @param filter Indicates the requirements the forms that the formInfos belong to have to meet. + * @systemapi hide for inner use. + * @return Infos of all forms. + * @permission ohos.permission.REQUIRE_FORM + */ + function getFormsInfo(filter: formInfo.FormInfoFilter, callback: AsyncCallback>): void; + function getFormsInfo(filter: formInfo.FormInfoFilter): Promise>; } export default formHost; \ No newline at end of file diff --git a/api/@ohos.application.formInfo.d.ts b/api/@ohos.application.formInfo.d.ts index 7abe0cddd6..54bd88ed35 100644 --- a/api/@ohos.application.formInfo.d.ts +++ b/api/@ohos.application.formInfo.d.ts @@ -174,6 +174,14 @@ declare namespace formInfo { * @syscap SystemCapability.Ability.Form */ customizeData: {[key: string]: [value: string]}; + + /** + * Whether can be continued of this form. + * + * @since 9 + * @syscap SystemCapability.Ability.Form + */ + continuable: boolean; } /** @@ -388,11 +396,11 @@ declare namespace formInfo { } /** - * The optional options used as filters to ask + * The optional options used as filters to ask * getFormsInfo to return formInfos from only forms that match the options. * * @name FormInfoFilter - * + * * @since 9 * @syscap SystemCapability.Ability.Form */ @@ -405,6 +413,26 @@ declare namespace formInfo { * @syscap SystemCapability.Ability.Form */ moduleName?: string; + + /** + * optional deviceId that used to ask getFormsInfo to return + * form infos with the same deviceId. + * + * @since 9 + * @syscap SystemCapability.Ability.Form + * @systemapi hide for inner use + */ + deviceId?: string; + + /** + * optional bundleName that used to ask getFormsInfo to return + * form infos with the same bundleName. + * + * @since 9 + * @syscap SystemCapability.Ability.Form + * @systemapi hide for inner use + */ + bundleName?: string; } } export default formInfo; \ No newline at end of file -- Gitee