Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
fa934171
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,发现更多精彩内容 >>
提交
fa934171
编写于
8月 25, 2022
作者:
Y
yuyaozhi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix document error of ability
Signed-off-by:
N
yuyaozhi
<
yuyaozhi@huawei.com
>
上级
0b0da612
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
363 addition
and
81 deletion
+363
-81
zh-cn/application-dev/reference/apis/js-apis-ability-context.md
...application-dev/reference/apis/js-apis-ability-context.md
+2
-0
zh-cn/application-dev/reference/apis/js-apis-ability-wantConstant.md
...cation-dev/reference/apis/js-apis-ability-wantConstant.md
+2
-1
zh-cn/application-dev/reference/apis/js-apis-application-ability.md
...ication-dev/reference/apis/js-apis-application-ability.md
+24
-0
zh-cn/application-dev/reference/apis/js-apis-application-abilityConstant.md
...dev/reference/apis/js-apis-application-abilityConstant.md
+13
-1
zh-cn/application-dev/reference/apis/js-apis-application-abilityDelegator.md
...ev/reference/apis/js-apis-application-abilityDelegator.md
+268
-0
zh-cn/application-dev/reference/apis/js-apis-application-abilitystage.md
...on-dev/reference/apis/js-apis-application-abilitystage.md
+25
-0
zh-cn/application-dev/reference/apis/js-apis-appmanager.md
zh-cn/application-dev/reference/apis/js-apis-appmanager.md
+7
-7
zh-cn/application-dev/reference/apis/js-apis-formInfo.md
zh-cn/application-dev/reference/apis/js-apis-formInfo.md
+19
-2
zh-cn/application-dev/reference/apis/js-apis-formhost.md
zh-cn/application-dev/reference/apis/js-apis-formhost.md
+1
-68
zh-cn/application-dev/reference/apis/js-apis-processrunninginfo.md
...lication-dev/reference/apis/js-apis-processrunninginfo.md
+2
-2
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-ability-context.md
浏览文件 @
fa934171
...
...
@@ -892,6 +892,8 @@ startAbilityByCall(want: Want): Promise<Caller>;
**系统能力**
:SystemCapability.Ability.AbilityRuntime.Core
**系统API**
: 此接口为系统接口,三方应用不支持调用。
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
...
...
zh-cn/application-dev/reference/apis/js-apis-ability-wantConstant.md
浏览文件 @
fa934171
...
...
@@ -46,7 +46,8 @@ want操作的常数。
| ACTION_FILE_SELECT
<sup>
7+
</sup>
| ohos.action.fileSelect | 指示选择文件的操作。 |
| PARAMS_STREAM
<sup>
7+
</sup>
| ability.params.stream | 指示发送数据时与目标关联的数据流的URI |
| ACTION_APP_ACCOUNT_OAUTH
<sup>
8+
</sup>
| ohos.account.appAccount.action.oauth | 指示提供oauth服务的操作。 |
| ACTION_MARKER_DOWNLOAD
<sup>
9+
</sup>
| ohos.want.action.marketDownload | 表示从应用程序市场下载应用程序的的操作。
<br>
**系统API**
:该接口为系统接口,三方应用不支持调用。 |
| ACTION_MARKET_DOWNLOAD
<sup>
9+
</sup>
| ohos.want.action.marketDownload | 表示从应用程序市场下载应用程序的的操作。
<br>
**系统API**
:该接口为系统接口,三方应用不支持调用。 |
| ACTION_MARKET_CROWDTEST
<sup>
9+
</sup>
| ohos.want.action.marketCrowdTest | 指示从应用程序市场众测应用程序的操作。
<br>
**系统API**
:该接口为系统接口,三方应用不支持调用。 |
## wantConstant.Entity
...
...
zh-cn/application-dev/reference/apis/js-apis-application-ability.md
浏览文件 @
fa934171
...
...
@@ -290,6 +290,30 @@ dump(params: Array\<string>): Array\<string>;
}
```
## Ability.onMemoryLevel
onMemoryLevel(level: AbilityConstant.MemoryLevel): void;
当系统已决定调整内存时调用。例如,当该功能在后台运行时,没有足够的内存来运行尽可能多的后台进程时可以使用。
**系统能力**
:SystemCapability.Ability.AbilityRuntime.AbilityCore
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- |
| level |
[
AbilityConstant.MemoryLevel
](
js-apis-application-abilityConstant.md#abilityconstantmemorylevel
)
| 是 | 回调返回内存微调级别,显示当前内存使用状态。|
**示例:**
```
js
class
myAbility
extends
Ability
{
onMemoryLevel
(
level
)
{
console
.
log
(
'
onMemoryLevel, level:
'
+
JSON
.
stringify
(
level
));
}
}
```
## Caller
...
...
zh-cn/application-dev/reference/apis/js-apis-application-abilityConstant.md
浏览文件 @
fa934171
...
...
@@ -75,4 +75,16 @@ import AbilityConstant from '@ohos.application.AbilityConstant';
| WINDOW_MODE_FULLSCREEN | 1 | 全屏模式。 |
| WINDOW_MODE_SPLIT_PRIMARY | 100 | 分屏多窗口主要模式。 |
| WINDOW_MODE_SPLIT_SECONDARY | 101 | 分屏多窗口次要模式。 |
| WINDOW_MODE_FLOATING | 102 | 自由悬浮形式窗口模式。 |
\ No newline at end of file
| WINDOW_MODE_FLOATING | 102 | 自由悬浮形式窗口模式。 |
## AbilityConstant.MemoryLevel
内存级别的类型。
**系统能力**
:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core
| 变量 | 取值 | 说明 |
| --- | --- | --- |
| MEMORY_LEVEL_MODERATE | 0 | 内存占用适中。 |
| MEMORY_LEVEL_LOW | 1 | 内存占用低。 |
| MEMORY_LEVEL_CRITICAL | 2 | 内存占用高。 |
zh-cn/application-dev/reference/apis/js-apis-application-abilityDelegator.md
浏览文件 @
fa934171
...
...
@@ -876,3 +876,271 @@ abilityDelegator.finishTest(msg, 0).then(() => {
});
```
### addAbilityStageMonitor<sup>9+</sup>
addAbilityStageMonitor(monitor: AbilityStageMonitor, callback: AsyncCallback
\<
void>): void;
添加一个AbilityStageMonitor对象,用于监视指定abilityStage的生命周期状态更改。(callback形式)
**系统能力:**
SystemCapability.Ability.AbilityRuntime.Core
**参数:**
| 参数名 | 类型 | 必填说明 | 说明 |
| -------- | ------------------------------------------------------------ | -------- | ------------------------------------------------------------ |
| monitor |
[
AbilityStageMonitor
](
#abilitystagemonitor
)
| 是 |
[
AbilityStageMonitor
](
#abilitystagemonitor
)
实例 |
| callback | AsyncCallback
\<
void> | 是 | 表示指定的回调方法 |
**示例:**
```
js
var
abilityDelegator
;
var
monitor
=
{
moduleName
:
"
moduleName
"
,
srcEntrance
:
"
srcEntrance
"
,
}
abilityDelegator
=
AbilityDelegatorRegistry
.
getAbilityDelegator
();
abilityDelegator
.
addAbilityStageMonitor
(
monitor
,
(
err
:
any
)
=>
{
console
.
info
(
"
addAbilityStageMonitor callback
"
);
});
```
### addAbilityStageMonitor<sup>9+</sup>
addAbilityStageMonitor(monitor: AbilityStageMonitor): Promise
\<
void>;
添加一个AbilityStageMonitor对象,用于监视指定abilityStage的生命周期状态更改。(promise形式)
**系统能力:**
SystemCapability.Ability.AbilityRuntime.Core
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
| ------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ |
| monitor |
[
AbilityStageMonitor
](
#abilitystagemonitor
)
| 是 |
[
AbilityStageMonitor
](
#abilitystagemonitor
)
实例 |
**返回值:**
| 类型 | 说明 |
| -------------- | ------------------- |
| Promise
\<
void> | 以Promise形式返回。 |
**示例:**
```
js
var
abilityDelegator
;
var
monitor
=
{
moduleName
:
"
moduleName
"
,
srcEntrance
:
"
srcEntrance
"
,
}
abilityDelegator
=
AbilityDelegatorRegistry
.
getAbilityDelegator
();
abilityDelegator
.
addAbilityStageMonitor
(
monitor
).
then
(()
=>
{
console
.
info
(
"
addAbilityStageMonitor promise
"
);
});
```
### removeAbilityStageMonitor<sup>9+</sup>
removeAbilityStageMonitor(monitor: AbilityStageMonitor, callback: AsyncCallback
\<
void>): void;
从应用程序内存中删除指定的AbilityStageMonitor对象。(callback形式)
**系统能力:**
SystemCapability.Ability.AbilityRuntime.Core
**参数:**
| 参数名 | 类型 | 必填说明 | 说明 |
| -------- | ------------------------------------------------------------ | -------- | ------------------------------------------------------------ |
| monitor |
[
AbilityStageMonitor
](
#abilitystagemonitor
)
| 是 |
[
AbilityStageMonitor
](
#abilitystagemonitor
)
实例 |
| callback | AsyncCallback
\<
void> | 是 | 表示指定的回调方法 |
**示例:**
```
js
var
abilityDelegator
;
var
monitor
=
{
moduleName
:
"
moduleName
"
,
srcEntrance
:
"
srcEntrance
"
,
}
abilityDelegator
=
AbilityDelegatorRegistry
.
getAbilityDelegator
();
abilityDelegator
.
removeAbilityStageMonitor
(
monitor
,
(
err
:
any
)
=>
{
console
.
info
(
"
removeAbilityStageMonitor callback
"
);
});
```
### removeAbilityStageMonitor<sup>9+</sup>
removeAbilityStageMonitor(monitor: AbilityStageMonitor): Promise
\<
void>;
从应用程序内存中删除指定的AbilityStageMonitor对象。(promise形式)
**系统能力:**
SystemCapability.Ability.AbilityRuntime.Core
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
| ------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ |
| monitor |
[
AbilityStageMonitor
](
#abilitystagemonitor
)
| 是 |
[
AbilityStageMonitor
](
#abilitystagemonitor
)
实例 |
**返回值:**
| 类型 | 说明 |
| -------------- | ------------------- |
| Promise
\<
void> | 以Promise形式返回。 |
**示例:**
```
js
var
abilityDelegator
;
var
monitor
=
{
moduleName
:
"
moduleName
"
,
srcEntrance
:
"
srcEntrance
"
,
}
abilityDelegator
=
AbilityDelegatorRegistry
.
getAbilityDelegator
();
abilityDelegator
.
removeAbilityStageMonitor
(
monitor
).
then
(()
=>
{
console
.
info
(
"
removeAbilityStageMonitor promise
"
);
});
```
### waitAbilityStageMonitor<sup>9+</sup>
waitAbilityStageMonitor(monitor: AbilityStageMonitor, callback: AsyncCallback
\<
AbilityStage>): void;
等待并返回与给定AbilityStageMonitor中设置的条件匹配的AbilityStage对象。(callback形式)
**系统能力:**
SystemCapability.Ability.AbilityRuntime.Core
**参数:**
| 参数名 | 类型 | 必填说明 | 说明 |
| -------- | ------------------------------------------------------------ | -------- | ------------------------------------------------------------ |
| monitor |
[
AbilityStageMonitor
](
#abilitystagemonitor
)
| 是 |
[
AbilityStageMonitor
](
#abilitystagemonitor
)
实例 |
| callback | AsyncCallback
\<
AbilityStage> | 是 | 成功返回AbilityStage对象,失败返回空。 |
**示例:**
```
js
var
abilityDelegator
;
function
onAbilityCreateCallback
(
data
)
{
console
.
info
(
"
onAbilityCreateCallback
"
);
}
var
monitor
=
{
moduleName
:
"
moduleName
"
,
srcEntrance
:
"
srcEntrance
"
,
}
abilityDelegator
=
AbilityDelegatorRegistry
.
getAbilityDelegator
();
abilityDelegator
.
waitAbilityStageMonitor
(
monitor
,
(
err
:
any
,
data
:
any
)
=>
{
console
.
info
(
"
waitAbilityStageMonitor callback
"
);
});
```
### waitAbilityStageMonitor<sup>9+</sup>
waitAbilityStageMonitor(monitor: AbilityStageMonitor, timeout?: number): Promise
\<
AbilityStage>;
等待并返回与给定AbilityStageMonitor中设置的条件匹配的AbilityStage对象。(promise形式)
**系统能力:**
SystemCapability.Ability.AbilityRuntime.Core
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
| ------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ |
| monitor |
[
AbilityStageMonitor
](
#abilitystagemonitor
)
| 是 |
[
AbilityStageMonitor
](
#abilitystagemonitor
)
实例 |
| timeout | number | 否 | 超时最大等待时间,以毫秒为单位。 |
**返回值:**
| 类型 | 说明 |
| -------------- | ------------------- |
| Promise
\<
AbilityStage> | 成功返回AbilityStage对象,失败返回空。 |
**示例:**
```
js
var
abilityDelegator
;
function
onAbilityCreateCallback
(
data
)
{
console
.
info
(
"
onAbilityCreateCallback
"
);
}
var
monitor
=
{
moduleName
:
"
moduleName
"
,
srcEntrance
:
"
srcEntrance
"
,
}
abilityDelegator
=
AbilityDelegatorRegistry
.
getAbilityDelegator
();
abilityDelegator
.
waitAbilityStageMonitor
(
monitor
).
then
((
data
:
any
)
=>
{
console
.
info
(
"
waitAbilityStageMonitor promise
"
);
});
```
### waitAbilityStageMonitor<sup>9+</sup>
waitAbilityStageMonitor(monitor: AbilityStageMonitor, timeout: number, callback: AsyncCallback
\<
AbilityStage>): void;
等待并返回与给定AbilityStageMonitor中设置的条件匹配的AbilityStage对象。(callback形式)
**系统能力:**
SystemCapability.Ability.AbilityRuntime.Core
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
| ------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ |
| monitor |
[
AbilityStageMonitor
](
#abilitystagemonitor
)
| 是 |
[
AbilityStageMonitor
](
#abilitystagemonitor
)
实例 |
| timeout | number | 否 | 超时最大等待时间,以毫秒为单位。 |
| callback | AsyncCallback
\<
AbilityStage> | 是 | 成功返回AbilityStage对象,失败返回空。 |
**返回值:**
| 类型 | 说明 |
| -------------- | ------------------- |
| Promise
\<
void> | 以Promise形式返回。 |
**示例:**
```
js
var
abilityDelegator
;
var
timeout
=
100
;
function
onAbilityCreateCallback
(
data
)
{
console
.
info
(
"
onAbilityCreateCallback
"
);
}
var
monitor
=
{
moduleName
:
"
moduleName
"
,
srcEntrance
:
"
srcEntrance
"
,
}
abilityDelegator
=
AbilityDelegatorRegistry
.
getAbilityDelegator
();
abilityDelegator
.
waitAbilityStageMonitor
(
monitor
,
timeout
,
(
err
:
any
,
data
:
any
)
=>
{
console
.
info
(
"
waitAbilityStageMonitor callback
"
);
});
```
## AbilityStageMonitor
提供用于匹配满足指定条件的受监视的AbilityStage对象的方法。最近匹配的AbilityStage对象将保存在AbilityStageMonitor对象中。
系统能力:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core
| 名称 | 类型 | 可读 | 可写 | 说明 |
| ------------------------------------------------------------ | -------- | ---- | ---- | ------------------------------------------------------------ |
| moduleName | string | 是 | 是 | 要监视的abilityStage的模块名。 |
| srcEntrance | string | 是 | 是 | 要监视的abilityStage的源路径。 |
zh-cn/application-dev/reference/apis/js-apis-application-abilitystage.md
浏览文件 @
fa934171
...
...
@@ -89,6 +89,31 @@ onConfigurationUpdated(config: Configuration): void;
}
}
```
## AbilityStage.onMemoryLevel
onMemoryLevel(level: AbilityConstant.MemoryLevel): void;
当系统已决定调整内存时调用。例如,当该功能在后台运行时,没有足够的内存来运行尽可能多的后台进程时可以使用。
**系统能力**
:SystemCapability.Ability.AbilityRuntime.Core
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- |
| level |
[
AbilityConstant.MemoryLevel
](
js-apis-application-abilityConstant.md#abilityconstantmemorylevel
)
| 是 | 回调返回内存微调级别,显示当前内存使用状态。|
**示例:**
```
js
class
MyAbilityStage
extends
AbilityStage
{
onMemoryLevel
(
level
)
{
console
.
log
(
'
onMemoryLevel, level:
'
+
JSON
.
stringify
(
level
));
}
}
```
## AbilityStage.context
context: AbilityStageContext;
...
...
zh-cn/application-dev/reference/apis/js-apis-appmanager.md
浏览文件 @
fa934171
...
...
@@ -305,7 +305,7 @@ registerApplicationStateObserver(observer: ApplicationStateObserver): number;
## appManager.registerApplicationStateObserver<sup>9+</sup>
registerApplicationStateObserver(observer: ApplicationStateObserver, bundleNameList: Array
<string>
): number;
registerApplicationStateObserver(observer: ApplicationStateObserver, bundleNameList: Array
\
<
string>): number;
注册指定应用程序状态观测器。
...
...
@@ -813,7 +813,7 @@ console.log('-------- processDiedInfo: ---------', processDiedInfo);
## ProcessData
**系统能力**
:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.
Mission
**系统能力**
:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.
Core
**系统API**
:该接口为系统接口,三方应用不支持调用。
...
...
@@ -827,14 +827,14 @@ console.log('-------- processDiedInfo: ---------', processDiedInfo);
## ProcessRunningInfo
**系统能力**
:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.
Core
**系统能力**
:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.
Mission
| 名称 | 读写属性 | 类型 | 必填 | 描述 |
| ----------- | -------- | -------------------- | ---- | ------------------------------------------------------------ |
| pid
<sup>
9
+
</sup>
| 只读 | number | 否 | 进程ID。 |
| uid
<sup>
9
+
</sup>
| 只读 | number | 否 | 用户ID。 |
| processName
<sup>
9
+
</sup>
| 只读 | string | 否 | 进程的名称。 |
| bundleNames
<sup>
9
+
</sup>
| 只读 | Array
\<
string> | 否 | 进程中运行的bundleName数组。 |
| pid
<sup>
8
+
</sup>
| 只读 | number | 否 | 进程ID。 |
| uid
<sup>
8
+
</sup>
| 只读 | number | 否 | 用户ID。 |
| processName
<sup>
8
+
</sup>
| 只读 | string | 否 | 进程的名称。 |
| bundleNames
<sup>
8
+
</sup>
| 只读 | Array
\<
string> | 否 | 进程中运行的bundleName数组。 |
## ApplicationStateObserver
...
...
zh-cn/application-dev/reference/apis/js-apis-formInfo.md
浏览文件 @
fa934171
...
...
@@ -96,7 +96,7 @@ import formInfo from '@ohos.application.formInfo';
| 名称 | 值 | 说明 |
| ----------- | ---- | ------------ |
| IDENTITY_KEY | "ohos.extra.param.key.form_identity" | 卡片标识。
<br>
**系统API**
: 此接口为系统接口,三方应用不支持调用。 |
| IDENTITY_KEY
<sup>
9+
</sup>
| "ohos.extra.param.key.form_identity" | 卡片标识。
<br>
**系统API**
: 此接口为系统接口,三方应用不支持调用。 |
| DIMENSION_KEY | "ohos.extra.param.key.form_dimension" | 卡片规格样式。 |
| NAME_KEY | "ohos.extra.param.key.form_name" | 卡片名称。 |
| MODULE_NAME_KEY | "ohos.extra.param.key.module_name" | 卡片所属模块名称。 |
...
...
@@ -104,4 +104,21 @@ import formInfo from '@ohos.application.formInfo';
| HEIGHT_KEY | "ohos.extra.param.key.form_height" | 卡片高度。 |
| TEMPORARY_KEY | "ohos.extra.param.key.form_temporary" | 临时卡片。 |
| ABILITY_NAME_KEY
<sup>
9+
</sup>
| "ohos.extra.param.key.ability_name" | ability名称 |
| DEVICE_ID_KEY
<sup>
9+
</sup>
| "ohos.extra.param.key.device_id" | 设备标识。
<br/>
此接口为系统接口。 |
\ No newline at end of file
| DEVICE_ID_KEY
<sup>
9+
</sup>
| "ohos.extra.param.key.device_id" | 设备标识。
<br/>
此接口为系统接口。 |
| BUNDLE_NAME_KEY
<sup>
9+
</sup>
| "ohos.extra.param.key.bundle_name" | 指示指定要获取的捆绑包名称的键。
<br/>
此接口为系统接口。 |
## FormDimension
定义卡片尺寸枚举。
**系统能力**
:SystemCapability.Ability.Form
| 名称 | 值 | 说明 |
| ----------- | ---- | ------------ |
| Dimension_1_2
<sup>
9+
</sup>
| 1 | 1 x 2 form。 |
| Dimension_2_2
<sup>
9+
</sup>
| 2 | 2 x 2 form。 |
| Dimension_2_4
<sup>
9+
</sup>
| 3 | 2 x 4 form。 |
| Dimension_4_4
<sup>
9+
</sup>
| 4 | 4 x 4 form。 |
| Dimension_2_1
<sup>
9+
</sup>
| 5 | 2 x 1 form。 |
zh-cn/application-dev/reference/apis/js-apis-formhost.md
浏览文件 @
fa934171
...
...
@@ -5,6 +5,7 @@ FormHost模块提供了卡片使用方相关接口的能力,包括删除、释
> **说明:**
>
> 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
> 本模块接口均为系统接口,三方应用不支持调用。
## 导入模块
...
...
@@ -28,8 +29,6 @@ deleteForm(formId: string, callback: AsyncCallback<void>): void;
**系统能力**
:SystemCapability.Ability.Form
**系统API**
: 此接口为系统接口,三方应用不支持调用。
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -58,8 +57,6 @@ deleteForm(formId: string): Promise<void>;
**系统能力**
:SystemCapability.Ability.Form
**系统API**
: 此接口为系统接口,三方应用不支持调用。
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -93,8 +90,6 @@ releaseForm(formId: string, callback: AsyncCallback<void>): void;
**系统能力**
:SystemCapability.Ability.Form
**系统API**
: 此接口为系统接口,三方应用不支持调用。
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -123,8 +118,6 @@ releaseForm(formId: string, isReleaseCache: boolean, callback: AsyncCallback<
**系统能力**
:SystemCapability.Ability.Form
**系统API**
: 此接口为系统接口,三方应用不支持调用。
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -154,8 +147,6 @@ releaseForm(formId: string, isReleaseCache?: boolean): Promise<void>;
**系统能力**
:SystemCapability.Ability.Form
**系统API**
: 此接口为系统接口,三方应用不支持调用。
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -190,8 +181,6 @@ requestForm(formId: string, callback: AsyncCallback<void>): void;
**系统能力**
:SystemCapability.Ability.Form
**系统API**
: 此接口为系统接口,三方应用不支持调用。
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -220,8 +209,6 @@ requestForm(formId: string): Promise<void>;
**系统能力**
:SystemCapability.Ability.Form
**系统API**
: 此接口为系统接口,三方应用不支持调用。
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -255,8 +242,6 @@ castTempForm(formId: string, callback: AsyncCallback<void>): void;
**系统能力**
:SystemCapability.Ability.Form
**系统API**
: 此接口为系统接口,三方应用不支持调用。
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -285,8 +270,6 @@ castTempForm(formId: string): Promise<void>;
**系统能力**
:SystemCapability.Ability.Form
**系统API**
: 此接口为系统接口,三方应用不支持调用。
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -320,8 +303,6 @@ notifyVisibleForms(formIds: Array<string>, callback: AsyncCallback<void
**系统能力**
:SystemCapability.Ability.Form
**系统API**
: 此接口为系统接口,三方应用不支持调用。
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -350,8 +331,6 @@ notifyVisibleForms(formIds: Array<string>): Promise<void>;
**系统能力**
:SystemCapability.Ability.Form
**系统API**
: 此接口为系统接口,三方应用不支持调用。
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -385,8 +364,6 @@ notifyInvisibleForms(formIds: Array<string>, callback: AsyncCallback<vo
**系统能力**
:SystemCapability.Ability.Form
**系统API**
: 此接口为系统接口,三方应用不支持调用。
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -415,8 +392,6 @@ notifyInvisibleForms(formIds: Array<string>): Promise<void>;
**系统能力**
:SystemCapability.Ability.Form
**系统API**
: 此接口为系统接口,三方应用不支持调用。
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -450,8 +425,6 @@ enableFormsUpdate(formIds: Array<string>, callback: AsyncCallback<void&
**系统能力**
:SystemCapability.Ability.Form
**系统API**
: 此接口为系统接口,三方应用不支持调用。
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -480,8 +453,6 @@ enableFormsUpdate(formIds: Array<string>): Promise<void>;
**系统能力**
:SystemCapability.Ability.Form
**系统API**
: 此接口为系统接口,三方应用不支持调用。
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -515,8 +486,6 @@ disableFormsUpdate(formIds: Array<string>, callback: AsyncCallback<void
**系统能力**
:SystemCapability.Ability.Form
**系统API**
: 此接口为系统接口,三方应用不支持调用。
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -545,8 +514,6 @@ disableFormsUpdate(formIds: Array<string>): Promise<void>;
**系统能力**
:SystemCapability.Ability.Form
**系统API**
: 此接口为系统接口,三方应用不支持调用。
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -578,8 +545,6 @@ isSystemReady(callback: AsyncCallback<void>): void;
**系统能力**
:SystemCapability.Ability.Form
**系统API**
: 此接口为系统接口,三方应用不支持调用。
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -605,8 +570,6 @@ isSystemReady(): Promise<void>;
**系统能力**
:SystemCapability.Ability.Form
**系统API**
: 此接口为系统接口,三方应用不支持调用。
**返回值:**
| 类型 | 说明 |
...
...
@@ -634,8 +597,6 @@ getAllFormsInfo(callback: AsyncCallback<Array<formInfo.FormInfo>>):
**系统能力**
:SystemCapability.Ability.Form
**系统API**
: 此接口为系统接口,三方应用不支持调用。
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -665,8 +626,6 @@ getAllFormsInfo(): Promise<Array<formInfo.FormInfo>>;
**系统能力**
:SystemCapability.Ability.Form
**系统API**
: 此接口为系统接口,三方应用不支持调用。
**返回值:**
| 类型 | 说明 |
...
...
@@ -694,8 +653,6 @@ getFormsInfo(bundleName: string, callback: AsyncCallback<Array<formInfo.Fo
**系统能力**
:SystemCapability.Ability.Form
**系统API**
: 此接口为系统接口,三方应用不支持调用。
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -726,8 +683,6 @@ getFormsInfo(bundleName: string, moduleName: string, callback: AsyncCallback<
**系统能力**
:SystemCapability.Ability.Form
**系统API**
: 此接口为系统接口,三方应用不支持调用。
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -759,8 +714,6 @@ getFormsInfo(bundleName: string, moduleName?: string): Promise<Array<formI
**系统能力**
:SystemCapability.Ability.Form
**系统API**
: 此接口为系统接口,三方应用不支持调用。
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -794,8 +747,6 @@ deleteInvalidForms(formIds: Array<string>, callback: AsyncCallback<numb
**系统能力**
:SystemCapability.Ability.Form
**系统API**
: 此接口为系统接口,三方应用不支持调用。
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -826,8 +777,6 @@ deleteInvalidForms(formIds: Array<string>): Promise<number>;
**系统能力**
:SystemCapability.Ability.Form
**系统API**
: 此接口为系统接口,三方应用不支持调用。
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -861,8 +810,6 @@ acquireFormState(want: Want, callback: AsyncCallback<formInfo.FormStateInfo&g
**系统能力**
:SystemCapability.Ability.Form
**系统API**
: 此接口为系统接口,三方应用不支持调用。
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -902,8 +849,6 @@ acquireFormState(want: Want): Promise<formInfo.FormStateInfo>;
**系统能力**
:SystemCapability.Ability.Form
**系统API**
: 此接口为系统接口,三方应用不支持调用。
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -944,8 +889,6 @@ on(type: "formUninstall", callback: Callback<string>): void;
**系统能力**
:SystemCapability.Ability.Form
**系统API**
: 此接口为系统接口,三方应用不支持调用。
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -970,8 +913,6 @@ off(type: "formUninstall", callback?: Callback<string>): void;
**系统能力**
:SystemCapability.Ability.Form
**系统API**
: 此接口为系统接口,三方应用不支持调用。
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -998,8 +939,6 @@ notifyFormsVisible(formIds: Array<string>, isVisible: boolean, callback: A
**系统能力**
:SystemCapability.Ability.Form
**系统API**
: 此接口为系统接口,三方应用不支持调用。
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -1029,8 +968,6 @@ notifyFormsVisible(formIds: Array<string>, isVisible: boolean): Promise<
**系统能力**
:SystemCapability.Ability.Form
**系统API**
: 此接口为系统接口,三方应用不支持调用。
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -1065,8 +1002,6 @@ notifyFormsEnableUpdate(formIds: Array<string>, isEnableUpdate: boolean, c
**系统能力**
:SystemCapability.Ability.Form
**系统API**
: 此接口为系统接口,三方应用不支持调用。
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -1096,8 +1031,6 @@ notifyFormsEnableUpdate(formIds: Array<string>, isEnableUpdate: boolean):
**系统能力**
:SystemCapability.Ability.Form
**系统API**
: 此接口为系统接口,三方应用不支持调用。
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
...
...
zh-cn/application-dev/reference/apis/js-apis-processrunninginfo.md
浏览文件 @
fa934171
...
...
@@ -19,9 +19,9 @@ appManager.getProcessRunningInfos((error,data) => {
## 属性
**系统能力**
:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.
Core
**系统能力**
:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.
Mission
| 名称 | 参数类型 | 可读 | 可写 | 说明 |
| 名称 | 参数类型 | 可读 | 可写 | 说明 |
| -------- | -------- | -------- | -------- | -------- |
| pid | number | 是 | 否 | 进程ID。 |
| uid | number | 是 | 否 | 用户ID。 |
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录