setWaterMarkFlag

Signed-off-by: ZhangYu <zhangyu578@huawei.com>
This commit is contained in:
ZhangYu 2024-03-23 10:49:32 +00:00
parent e6d0c3fb2f
commit e756e770a5
2 changed files with 28 additions and 0 deletions

View File

@ -120,6 +120,20 @@ declare namespace uiExtension {
* @since 12
*/
createSubWindowWithOptions(name: string, subWindowOptions: window.SubWindowOptions): Promise<window.Window>;
/**
* Set the watermark flag on the UIExtension window
*
* @param { boolean } enable - Add water mark flag to the UIExtension window if true, or remove flag if false
* @returns { Promise<void> } - The promise returned by the function
* @throws { BusinessError } 1300002 - The UIExtension window proxy is abnormal.
* @throws { BusinessError } 1300003 - This window manager service works abnormally.
* @throws { BusinessError } 1300008 - The operation is on invalid display.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @since 12
*/
setWaterMarkFlag(enable: boolean): Promise<void>;
}
/**

View File

@ -138,6 +138,20 @@ declare namespace uiExtensionHost {
* @since 12
*/
createSubWindowWithOptions(name: string, subWindowOptions: window.SubWindowOptions): Promise<window.Window>;
/**
* Set the watermark flag on the UIExtension window
*
* @param { boolean } enable - Add water mark flag to the UIExtension window if true, or remove flag if false
* @returns { Promise<void> } - The promise returned by the function
* @throws { BusinessError } 1300002 - The UIExtension window proxy is abnormal.
* @throws { BusinessError } 1300003 - This window manager service works abnormally.
* @throws { BusinessError } 1300008 - The operation is on invalid display.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @since 12
*/
setWaterMarkFlag(enable: boolean): Promise<void>;
}
/**