mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-30 19:02:32 +00:00
add api of safety layer flag
Signed-off-by: zhangkai <zhangkai324@huawei.com> Change-Id: I19d4e556932bd18970b5c392c3f25ee04e5c7f26
This commit is contained in:
parent
f874a9c93e
commit
e998c873a1
24
api/@ohos.window.d.ts
vendored
24
api/@ohos.window.d.ts
vendored
@ -2383,6 +2383,30 @@ declare namespace window {
|
||||
* @since 10
|
||||
*/
|
||||
resetAspectRatio(): Promise<void>;
|
||||
|
||||
/**
|
||||
* Set the watermark flag on the window.
|
||||
* @param { enable } add water mark flag to window if true, or remove flag if false.
|
||||
* @param { AsyncCallback<void> } callback - The callback of setWaterMarkFlag.
|
||||
* @throws { BusinessError } 1300002 - If window state is abnormally.
|
||||
* @throws { BusinessError } 1300003 - If system state is abnormally.
|
||||
* @throws { BusinessError } 1300008 - The operation is on invalid display.
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 10
|
||||
*/
|
||||
setWaterMarkFlag(enable: boolean, callback: AsyncCallback<void>): void;
|
||||
|
||||
/**
|
||||
* Set the watermark flag on the window.
|
||||
* @param { enable } add water mark flag to window if true, or remove flag if false.
|
||||
* @returns { Promise<void> } - The promise returned by the function.
|
||||
* @throws { BusinessError } 1300002 - If window state is abnormally.
|
||||
* @throws { BusinessError } 1300003 - If system state is abnormally.
|
||||
* @throws { BusinessError } 1300008 - The operation is on invalid display.
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 10
|
||||
*/
|
||||
setWaterMarkFlag(enable: boolean): Promise<void>;
|
||||
}
|
||||
/**
|
||||
* Window stage callback event type
|
||||
|
Loading…
Reference in New Issue
Block a user