Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
d0ee7a14
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看板
提交
d0ee7a14
编写于
3月 23, 2022
作者:
Y
yuyaozhi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix error code issue of ability api in March 23rd
Signed-off-by:
N
yuyaozhi
<
yuyaozhi@h-partners.com
>
上级
694f9a39
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
1 addition
and
17 deletion
+1
-17
zh-cn/application-dev/reference/apis/js-apis-appmanager.md
zh-cn/application-dev/reference/apis/js-apis-appmanager.md
+0
-12
zh-cn/application-dev/reference/apis/js-apis-featureAbility.md
.../application-dev/reference/apis/js-apis-featureAbility.md
+1
-5
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-appmanager.md
浏览文件 @
d0ee7a14
...
...
@@ -82,13 +82,11 @@ isRamConstrainedDevice(): Promise\<boolean>;
**示例:**
```
js
IsRamConstrainedDevicePromise
(){
app
.
isRamConstrainedDevicePromise
().
then
((
data
)
=>
{
console
.
log
(
'
success:
'
+
JSON
.
stringify
(
data
));
}).
catch
((
error
)
=>
{
console
.
log
(
'
failed:
'
+
JSON
.
stringify
(
error
));
});
}
```
## appManager.isRamConstrainedDevice
...
...
@@ -108,12 +106,10 @@ isRamConstrainedDevice(callback: AsyncCallback\<boolean>): void;
**示例:**
```
js
IsRamConstrainedDeviceCallBack
(){
app
.
isRamConstrainedDevicePromise
((
err
,
data
)
=>
{
console
.
log
(
'
startAbility result failed:
'
+
JSON
.
stringify
(
err
));
console
.
log
(
'
startAbility result success:
'
+
JSON
.
stringify
(
data
));
})
}
```
## appManager.getAppMemorySize
...
...
@@ -133,13 +129,11 @@ getAppMemorySize(): Promise\<number>;
**示例:**
```
js
GetAppMemorySize
(){
app
.
getAppMemorySize
().
then
((
data
)
=>
{
console
.
log
(
'
success:
'
+
JSON
.
stringify
(
data
));
}).
catch
((
error
)
=>
{
console
.
log
(
'
failed:
'
+
JSON
.
stringify
(
error
));
});
}
```
## appManager.getAppMemorySize
...
...
@@ -159,12 +153,10 @@ getAppMemorySize(callback: AsyncCallback\<number>): void;
**示例:**
```
js
GetAppMemorySizeCallBack
(){
app
.
getAppMemorySize
((
err
,
data
)
=>
{
console
.
log
(
'
startAbility result failed :
'
+
JSON
.
stringify
(
err
));
console
.
log
(
'
startAbility result success:
'
+
JSON
.
stringify
(
data
));
})
}
```
## appManager.getProcessRunningInfos<sup>8+</sup>
...
...
@@ -183,13 +175,11 @@ getProcessRunningInfos(): Promise<Array<ProcessRunningInfo>>;
**示例:**
```
js
GetProcessRunningInfos
(){
app
.
GetProcessRunningInfos
().
then
((
data
)
=>
{
console
.
log
(
'
success:
'
+
JSON
.
stringify
(
data
));
}).
catch
((
error
)
=>
{
console
.
log
(
'
failed:
'
+
JSON
.
stringify
(
error
));
});
}
```
## appManager.getProcessRunningInfos<sup>8+</sup>
...
...
@@ -209,12 +199,10 @@ getProcessRunningInfos(callback: AsyncCallback<Array<ProcessRunningInfo>>): void
**示例:**
```
js
GetProcessRunningInfosCallBack
(){
app
.
GetProcessRunningInfos
((
err
,
data
)
=>
{
console
.
log
(
'
startAbility result failed :
'
+
JSON
.
stringify
(
err
));
console
.
log
(
'
startAbility result success:
'
+
JSON
.
stringify
(
data
));
})
}
```
## ProcessRunningInfo
...
...
zh-cn/application-dev/reference/apis/js-apis-featureAbility.md
浏览文件 @
d0ee7a14
...
...
@@ -665,9 +665,7 @@ getWindow(callback: AsyncCallback\<window.Window>): void
**示例:**
```
javascript
GetWindow
(){
featureAbility
.
getWindow
()
}
```
## featureAbility.getWindow<sup>7+</sup>
...
...
@@ -687,11 +685,9 @@ getWindow(): Promise\<window.Window>;
**示例:**
```
javascript
GetWindowPromise
(){
featureAbility
.
getWindow
().
then
((
data
)
=>
{
console
.
info
(
"
=============getWindowPromise==========
"
+
JSON
.
stringify
(
data
));
});
}
});
```
## ConnectOptions.onConnect<sup>7+</sup>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录