From 9b9afd29936e4981545eeb716db698c01ea69d43 Mon Sep 17 00:00:00 2001 From: shawn_he Date: Wed, 23 Mar 2022 16:37:40 +0800 Subject: [PATCH] update docs Signed-off-by: shawn_he --- en/application-dev/reference/apis/js-apis-power.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/en/application-dev/reference/apis/js-apis-power.md b/en/application-dev/reference/apis/js-apis-power.md index 2ce2a52446..d3e6377b84 100644 --- a/en/application-dev/reference/apis/js-apis-power.md +++ b/en/application-dev/reference/apis/js-apis-power.md @@ -23,9 +23,9 @@ shutdownDevice(reason: string): void Shuts down the system. -**Required permission:** ohos.permission.SHUTDOWN +This is a system API and cannot be called by third-party applications. -**Note:** This is a system API and it is used only for system applications. +**Required permission:** ohos.permission.SHUTDOWN **Parameters** @@ -71,7 +71,7 @@ Checks the screen status of the current device. **Parameters** -| Type | Type | Mandatory | Description | +| Name | Type | Mandatory | Description | | -------- | ---------------------------- | ---- | ---------------------------------------- | | callback | AsyncCallback<boolean> | Yes | Callback used to obtain the return value.
Return value: The value **true** indicates that the screen is on, and the value **false** indicates the opposite.| @@ -97,7 +97,7 @@ Checks the screen status of the current device. **Return Value** | Type | Description | | ---------------------- | --------------------------------------- | -| Promise<boolean> | Promise used to obtain the return value.
Return value: The value **true** indicates that the screen is on, and the value **false** indicates the opposite.| +| Promise<boolean> | Promise used to asynchronously obtain the return value.
Return value: The value **true** indicates that the screen is on, and the value **false** indicates the opposite.| **Example** -- GitLab