mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 14:13:45 +00:00
add ability of setting window grayScale
Signed-off-by: yuantianzhu1@huawei.com <yuantianzhu1@huawei.com>
This commit is contained in:
parent
291fe60eef
commit
39237955c9
14
api/@ohos.window.d.ts
vendored
14
api/@ohos.window.d.ts
vendored
@ -5726,6 +5726,20 @@ declare namespace window {
|
||||
* @since 12
|
||||
*/
|
||||
off(type: 'windowRectChange', callback?: Callback<RectChangeOptions>): void;
|
||||
|
||||
/**
|
||||
* Set gray scale of window.
|
||||
*
|
||||
* @param { number } grayScale - The value of gray scale.
|
||||
* @returns { Promise<void> } - The promise returned by the function.
|
||||
* @throws { BusinessError } 401 - Parameter error.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 1300002 - This window state is abnormal.
|
||||
* @throws { BusinessError } 1300003 - This window manager service works abnormally.
|
||||
* @syscap SystemCapability.Window.SessionManager
|
||||
* @since 12
|
||||
*/
|
||||
setWindowGrayScale(grayScale: number): Promise<void>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user