Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
1f6d4e64
D
Docs
项目概览
OpenHarmony
/
Docs
10 个月 前同步成功
通知
158
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,发现更多精彩内容 >>
未验证
提交
1f6d4e64
编写于
6月 16, 2023
作者:
G
geraltxu
提交者:
Gitee
6月 16, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
一致性整改
Signed-off-by:
N
geraltxu
<
xufanghan@huawei.com
>
上级
18493c3e
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
27 addition
and
12 deletion
+27
-12
zh-cn/application-dev/reference/apis/js-apis-resourceschedule-deviceStandby.md
.../reference/apis/js-apis-resourceschedule-deviceStandby.md
+27
-12
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-resourceschedule-deviceStandby.md
浏览文件 @
1f6d4e64
...
...
@@ -18,6 +18,8 @@ isDeviceInStandby(callback: AsyncCallback<boolean>): void;
**系统能力:**
SystemCapability.ResourceSchedule.DeviceStandby
**需要权限:**
ohos.permission.DEVICE_STANDBY_EXEMPTION
**参数**
:
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -32,9 +34,9 @@ isDeviceInStandby(callback: AsyncCallback<boolean>): void;
| ---- | --------------------- |
| 9800001 | Memory operation failed. |
| 9800002 | Parcel operation failed. |
| 9800003 | I
PC
failed. |
| 9800003 | I
nner transact
failed. |
| 9800004 | System service operation failed. |
| 18700001 | Caller information verification failed
when applying for efficiency resources
. |
| 18700001 | Caller information verification failed. |
**示例**
:
...
...
@@ -57,6 +59,8 @@ isDeviceInStandby(): Promise<boolean>
**系统能力:**
SystemCapability.ResourceSchedule.DeviceStandby
**需要权限:**
ohos.permission.DEVICE_STANDBY_EXEMPTION
**返回值**
:
| 类型 | 说明 |
...
...
@@ -71,9 +75,9 @@ isDeviceInStandby(): Promise<boolean>
| ---- | --------------------- |
| 9800001 | Memory operation failed. |
| 9800002 | Parcel operation failed. |
| 9800003 | I
PC
failed. |
| 9800003 | I
nner transact
failed. |
| 9800004 | System service operation failed. |
| 18700001 | Caller information verification failed
when applying for efficiency resources
. |
| 18700001 | Caller information verification failed. |
**示例**
:
...
...
@@ -94,6 +98,8 @@ getExemptedApps(resourceTypes: number, callback: AsyncCallback<Array<Exempted
**系统能力:**
SystemCapability.ResourceSchedule.DeviceStandby
**需要权限:**
ohos.permission.DEVICE_STANDBY_EXEMPTION
**系统API:**
此接口为系统接口。
**参数**
:
...
...
@@ -111,9 +117,9 @@ getExemptedApps(resourceTypes: number, callback: AsyncCallback<Array<Exempted
| ---- | --------------------- |
| 9800001 | Memory operation failed. |
| 9800002 | Parcel operation failed. |
| 9800003 | I
PC
failed. |
| 9800003 | I
nner transact
failed. |
| 9800004 | System service operation failed. |
| 18700001 | Caller information verification failed
when applying for efficiency resources
. |
| 18700001 | Caller information verification failed. |
**示例**
:
...
...
@@ -139,6 +145,8 @@ getExemptedApps(resourceTypes: number): Promise<Array<ExemptedAppInfo>>;
**系统能力:**
SystemCapability.ResourceSchedule.DeviceStandby
**需要权限:**
ohos.permission.DEVICE_STANDBY_EXEMPTION
**系统API:**
此接口为系统接口。
**参数**
:
...
...
@@ -164,9 +172,9 @@ getExemptedApps(resourceTypes: number): Promise<Array<ExemptedAppInfo>>;
| 401 | Parameter error. |
| 9800001 | Memory operation failed. |
| 9800002 | Parcel operation failed. |
| 9800003 | I
PC
failed. |
| 9800003 | I
nner transact
failed. |
| 9800004 | System service operation failed. |
| 18700001 | Caller information verification failed
when applying for efficiency resources
. |
| 18700001 | Caller information verification failed. |
**示例**
:
...
...
@@ -190,6 +198,8 @@ requestExemptionResource(request: ResourceRequest): void;
**系统能力:**
SystemCapability.ResourceSchedule.DeviceStandby.Exemption
**需要权限:**
ohos.permission.DEVICE_STANDBY_EXEMPTION
**系统API:**
此接口为系统接口。
**参数**
:
...
...
@@ -206,9 +216,9 @@ requestExemptionResource(request: ResourceRequest): void;
| ---- | --------------------- |
| 9800001 | Memory operation failed. |
| 9800002 | Parcel operation failed. |
| 9800003 | I
PC
failed. |
| 9800003 | I
nner transact
failed. |
| 9800004 | System service operation failed. |
| 18700001 | Caller information verification failed
when applying for efficiency resources
. |
| 18700001 | Caller information verification failed. |
**示例**
:
...
...
@@ -250,6 +260,8 @@ releaseExemptionResource(request: ResourceRequest): void;
**系统能力:**
SystemCapability.ResourceSchedule.DeviceStandby.Exemption
**需要权限:**
ohos.permission.DEVICE_STANDBY_EXEMPTION
**系统API:**
此接口为系统接口。
**参数**
:
...
...
@@ -266,9 +278,9 @@ releaseExemptionResource(request: ResourceRequest): void;
| ---- | --------------------- |
| 9800001 | Memory operation failed. |
| 9800002 | Parcel operation failed. |
| 9800003 | I
PC
failed. |
| 9800003 | I
nner transact
failed. |
| 9800004 | System service operation failed. |
| 18700001 | Caller information verification failed
when applying for efficiency resources
. |
| 18700001 | Caller information verification failed. |
**示例**
:
...
...
@@ -306,6 +318,7 @@ releaseExemptionResource(request: ResourceRequest): void;
## ResourceType
非待机应用资源枚举。
<br>
**系统API:**
此接口为系统接口。
|名称 |值 |说明|
| ------------ | ------------ |--------------|
...
...
@@ -320,6 +333,7 @@ releaseExemptionResource(request: ResourceRequest): void;
## ExemptedAppInfo
豁免应用信息,不进入待机管控的应用信息。
<br>
**系统API:**
此接口为系统接口。
|名称 |类型 | 必填 |说明 |
| ------------ | ------------ |------------ | ------------ |
...
...
@@ -330,6 +344,7 @@ releaseExemptionResource(request: ResourceRequest): void;
## ResourceRequest
待机资源请求体。
<br>
**系统API:**
此接口为系统接口。
|名称 |类型 | 必填 |说明 |
| ------------ | ------------ |------------| ------------ |
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录