diff --git a/en/application-dev/reference/apis/js-apis-window.md b/en/application-dev/reference/apis/js-apis-window.md index 13edbc7a924ff1e0b5ad8ef7f3f6f2720eb49de2..076355e05fb10b53bac73c96029a6b19d8b1d6bb 100644 --- a/en/application-dev/reference/apis/js-apis-window.md +++ b/en/application-dev/reference/apis/js-apis-window.md @@ -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<void> | 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<void> | 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** diff --git a/zh-cn/application-dev/reference/apis/js-apis-window.md b/zh-cn/application-dev/reference/apis/js-apis-window.md index b84c15c074619b562a23c23dbbaaa37e9ec5f3c4..71b378d496829962252afff3eb8efe7fd195eb7d 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-window.md +++ b/zh-cn/application-dev/reference/apis/js-apis-window.md @@ -3785,7 +3785,7 @@ setWindowBrightness(brightness: number, callback: AsyncCallback<void>): vo | 参数名 | 类型 | 必填 | 说明 | | ---------- | ------------------------- | -- |-------------------------------------------| -| brightness | number | 是 | 屏幕亮度值。该参数为浮点数,取值范围为[0.0, 1.0]。其取1.0时表示最亮。 | +| brightness | number | 是 | 屏幕亮度值。该参数为浮点数,取值范围为[0.0, 1.0]或-1.0。1.0表示最亮,-1.0表示默认亮度。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | **错误码:** @@ -3828,7 +3828,7 @@ setWindowBrightness(brightness: number): Promise<void> | 参数名 | 类型 | 必填 | 说明 | | ---------- | ------ | -- |----------------------------------------| -| 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<void>): void | 参数名 | 类型 | 必填 | 说明 | | ---------- | ------------------------- | ---- |---------------------------------------| -| brightness | number | 是 | 屏幕亮度值。该参数为浮点数,取值范围为[0.0, 1.0]。,1表示最亮。 | +| brightness | number | 是 | 屏幕亮度值。该参数为浮点数,取值范围为[0.0, 1.0]或-1.0。1.0表示最亮,-1.0表示默认亮度。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | **示例:** @@ -6419,7 +6419,7 @@ setBrightness(brightness: number): Promise<void> | 参数名 | 类型 | 必填 | 说明 | | ---------- | ------ | ---- |------------------------------------------| -| brightness | number | 是 | 屏幕亮度值。该参数为浮点数。取值范围为[0.0, 1.0],取1.0时表示最亮。 | +| brightness | number | 是 | 屏幕亮度值。该参数为浮点数,取值范围为[0.0, 1.0]或-1.0。1.0表示最亮,-1.0表示默认亮度。 | **返回值:**