提交 9b9afd29 编写于 作者: S shawn_he

update docs

Signed-off-by: Nshawn_he <shawn.he@huawei.com>
上级 b1b29ea2
...@@ -23,9 +23,9 @@ shutdownDevice(reason: string): void ...@@ -23,9 +23,9 @@ shutdownDevice(reason: string): void
Shuts down the system. 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** **Parameters**
...@@ -71,7 +71,7 @@ Checks the screen status of the current device. ...@@ -71,7 +71,7 @@ Checks the screen status of the current device.
**Parameters** **Parameters**
| Type | Type | Mandatory | Description | | Name | Type | Mandatory | Description |
| -------- | ---------------------------- | ---- | ---------------------------------------- | | -------- | ---------------------------- | ---- | ---------------------------------------- |
| callback | AsyncCallback&lt;boolean&gt; | Yes | Callback used to obtain the return value.<br>Return value: The value **true** indicates that the screen is on, and the value **false** indicates the opposite.| | callback | AsyncCallback&lt;boolean&gt; | Yes | Callback used to obtain the return value.<br>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. ...@@ -97,7 +97,7 @@ Checks the screen status of the current device.
**Return Value** **Return Value**
| Type | Description | | Type | Description |
| ---------------------- | --------------------------------------- | | ---------------------- | --------------------------------------- |
| Promise&lt;boolean&gt; | Promise used to obtain the return value. <br/>Return value: The value **true** indicates that the screen is on, and the value **false** indicates the opposite.| | Promise&lt;boolean&gt; | Promise used to asynchronously obtain the return value. <br/>Return value: The value **true** indicates that the screen is on, and the value **false** indicates the opposite.|
**Example** **Example**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册