提交 12ae137c 编写于 作者: Z zhanglitao

support set window brightness to default

Signed-off-by: Nzhanglitao <zhanglitao11@huawei.com>
上级 394aff5f
......@@ -3601,7 +3601,7 @@ When the screen brightness setting for the window takes effect, Control Panel ca
| Name| Type| Mandatory| Description |
| ---------- | ------------------------- | -- |-------------------------------------------|
| brightness | number | Yes| Brightness to set. The value is a floating point number in the range [0.0, 1.0], and the value **1.0** means the brightest.|
| brightness | number | Yes| Brightness to set. The value is a floating point number in the range [0.0, 1.0] or -1.0, and the value **1.0** means the brightest, **-1.0** means the default brightest.|
| callback | AsyncCallback&lt;void&gt; | Yes| Callback used to return the result. |
**Error codes**
......@@ -3644,7 +3644,7 @@ When the screen brightness setting for the window takes effect, Control Panel ca
| Name| Type| Mandatory| Description |
| ---------- | ------ | -- |----------------------------------------|
| brightness | number | Yes| Brightness to set. The value is a floating point number in the range [0.0, 1.0], and the value **1.0** indicates the brightest.|
| brightness | number | Yes| Brightness to set. The value is a floating point number in the range [0.0, 1.0] or -1.0, and the value **1.0** means the brightest, **-1.0** means the default brightest.|
**Return value**
......@@ -6212,7 +6212,7 @@ When the screen brightness setting for the window takes effect, Control Panel ca
| Name | Type | Mandatory| Description |
| ---------- | ------------------------- | ---- |---------------------------------------|
| brightness | number | Yes | Brightness to set. The value is a floating point number in the range [0.0, 1.0], and the value **1.0** means the brightest.|
| brightness | number | Yes | Brightness to set. The value is a floating point number in the range [0.0, 1.0] or -1.0, and the value **1.0** means the brightest, **-1.0** means the default brightest.|
| callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the result. |
**Example**
......@@ -6246,7 +6246,7 @@ When the screen brightness setting for the window takes effect, Control Panel ca
| Name | Type | Mandatory| Description |
| ---------- | ------ | ---- |------------------------------------------|
| brightness | number | Yes | Brightness to set. The value is a floating point number in the range [0.0, 1.0], and the value **1.0** means the brightest.|
| brightness | number | Yes | Brightness to set. The value is a floating point number in the range [0.0, 1.0] or -1.0, and the value **1.0** means the brightest, **-1.0** means the default brightest.|
**Return value**
......
......@@ -3785,7 +3785,7 @@ setWindowBrightness(brightness: number, callback: AsyncCallback&lt;void&gt;): vo
| 参数名 | 类型 | 必填 | 说明 |
| ---------- | ------------------------- | -- |-------------------------------------------|
| brightness | number | 是 | 屏幕亮度值。该参数为浮点数,取值范围为[0.0, 1.0]。其取1.0时表示最亮。 |
| brightness | number | 是 | 屏幕亮度值。该参数为浮点数,取值范围为[0.0, 1.0]或-1.0。1.0表示最亮,-1.0表示默认亮度。 |
| callback | AsyncCallback&lt;void&gt; | 是 | 回调函数。 |
**错误码:**
......@@ -3828,7 +3828,7 @@ setWindowBrightness(brightness: number): Promise&lt;void&gt;
| 参数名 | 类型 | 必填 | 说明 |
| ---------- | ------ | -- |----------------------------------------|
| brightness | number | 是 | 屏幕亮度值。该参数为浮点数,取值范围为[0.0, 1.0]。1.0表示最亮。 |
| brightness | number | 是 | 屏幕亮度值。该参数为浮点数,取值范围为[0.0, 1.0]或-1.0。1.0表示最亮,-1.0表示默认亮度。 |
**返回值:**
......@@ -6385,7 +6385,7 @@ setBrightness(brightness: number, callback: AsyncCallback&lt;void&gt;): void
| 参数名 | 类型 | 必填 | 说明 |
| ---------- | ------------------------- | ---- |---------------------------------------|
| brightness | number | 是 | 屏幕亮度值。该参数为浮点数,取值范围为[0.0, 1.0]。,1表示最亮。 |
| brightness | number | 是 | 屏幕亮度值。该参数为浮点数,取值范围为[0.0, 1.0]或-1.0。1.0表示最亮,-1.0表示默认亮度。 |
| callback | AsyncCallback&lt;void&gt; | 是 | 回调函数。 |
**示例:**
......@@ -6419,7 +6419,7 @@ setBrightness(brightness: number): Promise&lt;void&gt;
| 参数名 | 类型 | 必填 | 说明 |
| ---------- | ------ | ---- |------------------------------------------|
| brightness | number | 是 | 屏幕亮度值。该参数为浮点数。取值范围为[0.0, 1.0],取1.0时表示最亮。 |
| brightness | number | 是 | 屏幕亮度值。该参数为浮点数,取值范围为[0.0, 1.0]或-1.0。1.0表示最亮,-1.0表示默认亮度。 |
**返回值:**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册