From daa37b061facdc748824ac31b53014cb12857a53 Mon Sep 17 00:00:00 2001 From: zhongjianfei Date: Fri, 9 Dec 2022 10:22:09 +0800 Subject: [PATCH] fix link bugs Signed-off-by: zhongjianfei Change-Id: I4e964167462387ee3d75012fd9f0ec8aa7e10d23 --- .../ability/stage-formextension.md | 2 +- .../extensionability-overview.md | 4 +- .../lifecycleform-switch.md | 16 +++---- .../widget-development-fa.md | 4 +- .../widget-development-stage.md | 6 +-- .../reference/apis/Readme-CN.md | 42 ++++++++----------- .../js-apis-app-ability-extensionAbility.md | 2 +- ...md => js-apis-app-form-formBindingData.md} | 0 ... js-apis-app-form-formExtensionAbility.md} | 2 +- ...rmhost.md => js-apis-app-form-formHost.md} | 14 +++---- ...rminfo.md => js-apis-app-form-formInfo.md} | 0 ...er.md => js-apis-app-form-formProvider.md} | 18 ++++---- .../js-apis-application-formBindingData.md | 2 +- .../apis/js-apis-application-formExtension.md | 2 +- .../apis/js-apis-application-formHost.md | 2 +- .../apis/js-apis-application-formInfo.md | 2 +- .../apis/js-apis-application-formProvider.md | 2 +- zh-cn/application-dev/website.md | 41 +++++++++--------- 18 files changed, 79 insertions(+), 82 deletions(-) rename zh-cn/application-dev/reference/apis/{js-apis-app-form-formbindingdata.md => js-apis-app-form-formBindingData.md} (100%) rename zh-cn/application-dev/reference/apis/{js-apis-app-form-formextensionability.md => js-apis-app-form-formExtensionAbility.md} (98%) rename zh-cn/application-dev/reference/apis/{js-apis-app-form-formhost.md => js-apis-app-form-formHost.md} (98%) rename zh-cn/application-dev/reference/apis/{js-apis-app-form-forminfo.md => js-apis-app-form-formInfo.md} (100%) rename zh-cn/application-dev/reference/apis/{js-apis-app-form-formprovider.md => js-apis-app-form-formProvider.md} (96%) diff --git a/zh-cn/application-dev/ability/stage-formextension.md b/zh-cn/application-dev/ability/stage-formextension.md index c9c8cd3fb4..39f00e2418 100644 --- a/zh-cn/application-dev/ability/stage-formextension.md +++ b/zh-cn/application-dev/ability/stage-formextension.md @@ -30,7 +30,7 @@ Stage卡片开发,即基于[Stage模型](stage-brief.md)的卡片提供方开 ## 接口说明 -FormExtension类拥有如下API接口,具体的API介绍详见[接口文档](../reference/apis/js-apis-app-form-formextensionability.md)。 +FormExtension类拥有如下API接口,具体的API介绍详见[接口文档](../reference/apis/js-apis-app-form-formExtensionAbility.md)。 **表1** FormExtension API接口功能介绍 diff --git a/zh-cn/application-dev/application-models/extensionability-overview.md b/zh-cn/application-dev/application-models/extensionability-overview.md index 29f6eb66b0..942341093d 100644 --- a/zh-cn/application-dev/application-models/extensionability-overview.md +++ b/zh-cn/application-dev/application-models/extensionability-overview.md @@ -7,7 +7,7 @@ ExtensionAbility组件是基于特定场景(例如服务卡片、输入法等 每一个具体场景对应一个[ExtensionAbilityType](../reference/apis/js-apis-bundleManager.md#extensionabilitytype),各类型的ExtensionAbility组件均由相应的系统服务统一管理,例如InputMethodExtensionAbility组件由输入法管理服务统一管理。当前支持的ExtensionAbility类型有: -- [FormExtensionAbility](../reference/apis/js-apis-app-form-formextensionability.md):FORM类型的ExtensionAbility组件,用于提供服务卡片场景相关能力。 +- [FormExtensionAbility](../reference/apis/js-apis-app-form-formExtensionAbility.md):FORM类型的ExtensionAbility组件,用于提供服务卡片场景相关能力。 - [WorkSchedulerExtensionAbility](../reference/apis/js-apis-resourceschedule-workScheduler.md):WORK_SCHEDULER类型的ExtensionAbility组件,用于提供延迟任务注册、取消、查询的能力。 @@ -37,7 +37,7 @@ ExtensionAbility组件是基于特定场景(例如服务卡片、输入法等 ## 实现指定类型的ExtensionAbility组件 -以实现卡片[FormExtensionAbility](../reference/apis/js-apis-app-form-formextensionability.md)为例进行说明。卡片框架提供了[FormExtensionAbility](../reference/apis/js-apis-app-form-formextensionability.md)基类,开发者通过派生此基类(如MyFormExtensionAbility),实现回调(如创建卡片的onCreate()回调、更新卡片的onUpdateForm()回调等)来实现具体卡片功能,具体见开发指导见[服务卡片FormExtensionAbility](widget-development-stage.md)。 +以实现卡片[FormExtensionAbility](../reference/apis/js-apis-app-form-formExtensionAbility.md)为例进行说明。卡片框架提供了[FormExtensionAbility](../reference/apis/js-apis-app-form-formExtensionAbility.md)基类,开发者通过派生此基类(如MyFormExtensionAbility),实现回调(如创建卡片的onCreate()回调、更新卡片的onUpdateForm()回调等)来实现具体卡片功能,具体见开发指导见[服务卡片FormExtensionAbility](widget-development-stage.md)。 卡片FormExtensionAbility实现方不用关心使用方何时去请求添加、删除卡片,FormExtensionAbility实例及其所在的ExtensionAbility进程的整个生命周期,都是由卡片管理系统服务FormManagerService进行调度管理。 diff --git a/zh-cn/application-dev/application-models/lifecycleform-switch.md b/zh-cn/application-dev/application-models/lifecycleform-switch.md index d2c90660f0..fbe5ac639b 100644 --- a/zh-cn/application-dev/application-models/lifecycleform-switch.md +++ b/zh-cn/application-dev/application-models/lifecycleform-switch.md @@ -3,11 +3,11 @@ | FA模型接口 | Stage模型接口对应d.ts文件 | Stage模型对应接口 | | -------- | -------- | -------- | -| onCreate?(want: Want): formBindingData.FormBindingData; | \@ohos.app.form.FormExtensionAbility.d.ts | [onAddForm(want: Want): formBindingData.FormBindingData;](../reference/apis/js-apis-app-form-formextensionability.md#onaddform) | -| onCastToNormal?(formId: string): void; | \@ohos.app.form.FormExtensionAbility.d.ts | [onCastToNormalForm(formId: string): void;](../reference/apis/js-apis-app-form-formextensionability.md#oncasttonormalform) | -| onUpdate?(formId: string): void; | \@ohos.app.form.FormExtensionAbility.d.ts | [onUpdateForm(formId: string): void;](../reference/apis/js-apis-app-form-formextensionability.md#onupdateform) | -| onVisibilityChange?(newStatus: { [key: string]: number }): void; | \@ohos.app.form.FormExtensionAbility.d.ts | [onChangeFormVisibility(newStatus: { [key: string]: number }): void;](../reference/apis/js-apis-app-form-formextensionability.md#onchangeformvisibility) | -| onEvent?(formId: string, message: string): void; | \@ohos.app.form.FormExtensionAbility.d.ts | [onFormEvent(formId: string, message: string): void;](../reference/apis/js-apis-app-form-formextensionability.md#onformevent) | -| onDestroy?(formId: string): void; | \@ohos.app.form.FormExtensionAbility.d.ts | [onRemoveForm(formId: string): void;](../reference/apis/js-apis-app-form-formextensionability.md#onremoveform) | -| onAcquireFormState?(want: Want): formInfo.FormState; | \@ohos.app.form.FormExtensionAbility.d.ts | [onAcquireFormState?(want: Want): formInfo.FormState;](../reference/apis/js-apis-app-form-formextensionability.md#onacquireformstate) | -| onShare?(formId: string): {[key: string]: any}; | \@ohos.app.form.FormExtensionAbility.d.ts | [onShareForm?(formId: string): { [key: string]: any };](../reference/apis/js-apis-app-form-formextensionability.md#onshareform) | +| onCreate?(want: Want): formBindingData.FormBindingData; | \@ohos.app.form.FormExtensionAbility.d.ts | [onAddForm(want: Want): formBindingData.FormBindingData;](../reference/apis/js-apis-app-form-formExtensionAbility.md#onaddform) | +| onCastToNormal?(formId: string): void; | \@ohos.app.form.FormExtensionAbility.d.ts | [onCastToNormalForm(formId: string): void;](../reference/apis/js-apis-app-form-formExtensionAbility.md#oncasttonormalform) | +| onUpdate?(formId: string): void; | \@ohos.app.form.FormExtensionAbility.d.ts | [onUpdateForm(formId: string): void;](../reference/apis/js-apis-app-form-formExtensionAbility.md#onupdateform) | +| onVisibilityChange?(newStatus: { [key: string]: number }): void; | \@ohos.app.form.FormExtensionAbility.d.ts | [onChangeFormVisibility(newStatus: { [key: string]: number }): void;](../reference/apis/js-apis-app-form-formExtensionAbility.md#onchangeformvisibility) | +| onEvent?(formId: string, message: string): void; | \@ohos.app.form.FormExtensionAbility.d.ts | [onFormEvent(formId: string, message: string): void;](../reference/apis/js-apis-app-form-formExtensionAbility.md#onformevent) | +| onDestroy?(formId: string): void; | \@ohos.app.form.FormExtensionAbility.d.ts | [onRemoveForm(formId: string): void;](../reference/apis/js-apis-app-form-formExtensionAbility.md#onremoveform) | +| onAcquireFormState?(want: Want): formInfo.FormState; | \@ohos.app.form.FormExtensionAbility.d.ts | [onAcquireFormState?(want: Want): formInfo.FormState;](../reference/apis/js-apis-app-form-formExtensionAbility.md#onacquireformstate) | +| onShare?(formId: string): {[key: string]: any}; | \@ohos.app.form.FormExtensionAbility.d.ts | [onShareForm?(formId: string): { [key: string]: any };](../reference/apis/js-apis-app-form-formExtensionAbility.md#onshareform) | diff --git a/zh-cn/application-dev/application-models/widget-development-fa.md b/zh-cn/application-dev/application-models/widget-development-fa.md index b11d9a9ea9..33eceb4918 100644 --- a/zh-cn/application-dev/application-models/widget-development-fa.md +++ b/zh-cn/application-dev/application-models/widget-development-fa.md @@ -68,7 +68,7 @@ FormAbility生命周期接口如下: | onAcquireFormState?(want: Want): formInfo.FormState | 卡片提供方接收查询卡片状态的通知接口。 | | onShare?(formId: string): {[key: string]: any} | 卡片提供方接收卡片分享的通知接口。 | -FormProvider类有如下API接口,具体的API介绍详见[接口文档](../reference/apis/js-apis-app-form-formprovider.md)。 +FormProvider类有如下API接口,具体的API介绍详见[接口文档](../reference/apis/js-apis-app-form-formProvider.md)。 | 接口名 | 描述 | @@ -79,7 +79,7 @@ FormProvider类有如下API接口,具体的API介绍详见[接口文档](../re | updateForm(formId: string, formBindingData: FormBindingData): Promise<void>; | 更新指定的卡片,以promise方式返回。 | -formBindingData类有如下API接口,具体的API介绍详见[接口文档](../reference/apis/js-apis-app-form-formbindingdata.md)。 +formBindingData类有如下API接口,具体的API介绍详见[接口文档](../reference/apis/js-apis-app-form-formBindingData.md)。 | 接口名 | 描述 | diff --git a/zh-cn/application-dev/application-models/widget-development-stage.md b/zh-cn/application-dev/application-models/widget-development-stage.md index f9abd62300..b947b90e91 100644 --- a/zh-cn/application-dev/application-models/widget-development-stage.md +++ b/zh-cn/application-dev/application-models/widget-development-stage.md @@ -55,7 +55,7 @@ FormExtensionAbility就是服务卡片扩展组件(以下简称“卡片”) ## 接口说明 -FormExtensionAbility类拥有如下API接口,具体的API介绍详见[接口文档](../reference/apis/js-apis-app-form-formextensionability.md)。 +FormExtensionAbility类拥有如下API接口,具体的API介绍详见[接口文档](../reference/apis/js-apis-app-form-formExtensionAbility.md)。 | 接口名 | 描述 | | -------- | -------- | @@ -75,7 +75,7 @@ FormExtensionAbility类还拥有成员context,为FormExtensionContext类,具 | startAbility(want: Want, callback: AsyncCallback<void>): void | 回调形式拉起一个卡片所属应用的UIAbility(系统接口,三方应用不支持调用,需申请后台拉起权限)。 | | startAbility(want: Want): Promise<void> | Promise形式拉起一个卡片所属应用的UIAbility(系统接口,三方应用不支持调用,需申请后台拉起权限)。 | -formProvider类有如下API接口,具体的API介绍详见[接口文档](../reference/apis/js-apis-app-form-formprovider.md)。 +formProvider类有如下API接口,具体的API介绍详见[接口文档](../reference/apis/js-apis-app-form-formProvider.md)。 | 接口名 | 描述 | | -------- | -------- | @@ -84,7 +84,7 @@ formProvider类有如下API接口,具体的API介绍详见[接口文档](../re | updateForm(formId: string, formBindingData: FormBindingData, callback: AsyncCallback<void>): void; | 更新指定的卡片。 | | updateForm(formId: string, formBindingData: FormBindingData): Promise<void>; | 更新指定的卡片,以promise方式返回。 | -formBindingData类有如下API接口,具体的API介绍详见[接口文档](../reference/apis/js-apis-app-form-formbindingdata.md)。 +formBindingData类有如下API接口,具体的API介绍详见[接口文档](../reference/apis/js-apis-app-form-formBindingData.md)。 | 接口名 | 描述 | | -------- | -------- | diff --git a/zh-cn/application-dev/reference/apis/Readme-CN.md b/zh-cn/application-dev/reference/apis/Readme-CN.md index e2217cb621..72d41180b4 100755 --- a/zh-cn/application-dev/reference/apis/Readme-CN.md +++ b/zh-cn/application-dev/reference/apis/Readme-CN.md @@ -7,39 +7,33 @@ - FA模型 - [@ohos.ability.ability (Ability)](js-apis-ability-ability.md) - [@ohos.ability.featureAbility (FeatureAbility模块)](js-apis-ability-featureAbility.md) - - [@ohos.ability.particleAbility (particleAbility模块)](js-apis-ability-particleAbility.md) + - [@ohos.ability.particleAbility (ParticleAbility模块)](js-apis-ability-particleAbility.md) - ability/[dataAbilityHelper (DataAbilityHelper模块)](js-apis-inner-ability-dataAbilityHelper.md) - app/[context (Context模块)](js-apis-inner-app-context.md) - - Stage模型 - - [@ohos.app.ability.Ability (Ability)](js-apis-application-ability.md) + - [@ohos.app.ability.Ability (Ability基类)](js-apis-app-ability-ability.md) + - [@ohos.app.ability.UIAbility (UIAbility)](js-apis-app-ability-uiAbility.md) + - [@ohos.app.ability.StartOptions (StartOptions)](js-apis-app-ability-startOptions.md) - [@ohos.app.ability.AbilityConstant (AbilityConstant)](js-apis-app-ability-abilityConstant.md) - - [@ohos.application.AbilityConstant (AbilityConstant)](js-apis-application-abilityConstant.md) - [@ohos.app.ability.AbilityStage (AbilityStage)](js-apis-app-ability-abilityStage.md) - - [@ohos.application.AbilityStage (AbilityStage)](js-apis-app-ability-abilityStage.md) - [@ohos.app.ability.abilityLifecycleCallback (AbilityLifecycleCallback)](js-apis-app-ability-abilityLifecycleCallback.md) - - [@ohos.application.abilityLifecycleCallback (AbilityLifecycleCallback)](js-apis-application-abilityLifecycleCallback.md) - - [@ohos.application.DataShareExtensionAbility (数据共享扩展能力)](js-apis-application-dataShareExtensionAbility.md) - [@ohos.app.ability.EnvironmentCallback (EnvironmentCallback)](js-apis-app-ability-environmentCallback.md) - - [@ohos.application.EnvironmentCallback (EnvironmentCallback)](js-apis-application-environmentCallback.md) - - [@ohos.application.FormExtension (FormExtension)](js-apis-app-form-formextensionability.md) + - [@ohos.app.ability.ExtensionAbility(扩展能力基类)](js-apis-app-ability-extensionAbility.md) - [@ohos.app.ability.ServiceExtensionAbility (ServiceExtensionAbility)](js-apis-app-ability-serviceExtensionAbility.md) - - [@ohos.app.form.FormExtensionAbility.d.ts](FormExtensionAbility)(js-apis-app-form-formextensionability.md) - - [@ohos.application.ServiceExtensionAbility (ServiceExtensionAbility)](js-apis-app-ability-serviceExtensionAbility.md) - - [@ohos.app.ability.StartOptions (StartOptions)](js-apis-app-ability-startOptions.md) - - [@ohos.application.StartOptions (StartOptions)](js-apis-application-startOptions.md) + - [@ohos.app.form.FormExtensionAbility(FormExtensionAbility)](js-apis-app-form-formExtensionAbility.md) + - [@ohos.application.DataShareExtensionAbility (数据共享扩展能力)](js-apis-application-dataShareExtensionAbility.md) - [@ohos.application.StaticSubscriberExtensionAbility (StaticSubscriberExtensionAbility)](js-apis-application-staticSubscriberExtensionAbility.md) - [@ohos.application.WindowExtensionAbility (窗口扩展能力)](js-apis-application-windowExtensionAbility.md) - - [@ohos.application.ExtensionAbility](js-apis-app-ability-extensionAbility.md) - - application/[AbilityContext (AbilityContext)](js-apis-ability-context.md) + - [@ohos.app.ability.common(应用上下文Context)](js-apis-app-ability-common.md) - application/[ApplicationContext (ApplicationContext)](js-apis-inner-application-applicationContext.md) - application/[AbilityStageContext (AbilityStageContext)](js-apis-inner-application-abilityStageContext.md) - - application/[Context (Context)](js-apis-application-context.md) + - application/[Context (Context)](js-apis-inner-application-context.md) + - application/[UIAbilityContext (UIAbilityContext)](js-apis-inner-application-uiAbilityContext.md) - application/[ExtensionContext (ExtensionContext)](js-apis-inner-application-extensionContext.md) - application/[FormExtensionContext (FormExtensionContext)](js-apis-inner-application-formExtensionContext.md) - - application/[PermissionRequestResult (PermissionRequestResult)](js-apis-inner-application-permissionRequestResult.md) - application/[ServiceExtensionContext (ServiceExtensionContext)](js-apis-inner-application-serviceExtensionContext.md) - + - application/[PermissionRequestResult (PermissionRequestResult)](js-apis-inner-application-permissionRequestResult.md) + - 通用 - [@ohos.ability.dataUriUtils (DataUriUtils模块)](js-apis-ability-dataUriUtils.md) - [@ohos.ability.errorCode (ErrorCode)](js-apis-ability-errorCode.md) @@ -65,11 +59,11 @@ - [@ohos.application.formInfo (FormInfo)](js-apis-application-formInfo.md) - [@ohos.application.formProvider (FormProvider)](js-apis-application-formProvider.md) - [@ohos.app.ability.missionManager (missionManager)](js-apis-app-ability-missionManager.md) - - [@oho.app.form.formBindingData (卡片数据绑定类)](js-apis-app-form-formbindingdata.md) + - [@oho.app.form.formBindingData (卡片数据绑定类)](js-apis-app-form-formBindingData.md) - [@ohos.application.formError (FormError)](js-apis-application-formError.md) - - [@ohos.app.form.formHost (FormHost)](js-apis-app-form-formhost.md) - - [@ohos.app.form.formProvider (FormProvider)](js-apis-app-form-formprovider.md) - - [@ohos.app.form.formInfo (FormInfo)](js-apis-app-form-forminfo.md) + - [@ohos.app.form.formHost (FormHost)](js-apis-app-form-formHost.md) + - [@ohos.app.form.formProvider (FormProvider)](js-apis-app-form-formProvider.md) + - [@ohos.app.form.formInfo (FormInfo)](js-apis-app-form-formInfo.md) - [@ohos.application.missionManager (missionManager)](js-apis-application-missionManager.md) - [@ohos.app.ability.Want (Want)](js-apis-app-ability-want.md) - [@ohos.application.Want (Want)](js-apis-app-ability-want.md) @@ -88,7 +82,7 @@ - application/[shellCmdResult (ShellCmdResult)](js-apis-inner-application-shellCmdResult.md) - continuation/[continuationExtraParams (ContinuationExtraParams)](js-apis-continuation-continuationExtraParams.md) - continuation/[continuationResult (ContinuationResult)](js-apis-continuation-continuationResult.md) - + - 公共事件与通知 - [@ohos.commonEventManager (公共事件模块)](js-apis-commonEventManager.md) - [@ohos.events.emitter (Emitter)](js-apis-emitter.md) @@ -320,7 +314,7 @@ - [@ohos.uitest (UiTest)](js-apis-uitest.md) - 已停止维护的接口 - - [@ohos.application.FormExtension (FormExtension)](js-apis-app-form-formextensionability.md) + - [@ohos.application.FormExtension (FormExtension)](js-apis-app-form-formExtensionAbility.md) - [@ohos.application.formHost (FormHost)](js-apis-application-formHost.md) - [@ohos.application.formProvider (FormProvider)](js-apis-application-formProvider.md) - [@ohos.application.formInfo (FormInfo)](js-apis-application-formInfo.md) diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-ability-extensionAbility.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-extensionAbility.md index 3dc4961eff..c498fabe9a 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-extensionAbility.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-extensionAbility.md @@ -27,4 +27,4 @@ import ExtensionAbility from '@ohos.app.ability.ExtensionAbility'; console.log('onMemoryLevel, level:' + JSON.stringify(level)); } } - ``` \ No newline at end of file + ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-form-formbindingdata.md b/zh-cn/application-dev/reference/apis/js-apis-app-form-formBindingData.md similarity index 100% rename from zh-cn/application-dev/reference/apis/js-apis-app-form-formbindingdata.md rename to zh-cn/application-dev/reference/apis/js-apis-app-form-formBindingData.md diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-form-formextensionability.md b/zh-cn/application-dev/reference/apis/js-apis-app-form-formExtensionAbility.md similarity index 98% rename from zh-cn/application-dev/reference/apis/js-apis-app-form-formextensionability.md rename to zh-cn/application-dev/reference/apis/js-apis-app-form-formExtensionAbility.md index e5555f3e0c..8114a83492 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-form-formextensionability.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-form-formExtensionAbility.md @@ -39,7 +39,7 @@ onAddForm(want: Want): formBindingData.FormBindingData | 类型 | 说明 | | ------------------------------------------------------------ | ----------------------------------------------------------- | -| [formBindingData.FormBindingData](js-apis-app-form-formbindingdata.md#formbindingdata) | formBindingData.FormBindingData对象,卡片要显示的数据。 | +| [formBindingData.FormBindingData](js-apis-app-form-formBindingData.md#formbindingdata) | formBindingData.FormBindingData对象,卡片要显示的数据。 | **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-form-formhost.md b/zh-cn/application-dev/reference/apis/js-apis-app-form-formHost.md similarity index 98% rename from zh-cn/application-dev/reference/apis/js-apis-app-form-formhost.md rename to zh-cn/application-dev/reference/apis/js-apis-app-form-formHost.md index 21017c8932..05e3f5da4d 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-form-formhost.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-form-formHost.md @@ -795,7 +795,7 @@ getAllFormsInfo(callback: AsyncCallback<Array<formInfo.FormInfo>>): | 参数名 | 类型 | 必填 | 说明 | | ------ | ------ | ---- | ------- | -| callback | AsyncCallback<Array<[FormInfo](js-apis-app-form-forminfo.md)>> | 是 | 回调函数。当获取设备上所有应用提供的卡片信息成功,err为undefined,data为查询到的卡片信息;否则为错误对象。 | +| callback | AsyncCallback<Array<[FormInfo](js-apis-app-form-formInfo.md)>> | 是 | 回调函数。当获取设备上所有应用提供的卡片信息成功,err为undefined,data为查询到的卡片信息;否则为错误对象。 | **示例:** @@ -827,7 +827,7 @@ getAllFormsInfo(): Promise<Array<formInfo.FormInfo>> | 类型 | 说明 | | :------------ | :---------------------------------- | -| Promise<Array<[FormInfo](js-apis-app-form-forminfo.md)>> | Promise对象,返回查询到的卡片信息。 | +| Promise<Array<[FormInfo](js-apis-app-form-formInfo.md)>> | Promise对象,返回查询到的卡片信息。 | **示例:** @@ -858,7 +858,7 @@ getFormsInfo(bundleName: string, callback: AsyncCallback<Array<formInfo.Fo | 参数名 | 类型 | 必填 | 说明 | | ------ | ------ | ---- | ------- | | bundleName | string | 是 | 要查询的应用程序包名称。 | -| callback | AsyncCallback<Array<[FormInfo](js-apis-app-form-forminfo.md)>> | 是 | 回调函数。当获取设备上指定应用程序提供的卡片信息成功,err为undefined,data为查询到的卡片信息;否则为错误对象。 | +| callback | AsyncCallback<Array<[FormInfo](js-apis-app-form-formInfo.md)>> | 是 | 回调函数。当获取设备上指定应用程序提供的卡片信息成功,err为undefined,data为查询到的卡片信息;否则为错误对象。 | **错误码:** @@ -899,7 +899,7 @@ getFormsInfo(bundleName: string, moduleName: string, callback: AsyncCallback< | ------ | ------ | ---- | ------- | | bundleName | string | 是 | 要查询的应用程序包名称。 | | moduleName | string | 是 | 要查询的模块名称。 | -| callback | AsyncCallback<Array<[FormInfo](js-apis-app-form-forminfo.md)>> | 是 | 回调函数。当获取设备上指定应用程序提供的卡片信息成功,err为undefined,data为查询到的卡片信息;否则为错误对象。 | +| callback | AsyncCallback<Array<[FormInfo](js-apis-app-form-formInfo.md)>> | 是 | 回调函数。当获取设备上指定应用程序提供的卡片信息成功,err为undefined,data为查询到的卡片信息;否则为错误对象。 | **错误码:** @@ -945,7 +945,7 @@ getFormsInfo(bundleName: string, moduleName?: string): Promise<Array<formI | 类型 | 说明 | | :------------ | :---------------------------------- | -| Promise<Array<[FormInfo](js-apis-app-form-forminfo.md)>> | Promise对象,返回查询到的卡片信息。 | +| Promise<Array<[FormInfo](js-apis-app-form-formInfo.md)>> | Promise对象,返回查询到的卡片信息。 | **错误码:** @@ -1054,7 +1054,7 @@ acquireFormState(want: Want, callback: AsyncCallback<formInfo.FormStateInfo&g | 参数名 | 类型 | 必填 | 说明 | | ------ | ------ | ---- | ------- | | want | [Want](js-apis-application-want.md) | 是 | 查询卡片状态时携带的want信息。 | -| callback | AsyncCallback<[FormStateInfo](js-apis-app-form-forminfo.md#formstateinfo)> | 是 | 回调函数。当获取卡片状态成功,err为undefined,data为获取到的卡片状态;否则为错误对象。 | +| callback | AsyncCallback<[FormStateInfo](js-apis-app-form-formInfo.md#formstateinfo)> | 是 | 回调函数。当获取卡片状态成功,err为undefined,data为获取到的卡片状态;否则为错误对象。 | **错误码:** @@ -1109,7 +1109,7 @@ acquireFormState(want: Want): Promise<formInfo.FormStateInfo> | 类型 | 说明 | | :------------ | :---------------------------------- | -| Promise<[FormStateInfo](js-apis-app-form-forminfo.md#formstateinfo)> | Promise对象,返回卡片状态。 | +| Promise<[FormStateInfo](js-apis-app-form-formInfo.md#formstateinfo)> | Promise对象,返回卡片状态。 | **错误码:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-form-forminfo.md b/zh-cn/application-dev/reference/apis/js-apis-app-form-formInfo.md similarity index 100% rename from zh-cn/application-dev/reference/apis/js-apis-app-form-forminfo.md rename to zh-cn/application-dev/reference/apis/js-apis-app-form-formInfo.md diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-form-formprovider.md b/zh-cn/application-dev/reference/apis/js-apis-app-form-formProvider.md similarity index 96% rename from zh-cn/application-dev/reference/apis/js-apis-app-form-formprovider.md rename to zh-cn/application-dev/reference/apis/js-apis-app-form-formProvider.md index 8a3149afde..af3636cc39 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-form-formprovider.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-form-formProvider.md @@ -107,7 +107,7 @@ updateForm(formId: string, formBindingData: formBindingData.FormBindingData,call | 参数名 | 类型 | 必填 | 说明 | | ------ | ---------------------------------------------------------------------- | ---- | ---------------- | | formId | string | 是 | 请求更新的卡片标识。 | -| formBindingData.FormBindingData | [FormBindingData](js-apis-app-form-formbindingdata.md#formbindingdata) | 是 | 用于更新的数据。 | +| formBindingData.FormBindingData | [FormBindingData](js-apis-app-form-formBindingData.md#formbindingdata) | 是 | 用于更新的数据。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | **错误码:** @@ -149,7 +149,7 @@ updateForm(formId: string, formBindingData: formBindingData.FormBindingData): Pr | 参数名 | 类型 | 必填 | 说明 | | ------ | ---------------------------------------------------------------------- | ---- | ---------------- | | formId | string | 是 | 请求更新的卡片标识。 | -| formBindingData.FormBindingData | [FormBindingData](js-apis-app-form-formbindingdata.md#formbindingdata) | 是 | 用于更新的数据。 | +| formBindingData.FormBindingData | [FormBindingData](js-apis-app-form-formBindingData.md#formbindingdata) | 是 | 用于更新的数据。 | **返回值:** @@ -193,7 +193,7 @@ getFormsInfo(callback: AsyncCallback<Array<formInfo.FormInfo>>): voi | 参数名 | 类型 | 必填 | 说明 | | ------ | ------ | ---- | ------- | -| callback | AsyncCallback<Array<[FormInfo](js-apis-app-form-forminfo.md)>> | 是 | 回调函数。返回查询到的卡片信息。 | +| callback | AsyncCallback<Array<[FormInfo](js-apis-app-form-formInfo.md)>> | 是 | 回调函数。返回查询到的卡片信息。 | **错误码:** @@ -230,8 +230,8 @@ getFormsInfo(filter: formInfo.FormInfoFilter, callback: AsyncCallback<Array&l | 参数名 | 类型 | 必填 | 说明 | | ------ | ------ | ---- | ------- | -| filter | [formInfo.FormInfoFilter](js-apis-app-form-forminfo.md#forminfofilter) | 是 | 卡片信息过滤器。 | -| callback | AsyncCallback<Array<[FormInfo](js-apis-app-form-forminfo.md)>> | 是 | 回调函数。返回查询到符合条件的卡片信息。 | +| filter | [formInfo.FormInfoFilter](js-apis-app-form-formInfo.md#forminfofilter) | 是 | 卡片信息过滤器。 | +| callback | AsyncCallback<Array<[FormInfo](js-apis-app-form-formInfo.md)>> | 是 | 回调函数。返回查询到符合条件的卡片信息。 | **错误码:** @@ -273,13 +273,13 @@ getFormsInfo(filter?: formInfo.FormInfoFilter): Promise<Array<formInfo.For | 参数名 | 类型 | 必填 | 说明 | | ------ | ------ | ---- | ------- | -| filter | [formInfo.FormInfoFilter](js-apis-app-form-forminfo.md#forminfofilter) | 否 | 卡片信息过滤器。 | +| filter | [formInfo.FormInfoFilter](js-apis-app-form-formInfo.md#forminfofilter) | 否 | 卡片信息过滤器。 | **返回值:** | 类型 | 说明 | | :------------ | :---------------------------------- | -| Promise<Array<[FormInfo](js-apis-app-form-forminfo.md)>> | Promise对象。返回查询到符合条件的卡片信息。 | +| Promise<Array<[FormInfo](js-apis-app-form-formInfo.md)>> | Promise对象。返回查询到符合条件的卡片信息。 | **错误码:** @@ -322,7 +322,7 @@ requestPublishForm(want: Want, formBindingData: formBindingData.FormBindingData, | 参数名 | 类型 | 必填 | 说明 | | ------ | ---------------------------------------------------------------------- | ---- | ---------------- | | want | [Want](js-apis-application-want.md) | 是 | 发布请求。需包含以下字段。
abilityName: 目标卡片ability
parameters:
"ohos.extra.param.key.form_dimension"
"ohos.extra.param.key.form_name"
"ohos.extra.param.key.module_name" | -| formBindingData.FormBindingData | [FormBindingData](js-apis-app-form-formbindingdata.md#formbindingdata) | 是 | 创建卡片的数据。 | +| formBindingData.FormBindingData | [FormBindingData](js-apis-app-form-formBindingData.md#formbindingdata) | 是 | 创建卡片的数据。 | | callback | AsyncCallback<string> | 是 | 回调函数。返回卡片标识。 | **错误码:** @@ -422,7 +422,7 @@ requestPublishForm(want: Want, formBindingData?: formBindingData.FormBindingData | 参数名 | 类型 | 必填 | 说明 | | --------------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | | want | [Want](js-apis-application-want.md) | 是 | 发布请求。需包含以下字段。
abilityName: 目标卡片ability
parameters:
"ohos.extra.param.key.form_dimension"
"ohos.extra.param.key.form_name"
"ohos.extra.param.key.module_name" | -| formBindingData.FormBindingData | [FormBindingData](js-apis-app-form-formbindingdata.md#formbindingdata) | 否 | 创建卡片的数据。 | +| formBindingData.FormBindingData | [FormBindingData](js-apis-app-form-formBindingData.md#formbindingdata) | 否 | 创建卡片的数据。 | **返回值:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-formBindingData.md b/zh-cn/application-dev/reference/apis/js-apis-application-formBindingData.md index cecc7bacab..f04d6d0862 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-formBindingData.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-formBindingData.md @@ -5,7 +5,7 @@ > **说明:** > > 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 -> 从API version 9 开始不再维护,建议使用[FormBindingData](js-apis-app-form-formbindingdata.md)替代。 +> 从API version 9 开始不再维护,建议使用[FormBindingData](js-apis-app-form-formBindingData.md)替代。 ## 导入模块 ```ts diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-formExtension.md b/zh-cn/application-dev/reference/apis/js-apis-application-formExtension.md index a3de47ace0..b1460ebbd7 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-formExtension.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-formExtension.md @@ -5,7 +5,7 @@ FormExtension模块提供了FormExtension卡片扩展相关接口。 > **说明:** > > 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 -> 从API version 9 开始不再维护,建议使用[FormExtensionAbility](js-apis-app-form-formextensionability.md)替代。 +> 从API version 9 开始不再维护,建议使用[FormExtensionAbility](js-apis-app-form-formExtensionAbility.md)替代。 > 本模块接口仅可在Stage模型下使用。 ## 导入模块 diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-formHost.md b/zh-cn/application-dev/reference/apis/js-apis-application-formHost.md index ad32683220..61a808f059 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-formHost.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-formHost.md @@ -5,7 +5,7 @@ FormHost模块提供了卡片使用方相关接口的能力,包括对使用方 > **说明:** > > 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 -> 从API version 9 开始不再维护,建议使用[FormHost](js-apis-app-form-formhost.md)替代。 +> 从API version 9 开始不再维护,建议使用[FormHost](js-apis-app-form-formHost.md)替代。 > 本模块接口均为系统接口。 ## 导入模块 diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-formInfo.md b/zh-cn/application-dev/reference/apis/js-apis-application-formInfo.md index 0b470aaacb..93cc8ae3e7 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-formInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-formInfo.md @@ -5,7 +5,7 @@ FormInfo模块提供对卡片的相关卡片信息和状态进行设置和查询 > **说明:** > > 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 -> 从API version 9 开始不再维护,建议使用[FormInfo](js-apis-app-form-forminfo.md)替代。 +> 从API version 9 开始不再维护,建议使用[FormInfo](js-apis-app-form-formInfo.md)替代。 ## 导入模块 diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-formProvider.md b/zh-cn/application-dev/reference/apis/js-apis-application-formProvider.md index 4f03e1d20c..789bfc7c47 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-formProvider.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-formProvider.md @@ -4,7 +4,7 @@ FormProvider模块提供了卡片提供方相关接口的能力,开发者在 > **说明:** > 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 -> 从API version 9 开始不再维护,建议使用[FormProvider](js-apis-app-form-formprovider.md)替代。 +> 从API version 9 开始不再维护,建议使用[FormProvider](js-apis-app-form-formProvider.md)替代。 ## 导入模块 diff --git a/zh-cn/application-dev/website.md b/zh-cn/application-dev/website.md index c5c5eb1ecc..08ee411d89 100644 --- a/zh-cn/application-dev/website.md +++ b/zh-cn/application-dev/website.md @@ -798,29 +798,32 @@ - FA模型 - [@ohos.ability.ability (Ability)](reference/apis/js-apis-ability-ability.md) - [@ohos.ability.featureAbility (FeatureAbility模块)](reference/apis/js-apis-ability-featureAbility.md) - - [@ohos.ability.particleAbility (particleAbility模块)](reference/apis/js-apis-ability-particleAbility.md) - - [dataAbilityHelper (DataAbilityHelper模块)](reference/apis/js-apis-inner-ability-dataAbilityHelper.md) - - [context (Context模块)](reference/apis/js-apis-inner-app-context.md) + - [@ohos.ability.particleAbility (ParticleAbility模块)](reference/apis/js-apis-ability-particleAbility.md) + - ability/[dataAbilityHelper (DataAbilityHelper模块)](reference/apis/js-apis-inner-ability-dataAbilityHelper.md) + - app/[context (Context模块)](reference/apis/js-apis-inner-app-context.md) - Stage模型 - - [@ohos.application.Ability (Ability)](reference/apis/js-apis-application-ability.md) - - [@ohos.application.AbilityConstant (AbilityConstant)](reference/apis/js-apis-application-abilityConstant.md) - - [@ohos.application.AbilityStage (AbilityStage)](reference/apis/js-apis-app-ability-abilityStage.md) - - [@ohos.application.abilityLifecycleCallback (AbilityLifecycleCallback)](reference/apis/js-apis-application-abilityLifecycleCallback.md) + - [@ohos.app.ability.Ability (Ability基类)](reference/apis/js-apis-app-ability-ability.md) + - [@ohos.app.ability.UIAbility (UIAbility)](reference/apis/js-apis-app-ability-uiAbility.md) + - [@ohos.app.ability.StartOptions (StartOptions)](reference/apis/js-apis-app-ability-startOptions.md) + - [@ohos.app.ability.AbilityConstant (AbilityConstant)](reference/apis/js-apis-app-ability-abilityConstant.md) + - [@ohos.app.ability.AbilityStage (AbilityStage)](reference/apis/js-apis-app-ability-abilityStage.md) + - [@ohos.app.ability.abilityLifecycleCallback (AbilityLifecycleCallback)](reference/apis/js-apis-app-ability-abilityLifecycleCallback.md) + - [@ohos.app.ability.EnvironmentCallback (EnvironmentCallback)](reference/apis/js-apis-app-ability-environmentCallback.md) + - [@ohos.app.ability.ExtensionAbility(扩展能力基类)](reference/apis/js-apis-app-ability-extensionAbility.md) + - [@ohos.app.ability.ServiceExtensionAbility (ServiceExtensionAbility)](reference/apis/js-apis-app-ability-serviceExtensionAbility.md) + - [@ohos.app.form.FormExtensionAbility(FormExtensionAbility)](reference/apis/js-apis-app-form-formExtensionAbility.md) - [@ohos.application.DataShareExtensionAbility (数据共享扩展能力)](reference/apis/js-apis-application-dataShareExtensionAbility.md) - - [@ohos.application.EnvironmentCallback (EnvironmentCallback)](reference/apis/js-apis-application-environmentCallback.md) - - [@ohos.application.FormExtension (FormExtension)](reference/apis/js-apis-app-form-formextensionability.md) - - [@ohos.application.ServiceExtensionAbility (ServiceExtensionAbility)](reference/apis/js-apis-app-ability-serviceExtensionAbility.md) - - [@ohos.application.StartOptions (StartOptions)](reference/apis/js-apis-application-startOptions.md) - [@ohos.application.StaticSubscriberExtensionAbility (StaticSubscriberExtensionAbility)](reference/apis/js-apis-application-staticSubscriberExtensionAbility.md) - [@ohos.application.WindowExtensionAbility (窗口扩展能力)](reference/apis/js-apis-application-windowExtensionAbility.md) - - [AbilityContext (AbilityContext)](reference/apis/js-apis-ability-context.md) - - [ApplicationContext (ApplicationContext)](reference/apis/js-apis-inner-application-applicationContext.md) - - [AbilityStageContext (AbilityStageContext)](reference/apis/js-apis-inner-application-abilityStageContext.md) - - [Context (Context)](reference/apis/js-apis-application-context.md) - - [ExtensionContext (ExtensionContext)](reference/apis/js-apis-inner-application-extensionContext.md) - - [FormExtensionContext (FormExtensionContext)](reference/apis/js-apis-inner-application-formExtensionContext.md) - - [PermissionRequestResult (PermissionRequestResult)](reference/apis/js-apis-inner-application-permissionRequestResult.md) - - [ServiceExtensionContext (ServiceExtensionContext)](reference/apis/js-apis-inner-application-serviceExtensionContext.md) + - [@ohos.app.ability.common(应用上下文Context)](reference/apis/js-apis-app-ability-common.md) + - application/[ApplicationContext (ApplicationContext)](reference/apis/js-apis-inner-application-applicationContext.md) + - application/[AbilityStageContext (AbilityStageContext)](reference/apis/js-apis-inner-application-abilityStageContext.md) + - application/[Context (Context)](reference/apis/js-apis-inner-application-context.md) + - application/[UIAbilityContext (UIAbilityContext)](reference/apis/js-apis-inner-application-uiAbilityContext.md) + - application/[ExtensionContext (ExtensionContext)](reference/apis/js-apis-inner-application-extensionContext.md) + - application/[FormExtensionContext (FormExtensionContext)](reference/apis/js-apis-inner-application-formExtensionContext.md) + - application/[ServiceExtensionContext (ServiceExtensionContext)](reference/apis/js-apis-inner-application-serviceExtensionContext.md) + - application/[PermissionRequestResult (PermissionRequestResult)](reference/apis/js-apis-inner-application-permissionRequestResult.md) - 通用 - [@ohos.ability.dataUriUtils (DataUriUtils模块)](reference/apis/js-apis-ability-dataUriUtils.md) - [@ohos.ability.errorCode (ErrorCode)](reference/apis/js-apis-ability-errorCode.md) -- GitLab