Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
97fbc1bb
D
Docs
项目概览
OpenHarmony
/
Docs
大约 1 年 前同步成功
通知
159
Star
292
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
97fbc1bb
编写于
12月 21, 2022
作者:
O
openharmony_ci
提交者:
Gitee
12月 21, 2022
浏览文件
操作
浏览文件
下载
差异文件
!12700 review
Merge pull request !12700 from 于文泽/review
上级
4ace1f3d
fbafe89f
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
12 addition
and
12 deletion
+12
-12
zh-cn/application-dev/reference/apis/js-apis-app-ability-common.md
...lication-dev/reference/apis/js-apis-app-ability-common.md
+3
-3
zh-cn/application-dev/reference/apis/js-apis-app-ability-errorManager.md
...on-dev/reference/apis/js-apis-app-ability-errorManager.md
+3
-3
zh-cn/application-dev/reference/apis/js-apis-app-ability-extensionAbility.md
...ev/reference/apis/js-apis-app-ability-extensionAbility.md
+1
-1
zh-cn/application-dev/reference/apis/js-apis-app-ability-serviceExtensionAbility.md
...rence/apis/js-apis-app-ability-serviceExtensionAbility.md
+4
-4
zh-cn/application-dev/reference/apis/js-apis-app-ability-startOptions.md
...on-dev/reference/apis/js-apis-app-ability-startOptions.md
+1
-1
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-app-ability-common.md
浏览文件 @
97fbc1bb
...
@@ -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
zh-cn/application-dev/reference/apis/js-apis-app-ability-errorManager.md
浏览文件 @
97fbc1bb
...
@@ -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 | 是 | 返回观察者的数字代码。 |
**返回值:**
**返回值:**
...
...
zh-cn/application-dev/reference/apis/js-apis-app-ability-extensionAbility.md
浏览文件 @
97fbc1bb
# @ohos.app.ability.ExtensionAbility (扩展能力基类)
# @ohos.app.ability.ExtensionAbility (扩展能力基类)
ExtensionAbility是特定场景扩展能力的基类,
提供系统配置更新回调和系统内存调整回调。
。
ExtensionAbility是特定场景扩展能力的基类,
继承自
[
Ability
](
js-apis-app-ability-ability.md
)
,未新增属性和方法
。
> **说明:**
> **说明:**
>
>
...
...
zh-cn/application-dev/reference/apis/js-apis-app-ability-serviceExtensionAbility.md
浏览文件 @
97fbc1bb
...
@@ -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
...
...
zh-cn/application-dev/reference/apis/js-apis-app-ability-startOptions.md
浏览文件 @
97fbc1bb
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录