未验证 提交 5d2a6b25 编写于 作者: O openharmony_ci 提交者: Gitee

!2280 翻译已完成 1937#I4XB1T

Merge pull request !2280 from shawn_he/a1937
# Brightness
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**<br/>
> The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
The Brightness module provides an API for setting the screen brightness.
......@@ -14,19 +14,19 @@ import brightness from '@ohos.brightness';
## brightness.setValue
setValue(value: number)
setValue(value: number): void
Sets the screen brightness.
**System capability:** SystemCapability.PowerManager.DisplayPowerManager
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.
**System capability:** SystemCapability.PowerManager.DisplayPowerManager
**Parameters**
| Name | Type | Mandatory | Description |
| ----- | ------ | ---- | ----------- |
| value | number | Yes | Brightness value, ranging from 0 to 255.|
| value | number | Yes | Brightness value, ranging from **0** to **255**.|
**Example**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册