提交 2e79ee03 编写于 作者: G ge-yafang

update docs

Signed-off-by: Nge-yafang <geyafang@huawei.com>
上级 6e62ff72
...@@ -32,7 +32,7 @@ Registers the continuation management service and obtains a token. This API does ...@@ -32,7 +32,7 @@ Registers the continuation management service and obtains a token. This API does
**Error codes** **Error codes**
For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errcode-DistributedSchedule.md). For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errorcode-DistributedSchedule.md).
| ID| Error Message| | ID| Error Message|
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
...@@ -73,7 +73,7 @@ Registers the continuation management service and obtains a token. This API uses ...@@ -73,7 +73,7 @@ Registers the continuation management service and obtains a token. This API uses
**Error codes** **Error codes**
For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errcode-DistributedSchedule.md). For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errorcode-DistributedSchedule.md).
| ID| Error Message| | ID| Error Message|
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
...@@ -123,7 +123,7 @@ Registers the continuation management service and obtains a token. This API uses ...@@ -123,7 +123,7 @@ Registers the continuation management service and obtains a token. This API uses
**Error codes** **Error codes**
For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errcode-DistributedSchedule.md). For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errorcode-DistributedSchedule.md).
| ID| Error Message| | ID| Error Message|
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
...@@ -167,7 +167,7 @@ Registers the continuation management service and obtains a token. This API does ...@@ -167,7 +167,7 @@ Registers the continuation management service and obtains a token. This API does
**Error codes** **Error codes**
For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errcode-DistributedSchedule.md). For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errorcode-DistributedSchedule.md).
| ID| Error Message| | ID| Error Message|
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
...@@ -212,7 +212,7 @@ Registers the continuation management service and obtains a token. This API uses ...@@ -212,7 +212,7 @@ Registers the continuation management service and obtains a token. This API uses
**Error codes** **Error codes**
For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errcode-DistributedSchedule.md). For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errorcode-DistributedSchedule.md).
| ID| Error Message| | ID| Error Message|
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
...@@ -265,7 +265,7 @@ Registers the continuation management service and obtains a token. This API uses ...@@ -265,7 +265,7 @@ Registers the continuation management service and obtains a token. This API uses
**Error codes** **Error codes**
For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errcode-DistributedSchedule.md). For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errorcode-DistributedSchedule.md).
| ID| Error Message| | ID| Error Message|
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
...@@ -314,7 +314,7 @@ Subscribes to device connection events. This API uses an asynchronous callback t ...@@ -314,7 +314,7 @@ Subscribes to device connection events. This API uses an asynchronous callback t
**Error codes** **Error codes**
For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errcode-DistributedSchedule.md). For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errorcode-DistributedSchedule.md).
| ID| Error Message| | ID| Error Message|
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
...@@ -353,7 +353,7 @@ Subscribes to device disconnection events. This API uses an asynchronous callbac ...@@ -353,7 +353,7 @@ Subscribes to device disconnection events. This API uses an asynchronous callbac
**Error codes** **Error codes**
For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errcode-DistributedSchedule.md). For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errorcode-DistributedSchedule.md).
| ID| Error Message| | ID| Error Message|
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
...@@ -390,7 +390,7 @@ Unsubscribes from device connection events. This API uses an asynchronous callba ...@@ -390,7 +390,7 @@ Unsubscribes from device connection events. This API uses an asynchronous callba
**Error codes** **Error codes**
For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errcode-DistributedSchedule.md). For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errorcode-DistributedSchedule.md).
| ID| Error Message| | ID| Error Message|
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
...@@ -429,7 +429,7 @@ Unsubscribes from device disconnection events. This API uses an asynchronous cal ...@@ -429,7 +429,7 @@ Unsubscribes from device disconnection events. This API uses an asynchronous cal
**Error codes** **Error codes**
For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errcode-DistributedSchedule.md). For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errorcode-DistributedSchedule.md).
| ID| Error Message| | ID| Error Message|
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
...@@ -467,7 +467,7 @@ Subscribes to device connection events. This API uses an asynchronous callback t ...@@ -467,7 +467,7 @@ Subscribes to device connection events. This API uses an asynchronous callback t
**Error codes** **Error codes**
For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errcode-DistributedSchedule.md). For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errorcode-DistributedSchedule.md).
| ID| Error Message| | ID| Error Message|
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
...@@ -514,7 +514,7 @@ Subscribes to device disconnection events. This API uses an asynchronous callbac ...@@ -514,7 +514,7 @@ Subscribes to device disconnection events. This API uses an asynchronous callbac
**Error codes** **Error codes**
For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errcode-DistributedSchedule.md). For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errorcode-DistributedSchedule.md).
| ID| Error Message| | ID| Error Message|
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
...@@ -561,7 +561,7 @@ Unsubscribes from device connection events. ...@@ -561,7 +561,7 @@ Unsubscribes from device connection events.
**Error codes** **Error codes**
For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errcode-DistributedSchedule.md). For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errorcode-DistributedSchedule.md).
| ID| Error Message| | ID| Error Message|
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
...@@ -600,7 +600,7 @@ Unsubscribes from device disconnection events. ...@@ -600,7 +600,7 @@ Unsubscribes from device disconnection events.
**Error codes** **Error codes**
For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errcode-DistributedSchedule.md). For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errorcode-DistributedSchedule.md).
| ID| Error Message| | ID| Error Message|
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
...@@ -639,7 +639,7 @@ Starts the device selection module to show the list of available devices on the ...@@ -639,7 +639,7 @@ Starts the device selection module to show the list of available devices on the
**Error codes** **Error codes**
For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errcode-DistributedSchedule.md). For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errorcode-DistributedSchedule.md).
| ID| Error Message| | ID| Error Message|
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
...@@ -683,7 +683,7 @@ Starts the device selection module to show the list of available devices on the ...@@ -683,7 +683,7 @@ Starts the device selection module to show the list of available devices on the
**Error codes** **Error codes**
For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errcode-DistributedSchedule.md). For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errorcode-DistributedSchedule.md).
| ID| Error Message| | ID| Error Message|
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
...@@ -735,7 +735,7 @@ Starts the device selection module to show the list of available devices on the ...@@ -735,7 +735,7 @@ Starts the device selection module to show the list of available devices on the
**Error codes** **Error codes**
For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errcode-DistributedSchedule.md). For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errorcode-DistributedSchedule.md).
| ID| Error Message| | ID| Error Message|
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
...@@ -781,7 +781,7 @@ Starts the device selection module to show the list of available devices on the ...@@ -781,7 +781,7 @@ Starts the device selection module to show the list of available devices on the
**Error codes** **Error codes**
For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errcode-DistributedSchedule.md). For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errorcode-DistributedSchedule.md).
| ID| Error Message| | ID| Error Message|
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
...@@ -826,7 +826,7 @@ Starts the device selection module to show the list of available devices on the ...@@ -826,7 +826,7 @@ Starts the device selection module to show the list of available devices on the
**Error codes** **Error codes**
For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errcode-DistributedSchedule.md). For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errorcode-DistributedSchedule.md).
| ID| Error Message| | ID| Error Message|
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
...@@ -879,7 +879,7 @@ Starts the device selection module to show the list of available devices on the ...@@ -879,7 +879,7 @@ Starts the device selection module to show the list of available devices on the
**Error codes** **Error codes**
For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errcode-DistributedSchedule.md). For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errorcode-DistributedSchedule.md).
| ID| Error Message| | ID| Error Message|
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
...@@ -928,7 +928,7 @@ Instructs the device selection module to update the device connection state. Thi ...@@ -928,7 +928,7 @@ Instructs the device selection module to update the device connection state. Thi
**Error codes** **Error codes**
For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errcode-DistributedSchedule.md). For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errorcode-DistributedSchedule.md).
| ID| Error Message| | ID| Error Message|
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
...@@ -979,7 +979,7 @@ Instructs the device selection module to update the device connection state. Thi ...@@ -979,7 +979,7 @@ Instructs the device selection module to update the device connection state. Thi
**Error codes** **Error codes**
For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errcode-DistributedSchedule.md). For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errorcode-DistributedSchedule.md).
| ID| Error Message| | ID| Error Message|
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
...@@ -1025,7 +1025,7 @@ Instructs the device selection module to update the device connection state. Thi ...@@ -1025,7 +1025,7 @@ Instructs the device selection module to update the device connection state. Thi
**Error codes** **Error codes**
For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errcode-DistributedSchedule.md). For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errorcode-DistributedSchedule.md).
| ID| Error Message| | ID| Error Message|
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
...@@ -1077,7 +1077,7 @@ Instructs the device selection module to update the device connection state. Thi ...@@ -1077,7 +1077,7 @@ Instructs the device selection module to update the device connection state. Thi
**Error codes** **Error codes**
For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errcode-DistributedSchedule.md). For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errorcode-DistributedSchedule.md).
| ID| Error Message| | ID| Error Message|
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
...@@ -1123,7 +1123,7 @@ Deregisters the continuation management service. This API uses an asynchronous c ...@@ -1123,7 +1123,7 @@ Deregisters the continuation management service. This API uses an asynchronous c
**Error codes** **Error codes**
For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errcode-DistributedSchedule.md). For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errorcode-DistributedSchedule.md).
| ID| Error Message| | ID| Error Message|
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
...@@ -1168,7 +1168,7 @@ Deregisters the continuation management service. This API uses a promise to retu ...@@ -1168,7 +1168,7 @@ Deregisters the continuation management service. This API uses a promise to retu
**Error codes** **Error codes**
For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errcode-DistributedSchedule.md). For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errorcode-DistributedSchedule.md).
| ID| Error Message| | ID| Error Message|
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
...@@ -1208,7 +1208,7 @@ Deregisters the continuation management service. This API uses an asynchronous c ...@@ -1208,7 +1208,7 @@ Deregisters the continuation management service. This API uses an asynchronous c
**Error codes** **Error codes**
For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errcode-DistributedSchedule.md). For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errorcode-DistributedSchedule.md).
| ID| Error Message| | ID| Error Message|
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
...@@ -1257,7 +1257,7 @@ Deregisters the continuation management service. This API uses a promise to retu ...@@ -1257,7 +1257,7 @@ Deregisters the continuation management service. This API uses a promise to retu
**Error codes** **Error codes**
For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errcode-DistributedSchedule.md). For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errorcode-DistributedSchedule.md).
| ID| Error Message| | ID| Error Message|
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
......
...@@ -102,7 +102,7 @@ Starts screen hopping. This API uses an asynchronous callback to return the resu ...@@ -102,7 +102,7 @@ Starts screen hopping. This API uses an asynchronous callback to return the resu
**Error codes** **Error codes**
For details about the error codes, see [Screen Hopping Error Codes](../errorcodes/errorcodes-multimodalinput.md). For details about the error codes, see [Screen Hopping Error Codes](../errorcodes/errorcode-multimodalinput.md).
| ID| Error Message| | ID| Error Message|
| -------- | ---------------------------------------- | | -------- | ---------------------------------------- |
...@@ -150,7 +150,7 @@ Starts screen hopping. This API uses a promise to return the result. ...@@ -150,7 +150,7 @@ Starts screen hopping. This API uses a promise to return the result.
**Error codes** **Error codes**
For details about the error codes, see [Screen Hopping Error Codes](../errorcodes/errorcodes-multimodalinput.md). For details about the error codes, see [Screen Hopping Error Codes](../errorcodes/errorcode-multimodalinput.md).
| ID| Error Message| | ID| Error Message|
| -------- | ---------------------------------------- | | -------- | ---------------------------------------- |
......
...@@ -715,7 +715,7 @@ for (var value of searchParams.values()) { ...@@ -715,7 +715,7 @@ for (var value of searchParams.values()) {
### [Symbol.iterator]<sup>(deprecated)</sup> ### [Symbol.iterator]<sup>(deprecated)</sup>
> **NOTE** > **NOTE**
> >
> This API is deprecated since API version 9. You are advised to use [URLParams<sup>9+</sup>.[Symbol.iterator]<sup>9+</sup>](#symbol.iterator9) instead. > This API is deprecated since API version 9. You are advised to use [[Symbol.iterator]<sup>9+</sup>](#symboliterator9) instead.
[Symbol.iterator]\(): IterableIterator&lt;[string, string]&gt; [Symbol.iterator]\(): IterableIterator&lt;[string, string]&gt;
......
...@@ -2112,7 +2112,7 @@ Obtains a new iterator object that contains all key-value pairs in this object. ...@@ -2112,7 +2112,7 @@ Obtains a new iterator object that contains all key-value pairs in this object.
> **NOTE** > **NOTE**
> >
> This API is deprecated since API version 9. You are advised to use [Symbol.iterator9+](#symboliterator9) instead. > This API is deprecated since API version 9. You are advised to use [Symbol.iterator<sup>9+</sup>](#symboliterator9) instead.
[Symbol.iterator]\(): IterableIterator&lt;[K, V]&gt; [Symbol.iterator]\(): IterableIterator&lt;[K, V]&gt;
...@@ -2598,13 +2598,13 @@ Obtains the intersection of this **Scope** and the given **Scope**. ...@@ -2598,13 +2598,13 @@ Obtains the intersection of this **Scope** and the given **Scope**.
| Name| Type| Mandatory| Description| | Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| range | [Scope](#scope8) | Yes| **Scope** specified.| | range | [Scope](#scopedeprecated) | Yes| **Scope** specified.|
**Return value** **Return value**
| Type| Description| | Type| Description|
| -------- | -------- | | -------- | -------- |
| [Scope](#scope8) | Intersection of this **Scope** and the given **Scope**.| | [Scope](#scopedeprecated) | Intersection of this **Scope** and the given **Scope**.|
**Example** **Example**
...@@ -2641,7 +2641,7 @@ Obtains the intersection of this **Scope** and the given lower and upper limits. ...@@ -2641,7 +2641,7 @@ Obtains the intersection of this **Scope** and the given lower and upper limits.
| Type| Description| | Type| Description|
| -------- | -------- | | -------- | -------- |
| [Scope](#scope8) | Intersection of this **Scope** and the given lower and upper limits.| | [Scope](#scopedeprecated) | Intersection of this **Scope** and the given lower and upper limits.|
**Example** **Example**
```js ```js
...@@ -2728,7 +2728,7 @@ Obtains the union set of this **Scope** and the given lower and upper limits. ...@@ -2728,7 +2728,7 @@ Obtains the union set of this **Scope** and the given lower and upper limits.
| Type| Description| | Type| Description|
| -------- | -------- | | -------- | -------- |
| [Scope](#scope8) | Union set of this **Scope** and the given lower and upper limits.| | [Scope](#scopedeprecated) | Union set of this **Scope** and the given lower and upper limits.|
**Example** **Example**
...@@ -2757,13 +2757,13 @@ Obtains the union set of this **Scope** and the given **Scope**. ...@@ -2757,13 +2757,13 @@ Obtains the union set of this **Scope** and the given **Scope**.
| Name| Type| Mandatory| Description| | Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| range | [Scope](#scope8) | Yes| **Scope** specified.| | range | [Scope](#scopedeprecated) | Yes| **Scope** specified.|
**Return value** **Return value**
| Type| Description| | Type| Description|
| -------- | -------- | | -------- | -------- |
| [Scope](#scope8) | Union set of this **Scope** and the given **Scope**.| | [Scope](#scopedeprecated) | Union set of this **Scope** and the given **Scope**.|
**Example** **Example**
```js ```js
...@@ -2798,7 +2798,7 @@ Obtains the union set of this **Scope** and the given value. ...@@ -2798,7 +2798,7 @@ Obtains the union set of this **Scope** and the given value.
| Type| Description| | Type| Description|
| -------- | -------- | | -------- | -------- |
| [Scope](#scope8) | Union set of this **Scope** and the given value.| | [Scope](#scopedeprecated) | Union set of this **Scope** and the given value.|
**Example** **Example**
```js ```js
...@@ -2858,7 +2858,7 @@ Checks whether a range is within this **Scope**. ...@@ -2858,7 +2858,7 @@ Checks whether a range is within this **Scope**.
| Name| Type| Mandatory| Description| | Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| range | [Scope](#scope8) | Yes| **Scope** specified.| | range | [Scope](#scopedeprecated) | Yes| **Scope** specified.|
**Return value** **Return value**
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
| distro对象中的moduleType | 标识当前HAP的类型,包括两种类型:entry和feature。另外,如果表示HAR包类型,请设置为har | type | 标签变更。 | | distro对象中的moduleType | 标识当前HAP的类型,包括两种类型:entry和feature。另外,如果表示HAR包类型,请设置为har | type | 标签变更。 |
| distro对象中的installationFree | 标识当前HAP是否支持免安装特性 | installationFree | 标签变更。 | | distro对象中的installationFree | 标识当前HAP是否支持免安装特性 | installationFree | 标签变更。 |
| distro对象中的deliveryWithInstall | 标识当前HAP是否支持随应用安装 | deliveryWithInstall | 标签变更。 | | distro对象中的deliveryWithInstall | 标识当前HAP是否支持随应用安装 | deliveryWithInstall | 标签变更。 |
| metaData | 标识HAP的元信息 | metadata | 具体差异如[表2](#表2 FA模型metaData和Stage中metadata对比)。 | | metaData | 标识HAP的元信息 | metadata | 具体差异如[表2](#表2-fa模型metadata和stage中metadata对比)。 |
| abilities | 标识当前模块内的所有Ability | abilities | 具体差异如[表5](#表5 FA模型和Stage中abilities差异对比)。 | | abilities | 标识当前模块内的所有Ability | abilities | 具体差异如[表5](#表5-fa模型和stage中abilities差异对比)。 |
| js | 标识基于ArkUI框架开发的JS模块集合,其中的每个元素代表一个JS模块的信息 | pages | Stage模型在module标签下保留该对象中的pages,window配置与pages的下一级。 | | js | 标识基于ArkUI框架开发的JS模块集合,其中的每个元素代表一个JS模块的信息 | pages | Stage模型在module标签下保留该对象中的pages,window配置与pages的下一级。 |
| shortcuts | 标识应用的快捷方式信息 | shortcut_config.json文件 | 在开发视图的resources/base/profile下面定义配置文件shortcut_config.json。 | | shortcuts | 标识应用的快捷方式信息 | shortcut_config.json文件 | 在开发视图的resources/base/profile下面定义配置文件shortcut_config.json。 |
| reqPermissions | 标识应用运行时向系统申请的权限 | requestPermissions | 标签名称变更。 | | reqPermissions | 标识应用运行时向系统申请的权限 | requestPermissions | 标签名称变更。 |
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| parameters | 标识调用Ability时所有调用参数的元信息 | / | Stage模型不支持。 | | parameters | 标识调用Ability时所有调用参数的元信息 | / | Stage模型不支持。 |
| results | 标识Ability返回值的元信息 | / | Stage模型不支持。 | | results | 标识Ability返回值的元信息 | / | Stage模型不支持。 |
| customizeData | 该标签标识父级组件的自定义元信息,Parameters和results在application不可配 | metadata | 具体差异见[表3](#表3 FA模型metaData的customizeData和Stage中metadata对比)。 | | customizeData | 该标签标识父级组件的自定义元信息,Parameters和results在application不可配 | metadata | 具体差异见[表3](#表3-fa模型metadata的customizedata和stage中metadata对比)。 |
### 表3 FA模型metaData的customizeData和Stage中metadata对比 ### 表3 FA模型metaData的customizeData和Stage中metadata对比
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| name | 标识数据项的键名称。字符串最大长度为255字节 | name | 无。 | | name | 标识数据项的键名称。字符串最大长度为255字节 | name | 无。 |
| value | 标识数据项的值。字符串最大长度为255字节。 | value | 无。 | | value | 标识数据项的值。字符串最大长度为255字节。 | value | 无。 |
| extra | 标识当前custom数据的格式,取值为表示extra的资源值。 | resource | 标签变更。具体实例见[表4](#表4 FA模型metaData和Stage中metadata示例)。 | | extra | 标识当前custom数据的格式,取值为表示extra的资源值。 | resource | 标签变更。具体实例见[表4](#表4-fa模型metadata和stage中metadata示例)。 |
### 表4 FA模型metaData和Stage中metadata示例 ### 表4 FA模型metaData和Stage中metadata示例
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
| process | 运行应用程序或Ability的进程名称 | / | Stage模型不支持abilities中配置,在module标签下配置process | | process | 运行应用程序或Ability的进程名称 | / | Stage模型不支持abilities中配置,在module标签下配置process |
| uri | 标识Ability的统一资源标识符 | / | Stage模型不支持 | | uri | 标识Ability的统一资源标识符 | / | Stage模型不支持 |
| deviceCapability | 标识Ability运行时要求设备具有的能力,采用字符串数组的格式表示 | / | Stage模型不支持 | | deviceCapability | 标识Ability运行时要求设备具有的能力,采用字符串数组的格式表示 | / | Stage模型不支持 |
| metaData | 该标签标识ability的元信息。 | metadata | 具体差异如[表2](#表2 FA模型metaData和Stage中metadata对比) | | metaData | 该标签标识ability的元信息。 | metadata | 具体差异如[表2](#表2-fa模型metadata和stage中metadata对比) |
| type | 标识Ability的类型 | / | Stage模型不支持 | | type | 标识Ability的类型 | / | Stage模型不支持 |
| grantPermission | 指定是否可以向Ability内任何数据授予权限 | / | abilities内不支持; | | grantPermission | 指定是否可以向Ability内任何数据授予权限 | / | abilities内不支持; |
| readPermission | 标识读取Ability的数据所需的权限。该标签仅适用于data类型的Ability | / | abilities内不支持;在extensionAbilities标签中支持 | | readPermission | 标识读取Ability的数据所需的权限。该标签仅适用于data类型的Ability | / | abilities内不支持;在extensionAbilities标签中支持 |
......
{
"CurrentProjectSetting": null
}
\ No newline at end of file
{
"ExpandedNodes": [
""
],
"SelectedNode": "\\introduction.md",
"PreviewInSolutionExplorer": false
}
\ No newline at end of file
...@@ -790,7 +790,7 @@ console.log(params.toString()); ...@@ -790,7 +790,7 @@ console.log(params.toString());
> **说明:** > **说明:**
> >
> 从API version 7开始支持,从API version 9开始废弃,建议使用[parseURL<sup>9+</sup>](#parseURL9)替代。 > 从API version 7开始支持,从API version 9开始废弃,建议使用[parseURL<sup>9+</sup>](#parseurl9)替代。
constructor(url: string, base?: string | URL) constructor(url: string, base?: string | URL)
......
...@@ -2644,13 +2644,13 @@ intersect(range: Scope): Scope ...@@ -2644,13 +2644,13 @@ intersect(range: Scope): Scope
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| range | [Scope](#scope8) | 是 | 传入一个给定范围。 | | range | [Scope](#scopedeprecated) | 是 | 传入一个给定范围。 |
**返回值:** **返回值:**
| 类型 | 说明 | | 类型 | 说明 |
| -------- | -------- | | -------- | -------- |
| [Scope](#scope8) | 返回给定范围和当前范围的交集。 | | [Scope](#scopedeprecated) | 返回给定范围和当前范围的交集。 |
**示例:** **示例:**
...@@ -2687,7 +2687,7 @@ intersect(lowerObj:ScopeType,upperObj:ScopeType):Scope ...@@ -2687,7 +2687,7 @@ intersect(lowerObj:ScopeType,upperObj:ScopeType):Scope
| 类型 | 说明 | | 类型 | 说明 |
| -------- | -------- | | -------- | -------- |
| [Scope](#scope8) | 返回当前范围与给定下限和上限范围的交集。 | | [Scope](#scopedeprecated) | 返回当前范围与给定下限和上限范围的交集。 |
**示例:** **示例:**
...@@ -2777,7 +2777,7 @@ expand(lowerObj: ScopeType,upperObj: ScopeType): Scope ...@@ -2777,7 +2777,7 @@ expand(lowerObj: ScopeType,upperObj: ScopeType): Scope
| 类型 | 说明 | | 类型 | 说明 |
| -------- | -------- | | -------- | -------- |
| [Scope](#scope8) | 返回当前范围和给定下限和上限的并集。 | | [Scope](#scopedeprecated) | 返回当前范围和给定下限和上限的并集。 |
**示例:** **示例:**
...@@ -2806,13 +2806,13 @@ expand(range: Scope): Scope ...@@ -2806,13 +2806,13 @@ expand(range: Scope): Scope
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| range | [Scope](#scope8) | 是 | 传入一个给定范围。 | | range | [Scope](#scopedeprecated) | 是 | 传入一个给定范围。 |
**返回值:** **返回值:**
| 类型 | 说明 | | 类型 | 说明 |
| -------- | -------- | | -------- | -------- |
| [Scope](#scope8) | 返回包括当前范围和给定范围的并集。 | | [Scope](#scopedeprecated) | 返回包括当前范围和给定范围的并集。 |
**示例:** **示例:**
...@@ -2848,7 +2848,7 @@ expand(value: ScopeType): Scope ...@@ -2848,7 +2848,7 @@ expand(value: ScopeType): Scope
| 类型 | 说明 | | 类型 | 说明 |
| -------- | -------- | | -------- | -------- |
| [Scope](#scope8) | 返回包括当前范围和给定值的并集。 | | [Scope](#scopedeprecated) | 返回包括当前范围和给定值的并集。 |
**示例:** **示例:**
...@@ -2910,7 +2910,7 @@ contains(range: Scope): boolean ...@@ -2910,7 +2910,7 @@ contains(range: Scope): boolean
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| range | [Scope](#scope8) | 是 | 传入一个给定范围。 | | range | [Scope](#scopedeprecated) | 是 | 传入一个给定范围。 |
**返回值:** **返回值:**
......
...@@ -73,7 +73,7 @@ HarmonyAppProvision文件示例: ...@@ -73,7 +73,7 @@ HarmonyAppProvision文件示例:
### acls对象内部结构 ### acls对象内部结构
acls对象包含已授权的[ACL权限](accesstoken-overview.md)。需要指出的是,开发者仍然需要在应用包配置文件([config.json](../quick-start/package-structure.md))将acls权限信息填写到reqPermissions属性中。 acls对象包含已授权的[ACL权限](accesstoken-overview.md)。需要指出的是,开发者仍然需要在应用包配置文件([config.json](../quick-start/application-package-structure-fa.md))将acls权限信息填写到reqPermissions属性中。
表4 acls对象的内部结构 表4 acls对象的内部结构
| 属性名称 | 含义 | 数据类型 | 是否必选 | 是否可缺省 | | 属性名称 | 含义 | 数据类型 | 是否必选 | 是否可缺省 |
...@@ -81,7 +81,7 @@ acls对象包含已授权的[ACL权限](accesstoken-overview.md)。需要指出 ...@@ -81,7 +81,7 @@ acls对象包含已授权的[ACL权限](accesstoken-overview.md)。需要指出
| allowed-acls | 表示已授权的[acl权限](accesstoken-overview.md)列表。 | 字符串数组 | 可选 | 不可缺省 | | allowed-acls | 表示已授权的[acl权限](accesstoken-overview.md)列表。 | 字符串数组 | 可选 | 不可缺省 |
### permissions对象内部结构 ### permissions对象内部结构
permissions对象包含允许使用的受限敏感权限。不同于acls对象,permissions对象中的权限仅代表应用允许使用该敏感权限,权限最终由用户运行时授权。需要指出的是,开发者仍然需要在应用包配置文件([config.json](../quick-start/package-structure.md))将permissions权限信息填写到reqPermissions属性中。 permissions对象包含允许使用的受限敏感权限。不同于acls对象,permissions对象中的权限仅代表应用允许使用该敏感权限,权限最终由用户运行时授权。需要指出的是,开发者仍然需要在应用包配置文件([config.json](../quick-start/application-package-structure-fa.md))将permissions权限信息填写到reqPermissions属性中。
表5 permissions对象的内部结构 表5 permissions对象的内部结构
| 属性名称 | 含义 | 数据类型 | 是否必选 | 是否可缺省 | | 属性名称 | 含义 | 数据类型 | 是否必选 | 是否可缺省 |
......
...@@ -29,7 +29,7 @@ userIAM_userAuth模块提供了用户认证的相关方法,包括查询认证 ...@@ -29,7 +29,7 @@ userIAM_userAuth模块提供了用户认证的相关方法,包括查询认证
### 开发步骤 ### 开发步骤
1. 申请权限。调用[getVersion](../reference/apis/js-apis-useriam-userauth.md#useriam_userauthgetversion9)接口,需要在module.json5文件的requestPermissions对象中配置ohos.permission.ACCESS_BIOMETRIC权限。更多配置信息[应用包结构配置文件的说明](../quick-start/stage-structure.md) 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)
2. 调用[getVersion](../reference/apis/js-apis-useriam-userauth.md#useriam_userauthgetversion9)接口获取版本信息。 2. 调用[getVersion](../reference/apis/js-apis-useriam-userauth.md#useriam_userauthgetversion9)接口获取版本信息。
...@@ -49,7 +49,7 @@ userIAM_userAuth模块提供了用户认证的相关方法,包括查询认证 ...@@ -49,7 +49,7 @@ userIAM_userAuth模块提供了用户认证的相关方法,包括查询认证
### 开发步骤 ### 开发步骤
1. 申请权限。调用[getAvailableStatus](../reference/apis/js-apis-useriam-userauth.md#useriam_userauthgetavailablestatus9)接口,需要在module.json5文件的requestPermissions对象中配置ohos.permission.ACCESS_BIOMETRIC权限。更多配置信息[应用包结构配置文件的说明](../quick-start/stage-structure.md) 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)
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)接口查询当前的设备是否支持相应的认证能力。 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模块提供了用户认证的相关方法,包括查询认证 ...@@ -69,7 +69,7 @@ userIAM_userAuth模块提供了用户认证的相关方法,包括查询认证
### 开发步骤 ### 开发步骤
1. 申请权限。调用[start](../reference/apis/js-apis-useriam-userauth.md#start9)接口,需要在module.json5文件的requestPermissions对象中配置ohos.permission.ACCESS_BIOMETRIC权限。更多配置信息[应用包结构配置文件的说明](../quick-start/stage-structure.md) 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)
2. 指定challenge、[认证类型](../reference/apis/js-apis-useriam-userauth.md#userauthtype8)[认证等级](../reference/apis/js-apis-useriam-userauth.md#authtrustlevel8),获取认证对象。 2. 指定challenge、[认证类型](../reference/apis/js-apis-useriam-userauth.md#userauthtype8)[认证等级](../reference/apis/js-apis-useriam-userauth.md#authtrustlevel8),获取认证对象。
...@@ -131,7 +131,7 @@ userIAM_userAuth模块提供了用户认证的相关方法,包括查询认证 ...@@ -131,7 +131,7 @@ userIAM_userAuth模块提供了用户认证的相关方法,包括查询认证
### 开发步骤 ### 开发步骤
1. 申请权限。调用[start](../reference/apis/js-apis-useriam-userauth.md#start9)接口,需要在module.json5文件的requestPermissions对象中配置ohos.permission.ACCESS_BIOMETRIC权限。更多配置信息[应用包结构配置文件的说明](../quick-start/stage-structure.md) 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)
2. 指定challenge、[认证类型](../reference/apis/js-apis-useriam-userauth.md#userauthtype8)[认证等级](../reference/apis/js-apis-useriam-userauth.md#authtrustlevel8),获取认证对象。 2. 指定challenge、[认证类型](../reference/apis/js-apis-useriam-userauth.md#userauthtype8)[认证等级](../reference/apis/js-apis-useriam-userauth.md#authtrustlevel8),获取认证对象。
...@@ -197,7 +197,7 @@ userIAM_userAuth模块提供了用户认证的相关方法,包括查询认证 ...@@ -197,7 +197,7 @@ userIAM_userAuth模块提供了用户认证的相关方法,包括查询认证
### 开发步骤 ### 开发步骤
1. 申请权限。调用[cancel](../reference/apis/js-apis-useriam-userauth.md#cancel9)接口,需要在module.json5文件的requestPermissions对象中配置ohos.permission.ACCESS_BIOMETRIC权限。更多配置信息[应用包结构配置文件的说明](../quick-start/stage-structure.md) 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)
2. 指定challenge、[认证类型](../reference/apis/js-apis-useriam-userauth.md#userauthtype8)[认证等级](../reference/apis/js-apis-useriam-userauth.md#authtrustlevel8),获取认证对象。 2. 指定challenge、[认证类型](../reference/apis/js-apis-useriam-userauth.md#userauthtype8)[认证等级](../reference/apis/js-apis-useriam-userauth.md#authtrustlevel8),获取认证对象。
......
...@@ -292,7 +292,7 @@ class MainAbility extends Ability { ...@@ -292,7 +292,7 @@ class MainAbility extends Ability {
### 开发步骤 ### 开发步骤
1. 申请权限。 1. 申请权限。
创建`WindowType.TYPE_FLOAT`即悬浮窗类型的窗口,需要在`module.json5`文件的`requestPermissions`对象中配置`ohos.permission.SYSTEM_FLOAT_WINDOW`权限。更多配置信息详见[应用包结构配置文件的说明](../quick-start/stage-structure.md) 创建`WindowType.TYPE_FLOAT`即悬浮窗类型的窗口,需要在`module.json5`文件的`requestPermissions`对象中配置`ohos.permission.SYSTEM_FLOAT_WINDOW`权限。更多配置信息详见[Stage模型应用程序包结构](../quick-start/application-package-structure-stage.md)
> **说明:** > **说明:**
> 虽然悬浮窗具备始终在前台显示的能力,但如果创建悬浮窗的应用任务被系统回收,仍然会导致悬浮窗从界面移除。如果想要保持悬浮窗口始终在前台显示,请申请[长时任务](../task-management/background-task-overview.md)。 > 虽然悬浮窗具备始终在前台显示的能力,但如果创建悬浮窗的应用任务被系统回收,仍然会导致悬浮窗从界面移除。如果想要保持悬浮窗口始终在前台显示,请申请[长时任务](../task-management/background-task-overview.md)。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册