From 5a0b49e1d8966e4021f475e37ff39cb2beee45bd Mon Sep 17 00:00:00 2001 From: ningning <3248127340@qq.com> Date: Mon, 19 Jun 2023 06:47:10 +0000 Subject: [PATCH] update zh-cn/application-dev/reference/apis/js-apis-resourceschedule-deviceStandby.md. Signed-off-by: ningning <3248127340@qq.com> --- .../apis/js-apis-resourceschedule-deviceStandby.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-deviceStandby.md b/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-deviceStandby.md index 194843a300..c7a680f356 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-deviceStandby.md +++ b/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-deviceStandby.md @@ -40,6 +40,7 @@ isDeviceInStandby(callback: AsyncCallback<boolean>): void; | 18700001 | Caller information verification failed. | **示例**: + ```js try{ deviceStandby.isDeviceInStandby((err, res) => { @@ -83,6 +84,7 @@ isDeviceInStandby(): Promise<boolean> | 18700001 | Caller information verification failed. | **示例**: + ```js try{ deviceStandby.isDeviceInStandby().then( res => { @@ -127,6 +129,7 @@ getExemptedApps(resourceTypes: number, callback: AsyncCallback { @@ -184,6 +187,7 @@ getExemptedApps(resourceTypes: number): Promise; | 18700001 | Caller information verification failed. | **示例**: + ```js try{ deviceStandby.getExemptedApps(resourceTypes).then( res => { @@ -230,6 +234,7 @@ requestExemptionResource(request: ResourceRequest): void; | 18700001 | Caller information verification failed. | **示例**: + ```js let resRequest = { resourceTypes: 1, @@ -294,6 +299,7 @@ releaseExemptionResource(request: ResourceRequest): void; | 18700001 | Caller information verification failed. | **示例**: + ```js let resRequest = { resourceTypes: 1, -- GitLab