提交 fbafe89f 编写于 作者: Y yuwenze

review

Signed-off-by: Nyuwenze <yuaqiang1@huawei.com>
Change-Id: I8e335bf6ba2cf302771fc11aeb77241ca6974db3
上级 28f2d6d5
...@@ -52,11 +52,11 @@ let connectOptions: common.ConnectOptions; ...@@ -52,11 +52,11 @@ let connectOptions: common.ConnectOptions;
## AreaMode ## AreaMode
访问的文件分区,每个文件分区有对应自己的内容 数据加密等级的枚举
**系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core **系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core
| 名称 | 值 | 说明 | | 名称 | 值 | 说明 |
| --------------- | ---- | --------------- | | --------------- | ---- | --------------- |
| EL1 | 0 | 设备级加密区。 | | EL1 | 0 | 设备级加密区,设备开机后可访问的数据区。 |
| EL2 | 1 | 用户凭据加密区。默认为EL2。 | | EL2 | 1 | 用户级加密区,设备开机,首次输入密码后才能够访问的数据区。 |
\ No newline at end of file \ No newline at end of file
...@@ -23,7 +23,7 @@ on(type: "error", observer: ErrorObserver): number; ...@@ -23,7 +23,7 @@ on(type: "error", observer: ErrorObserver): number;
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| type | string | 是 | 调用接口类型 | | type | string | 是 | 填写"error",表示错误观察器。 |
| observer | [ErrorObserver](./js-apis-inner-application-errorObserver.md) | 是 | 返回观察者的数字代码。 | | observer | [ErrorObserver](./js-apis-inner-application-errorObserver.md) | 是 | 返回观察者的数字代码。 |
**示例:** **示例:**
...@@ -53,7 +53,7 @@ off(type: "error", observerId: number, callback: AsyncCallback\<void>): void; ...@@ -53,7 +53,7 @@ off(type: "error", observerId: number, callback: AsyncCallback\<void>): void;
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| type | string | 是 | 调用接口类型 | | type | string | 是 | 填写"error",表示错误观察器。 |
| observerId | number | 是 | 返回观察者的数字代码。 | | observerId | number | 是 | 返回观察者的数字代码。 |
| callback | AsyncCallback\<void> | 是 | 表示指定的回调方法。 | | callback | AsyncCallback\<void> | 是 | 表示指定的回调方法。 |
...@@ -86,7 +86,7 @@ off(type: "error", observerId: number): Promise\<void>; ...@@ -86,7 +86,7 @@ off(type: "error", observerId: number): Promise\<void>;
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| type | string | 是 | 调用接口类型 | | type | string | 是 | 填写"error",表示错误观察器。 |
| observerId | number | 是 | 返回观察者的数字代码。 | | observerId | number | 是 | 返回观察者的数字代码。 |
**返回值:** **返回值:**
......
# @ohos.app.ability.ExtensionAbility (扩展能力基类) # @ohos.app.ability.ExtensionAbility (扩展能力基类)
ExtensionAbility是特定场景扩展能力的基类,提供系统配置更新回调和系统内存调整回调。 ExtensionAbility是特定场景扩展能力的基类,继承自[Ability](js-apis-app-ability-ability.md),未新增属性和方法
> **说明:** > **说明:**
> >
......
...@@ -108,7 +108,7 @@ Extension生命周期回调,如果是startAbility拉起的服务,会在onCre ...@@ -108,7 +108,7 @@ Extension生命周期回调,如果是startAbility拉起的服务,会在onCre
onConnect(want: Want): rpc.RemoteObject; onConnect(want: Want): rpc.RemoteObject;
Extension生命周期回调,如果是connectAbility拉起的服务,会在onCreate之后回调。返回一个RemoteObject对象,用于和客户端进行通信。 Extension生命周期回调,如果是connectAbility拉起的服务,会在onCreate之后回调。返回一个RemoteObject对象,用于客户端和服务端进行通信。
**系统能力**:SystemCapability.Ability.AbilityRuntime.Core **系统能力**:SystemCapability.Ability.AbilityRuntime.Core
...@@ -124,7 +124,7 @@ Extension生命周期回调,如果是connectAbility拉起的服务,会在onC ...@@ -124,7 +124,7 @@ Extension生命周期回调,如果是connectAbility拉起的服务,会在onC
| 类型 | 说明 | | 类型 | 说明 |
| -------- | -------- | | -------- | -------- |
| rpc.RemoteObject | 一个RemoteObject对象,用于和客户端进行通信。 | | rpc.RemoteObject | 一个RemoteObject对象,用于客户端和服务端进行通信。 |
**示例:** **示例:**
...@@ -150,7 +150,7 @@ Extension生命周期回调,如果是connectAbility拉起的服务,会在onC ...@@ -150,7 +150,7 @@ Extension生命周期回调,如果是connectAbility拉起的服务,会在onC
onDisconnect(want: Want): void; onDisconnect(want: Want): void;
Extension的生命周期,断开服务连接时回调。 Extension的生命周期回调,客户端执行断开连接服务时回调。
**系统能力**:SystemCapability.Ability.AbilityRuntime.Core **系统能力**:SystemCapability.Ability.AbilityRuntime.Core
...@@ -176,7 +176,7 @@ Extension的生命周期,断开服务连接时回调。 ...@@ -176,7 +176,7 @@ Extension的生命周期,断开服务连接时回调。
onReconnect(want: Want): void; onReconnect(want: Want): void;
当新客户端在所有以前的客户端连接之后尝试连接到服务扩展时调用 Extension的生命周期回调,当所有以前的客户端都断开连接之后,新客户端尝试连接到服务时调用。预留能力,当前暂未支持。
**系统能力**:SystemCapability.Ability.AbilityRuntime.Core **系统能力**:SystemCapability.Ability.AbilityRuntime.Core
......
...@@ -21,4 +21,4 @@ import StartOptions from '@ohos.app.ability.StartOptions'; ...@@ -21,4 +21,4 @@ import StartOptions from '@ohos.app.ability.StartOptions';
| 名称 | 类型 | 必填 | 说明 | | 名称 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| [windowMode](js-apis-application-abilityConstant.md#abilityconstantwindowmode) | number | 否 | 窗口模式。 | | [windowMode](js-apis-application-abilityConstant.md#abilityconstantwindowmode) | number | 否 | 窗口模式。 |
| displayId | number | 否 | 显示ID。 | | displayId | number | 否 | 屏幕ID。默认是0,表示当前屏幕。 |
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册