未验证 提交 f1bc044f 编写于 作者: O openharmony_ci 提交者: Gitee

!12206 CI断链修改+错误码文档命名规范修改

Merge pull request !12206 from zengyawen/master
......@@ -60,7 +60,7 @@ build() {
Ability配置中缺少startWindowIcon属性配置,需要在module.json5中abilities中配置startWindowIcon。
参考文档:[Stage模型应用程序包结构](../quick-start/application-package-structure-stage.md)
参考文档:[Stage模型应用程序包结构](../quick-start/module-configuration-file.md)
示例:
......@@ -95,7 +95,7 @@ Ability配置中缺少startWindowIcon属性配置,需要在module.json5中abil
## 如何在应用A中去获取应用B的Hap包的安装路径
适用于:OpenHarmony SDK 3..0以上版本, API9 Stage模型
适用于:OpenHarmony SDK 3.0以上版本, API9 Stage模型
首先需要申请系统权限,具体参看文档:[自动化签名](https://developer.harmonyos.com/cn/docs/documentation/doc-guides/ohos-auto-configuring-signature-information-0000001271659465)。导入bundle模块,通过调用bundle.getApplicationInfo()接口,通过包名获取应用信息。然后通过application.moduleSourceDirs获取应用存储路径。
......
......@@ -34,7 +34,7 @@ for(let cameraIndex = 0; cameraIndex < this.cameraArray.length; cameraIndex++) {
break
}
}
cameraInput = await this.cameraManager.createCameraInput(cameraId)熊文帅
cameraInput = await this.cameraManager.createCameraInput(cameraId)
```
## 如何进行图片剪切
......
......@@ -32,7 +32,7 @@ deleteForm(formId: string, callback: AsyncCallback&lt;void&gt;): void
**错误码:**
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16501001 | The ID of the form to be operated does not exist. |
......@@ -81,7 +81,7 @@ deleteForm(formId: string): Promise&lt;void&gt;
**错误码:**
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16501001 | The ID of the form to be operated does not exist. |
......@@ -121,7 +121,7 @@ releaseForm(formId: string, callback: AsyncCallback&lt;void&gt;): void
**错误码:**
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16501001 | The ID of the form to be operated does not exist. |
......@@ -162,7 +162,7 @@ releaseForm(formId: string, isReleaseCache: boolean, callback: AsyncCallback&lt;
**错误码:**
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16501001 | The ID of the form to be operated does not exist. |
......@@ -208,7 +208,7 @@ releaseForm(formId: string, isReleaseCache?: boolean): Promise&lt;void&gt;
**错误码:**
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16501001 | The ID of the form to be operated does not exist. |
......@@ -248,7 +248,7 @@ requestForm(formId: string, callback: AsyncCallback&lt;void&gt;): void
**错误码:**
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16501001 | The ID of the form to be operated does not exist. |
......@@ -293,7 +293,7 @@ requestForm(formId: string): Promise&lt;void&gt;
**错误码:**
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16501001 | The ID of the form to be operated does not exist. |
......@@ -334,7 +334,7 @@ castTempForm(formId: string, callback: AsyncCallback&lt;void&gt;): void
**错误码:**
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16501001 | The ID of the form to be operated does not exist. |
......@@ -379,7 +379,7 @@ castTempForm(formId: string): Promise&lt;void&gt;
**错误码:**
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16501001 | The ID of the form to be operated does not exist. |
......@@ -419,7 +419,7 @@ notifyVisibleForms(formIds: Array&lt;string&gt;, callback: AsyncCallback&lt;void
**错误码:**
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16501000 | A functional error occurred. |
......@@ -463,7 +463,7 @@ notifyVisibleForms(formIds: Array&lt;string&gt;): Promise&lt;void&gt;
**错误码:**
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16501000 | A functional error occurred. |
......@@ -502,7 +502,7 @@ notifyInvisibleForms(formIds: Array&lt;string&gt;, callback: AsyncCallback&lt;vo
**错误码:**
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16501000 | A functional error occurred. |
......@@ -546,7 +546,7 @@ notifyInvisibleForms(formIds: Array&lt;string&gt;): Promise&lt;void&gt;
**错误码:**
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16501000 | A functional error occurred. |
......@@ -585,7 +585,7 @@ enableFormsUpdate(formIds: Array&lt;string&gt;, callback: AsyncCallback&lt;void&
**错误码:**
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16501000 | A functional error occurred. |
......@@ -630,7 +630,7 @@ enableFormsUpdate(formIds: Array&lt;string&gt;): Promise&lt;void&gt;
**错误码:**
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16501000 | A functional error occurred. |
......@@ -670,7 +670,7 @@ disableFormsUpdate(formIds: Array&lt;string&gt;, callback: AsyncCallback&lt;void
**错误码:**
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16501000 | A functional error occurred. |
......@@ -715,7 +715,7 @@ disableFormsUpdate(formIds: Array&lt;string&gt;): Promise&lt;void&gt;
**错误码:**
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16501000 | A functional error occurred. |
......@@ -875,7 +875,7 @@ getFormsInfo(bundleName: string, callback: AsyncCallback&lt;Array&lt;formInfo.Fo
**错误码:**
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16500100 | Failed to obtain configuration information. |
......@@ -916,7 +916,7 @@ getFormsInfo(bundleName: string, moduleName: string, callback: AsyncCallback&lt;
**错误码:**
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16500100 | Failed to obtain configuration information. |
......@@ -962,7 +962,7 @@ getFormsInfo(bundleName: string, moduleName?: string): Promise&lt;Array&lt;formI
**错误码:**
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16500100 | Failed to obtain configuration information. |
......@@ -1071,7 +1071,7 @@ acquireFormState(want: Want, callback: AsyncCallback&lt;formInfo.FormStateInfo&g
**错误码:**
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16501000 | A functional error occurred. |
......@@ -1126,7 +1126,7 @@ acquireFormState(want: Want): Promise&lt;formInfo.FormStateInfo&gt;
**错误码:**
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16501000 | A functional error occurred. |
......@@ -1223,7 +1223,7 @@ notifyFormsVisible(formIds: Array&lt;string&gt;, isVisible: boolean, callback: A
**错误码:**
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16501003 | The form can not be operated by the current application. |
......@@ -1268,7 +1268,7 @@ notifyFormsVisible(formIds: Array&lt;string&gt;, isVisible: boolean): Promise&lt
**错误码:**
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16501003 | The form can not be operated by the current application. |
......@@ -1308,7 +1308,7 @@ notifyFormsEnableUpdate(formIds: Array&lt;string&gt;, isEnableUpdate: boolean, c
**错误码:**
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16501003 | The form can not be operated by the current application. |
......@@ -1353,7 +1353,7 @@ notifyFormsEnableUpdate(formIds: Array&lt;string&gt;, isEnableUpdate: boolean):
**错误码:**
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16501003 | The form can not be operated by the current application. |
......@@ -1392,7 +1392,7 @@ shareForm(formId: string, deviceId: string, callback: AsyncCallback&lt;void&gt;)
**错误码:**
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16500100 | Failed to obtain configuration information. |
......@@ -1440,7 +1440,7 @@ shareForm(formId: string, deviceId: string): Promise&lt;void&gt;
**错误码:**
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16500100 | Failed to obtain configuration information. |
......
......@@ -27,7 +27,7 @@ setFormNextRefreshTime(formId: string, minute: number, callback: AsyncCallback&l
| minute | number | 是 | 指定多久之后更新,单位分钟,大于等于5。 |
| callback | AsyncCallback&lt;void&gt; | 是 | 回调函数。 |
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16500100 | Failed to obtain configuration information. |
......@@ -75,7 +75,7 @@ setFormNextRefreshTime(formId: string, minute: number): Promise&lt;void&gt;
**错误码:**
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16500100 | Failed to obtain configuration information. |
......@@ -116,7 +116,7 @@ updateForm(formId: string, formBindingData: formBindingData.FormBindingData,call
**错误码:**
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16501001 | The ID of the form to be operated does not exist. |
......@@ -163,7 +163,7 @@ updateForm(formId: string, formBindingData: formBindingData.FormBindingData): Pr
**错误码:**
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16501001 | The ID of the form to be operated does not exist. |
......@@ -201,7 +201,7 @@ getFormsInfo(callback: AsyncCallback&lt;Array&lt;formInfo.FormInfo&gt;&gt;): voi
**错误码:**
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16500100 | Failed to obtain configuration information. |
......@@ -239,7 +239,7 @@ getFormsInfo(filter: formInfo.FormInfoFilter, callback: AsyncCallback&lt;Array&l
**错误码:**
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16500100 | Failed to obtain configuration information. |
......@@ -287,7 +287,7 @@ getFormsInfo(filter?: formInfo.FormInfoFilter): Promise&lt;Array&lt;formInfo.For
**错误码:**
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16500100 | Failed to obtain configuration information. |
......@@ -329,7 +329,7 @@ requestPublishForm(want: Want, formBindingData: formBindingData.FormBindingData,
| formBindingData | [FormBindingData](js-apis-formbindingdata.md#formbindingdata) | 是 | 创建卡片的数据。 |
| callback | AsyncCallback&lt;string&gt; | 是 | 回调函数。返回卡片标识。 |
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16501000 | A functional error occurred. |
......@@ -377,7 +377,7 @@ requestPublishForm(want: Want, callback: AsyncCallback&lt;string&gt;): void
| want | [Want](js-apis-application-Want.md) | 是 | 发布请求。需包含以下字段。<br>abilityName: 目标卡片ability<br>parameters:<br>"ohos.extra.param.key.form_dimension"<br>"ohos.extra.param.key.form_name"<br>"ohos.extra.param.key.module_name" |
| callback | AsyncCallback&lt;string&gt; | 是 | 回调函数。返回卡片标识。 |
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16501000 | A functional error occurred. |
......@@ -430,7 +430,7 @@ requestPublishForm(want: Want, formBindingData?: formBindingData.FormBindingData
| :------------ | :---------------------------------- |
| Promise&lt;string&gt; | Promise对象。返回卡片标识。 |
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)
以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 16501000 | A functional error occurred. |
......
......@@ -5,7 +5,7 @@ FormError模块提供获取卡片错误码的能力。
> **说明:**
>
> 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
> 从API version 9 开始不再维护,建议使用[Form错误码](../errorcodes/errcode-form.md)替代。
> 从API version 9 开始不再维护,建议使用[Form错误码](../errorcodes/errorcode-form.md)替代。
## 导入模块
......
......@@ -4,6 +4,7 @@
- Ability框架
- [元能力子系统错误码](errorcode-ability.md)
- [DistributedSchedule错误码](errorcode-DistributedSchedule.md)
- [卡片错误码](errorcode-form.md)
- 包管理
- [包管理子系统通用错误码](errorcode-bundle.md)
- [zlib子系统错误码](errorcode-zlib.md)
......
......@@ -2,7 +2,7 @@
SysCap,全称SystemCapability,即系统能力,指操作系统中每一个相对独立的特性。
开发者使用某个接口进行开发前,建议先阅读[SysCap使用指南](../quick-start/syscap.md),了解Syscap的定义和使用指导。再结合下文中的表格判断具体能力集是否支持某个设备,提高开发效率。
开发者使用某个接口进行开发前,建议先阅读[SysCap使用指南](syscap.md),了解Syscap的定义和使用指导。再结合下文中的表格判断具体能力集是否支持某个设备,提高开发效率。
## SystemCapability.ArkUI.ArkUI.Full
......
......@@ -26,9 +26,9 @@
## 权限申请声明
应用需要在工程配置文件中,对需要的权限逐个声明,没有在配置文件中声明的权限,应用将无法获得授权。Ability框架提供了两种模型,分别为FA模型和Stage模型,更多信息可以参考[Ability框架概述](../ability/ability-brief.md)
应用需要在工程配置文件中,对需要的权限逐个声明,没有在配置文件中声明的权限,应用将无法获得授权。OpenHarmony提供了两种应用模型,分别为FA模型和Stage模型,更多信息可以参考[应用模型解读](../application-models/application-model-description.md)
不同的Ability框架模型的应用包结构不同,所使用的配置文件不同,请开发者在申请权限时注意区分。
不同的应用模型的应用包结构不同,所使用的配置文件不同,请开发者在申请权限时注意区分。
配置文件标签说明如下表。
......
......@@ -73,7 +73,7 @@ HarmonyAppProvision文件示例:
### acls对象内部结构
acls对象包含已授权的[ACL权限](accesstoken-overview.md)。需要指出的是,开发者仍然需要在应用包配置文件([config.json](../quick-start/application-package-structure-fa.md)将acls权限信息填写到reqPermissions属性中。
acls对象包含已授权的[ACL权限](accesstoken-overview.md)。需要指出的是,开发者仍然需要在[应用包配置文件](../quick-start/module-configuration-file.md#requestpermissions标签)将acls权限信息填写到reqPermissions属性中。
表4 acls对象的内部结构
| 属性名称 | 含义 | 数据类型 | 是否必选 | 是否可缺省 |
......@@ -81,7 +81,7 @@ acls对象包含已授权的[ACL权限](accesstoken-overview.md)。需要指出
| allowed-acls | 表示已授权的[acl权限](accesstoken-overview.md)列表。 | 字符串数组 | 可选 | 不可缺省 |
### permissions对象内部结构
permissions对象包含允许使用的受限敏感权限。不同于acls对象,permissions对象中的权限仅代表应用允许使用该敏感权限,权限最终由用户运行时授权。需要指出的是,开发者仍然需要在应用包配置文件([config.json](../quick-start/application-package-structure-fa.md)将permissions权限信息填写到reqPermissions属性中。
permissions对象包含允许使用的受限敏感权限。不同于acls对象,permissions对象中的权限仅代表应用允许使用该敏感权限,权限最终由用户运行时授权。需要指出的是,开发者仍然需要在[应用包配置文件](../quick-start/module-configuration-file.md#requestpermissions标签)将permissions权限信息填写到reqPermissions属性中。
表5 permissions对象的内部结构
| 属性名称 | 含义 | 数据类型 | 是否必选 | 是否可缺省 |
......
......@@ -29,7 +29,7 @@ userIAM_userAuth模块提供了用户认证的相关方法,包括查询认证
### 开发步骤
1. 申请权限。调用[getVersion](../reference/apis/js-apis-useriam-userauth.md#useriam_userauthgetversion9)接口,需要在module.json5文件的requestPermissions对象中配置ohos.permission.ACCESS_BIOMETRIC权限。更多配置信息[Stage模型应用程序包结构](../quick-start/application-package-structure-stage.md)
1. 申请权限。调用[getVersion](../reference/apis/js-apis-useriam-userauth.md#useriam_userauthgetversion9)接口,需要在module.json5文件的requestPermissions对象中配置ohos.permission.ACCESS_BIOMETRIC权限。更多配置信息请参考[Stage模型应用程序包结构](../quick-start/module-configuration-file.md)
2. 调用[getVersion](../reference/apis/js-apis-useriam-userauth.md#useriam_userauthgetversion9)接口获取版本信息。
......@@ -49,7 +49,7 @@ userIAM_userAuth模块提供了用户认证的相关方法,包括查询认证
### 开发步骤
1. 申请权限。调用[getAvailableStatus](../reference/apis/js-apis-useriam-userauth.md#useriam_userauthgetavailablestatus9)接口,需要在module.json5文件的requestPermissions对象中配置ohos.permission.ACCESS_BIOMETRIC权限。更多配置信息[Stage模型应用程序包结构](../quick-start/application-package-structure-stage.md)
1. 申请权限。调用[getAvailableStatus](../reference/apis/js-apis-useriam-userauth.md#useriam_userauthgetavailablestatus9)接口,需要在module.json5文件的requestPermissions对象中配置ohos.permission.ACCESS_BIOMETRIC权限。更多配置信息请参考[Stage模型应用程序包结构](../quick-start/module-configuration-file.md)
2. 指定[认证类型](../reference/apis/js-apis-useriam-userauth.md#userauthtype8)[认证等级](../reference/apis/js-apis-useriam-userauth.md#authtrustlevel8),调用[getAvailableStatus](../reference/apis/js-apis-useriam-userauth.md#useriam_userauthgetavailablestatus9)接口查询当前的设备是否支持相应的认证能力。
......@@ -69,7 +69,7 @@ userIAM_userAuth模块提供了用户认证的相关方法,包括查询认证
### 开发步骤
1. 申请权限。调用[start](../reference/apis/js-apis-useriam-userauth.md#start9)接口,需要在module.json5文件的requestPermissions对象中配置ohos.permission.ACCESS_BIOMETRIC权限。更多配置信息[Stage模型应用程序包结构](../quick-start/application-package-structure-stage.md)
1. 申请权限。调用[start](../reference/apis/js-apis-useriam-userauth.md#start9)接口,需要在module.json5文件的requestPermissions对象中配置ohos.permission.ACCESS_BIOMETRIC权限。更多配置信息请参考[Stage模型应用程序包结构](../quick-start/module-configuration-file.md)
2. 指定challenge、[认证类型](../reference/apis/js-apis-useriam-userauth.md#userauthtype8)[认证等级](../reference/apis/js-apis-useriam-userauth.md#authtrustlevel8),获取认证对象。
......@@ -131,7 +131,7 @@ userIAM_userAuth模块提供了用户认证的相关方法,包括查询认证
### 开发步骤
1. 申请权限。调用[start](../reference/apis/js-apis-useriam-userauth.md#start9)接口,需要在module.json5文件的requestPermissions对象中配置ohos.permission.ACCESS_BIOMETRIC权限。更多配置信息[Stage模型应用程序包结构](../quick-start/application-package-structure-stage.md)
1. 申请权限。调用[start](../reference/apis/js-apis-useriam-userauth.md#start9)接口,需要在module.json5文件的requestPermissions对象中配置ohos.permission.ACCESS_BIOMETRIC权限。更多配置信息请参考[Stage模型应用程序包结构](../quick-start/module-configuration-file.md)
2. 指定challenge、[认证类型](../reference/apis/js-apis-useriam-userauth.md#userauthtype8)[认证等级](../reference/apis/js-apis-useriam-userauth.md#authtrustlevel8),获取认证对象。
......@@ -197,7 +197,7 @@ userIAM_userAuth模块提供了用户认证的相关方法,包括查询认证
### 开发步骤
1. 申请权限。调用[cancel](../reference/apis/js-apis-useriam-userauth.md#cancel9)接口,需要在module.json5文件的requestPermissions对象中配置ohos.permission.ACCESS_BIOMETRIC权限。更多配置信息[Stage模型应用程序包结构](../quick-start/application-package-structure-stage.md)
1. 申请权限。调用[cancel](../reference/apis/js-apis-useriam-userauth.md#cancel9)接口,需要在module.json5文件的requestPermissions对象中配置ohos.permission.ACCESS_BIOMETRIC权限。更多配置信息请参考[Stage模型应用程序包结构](../quick-start/module-configuration-file.md)
2. 指定challenge、[认证类型](../reference/apis/js-apis-useriam-userauth.md#userauthtype8)[认证等级](../reference/apis/js-apis-useriam-userauth.md#authtrustlevel8),获取认证对象。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册