From 6941c2278163cfc47c3ae4c1980aea1bf54d316b Mon Sep 17 00:00:00 2001 From: l30067243 Date: Wed, 27 Aug 2025 21:27:31 +0800 Subject: [PATCH] add setWatermarkImageForAppWindows api Signed-off-by: l30067243 --- api/@ohos.window.d.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index b5fdbf4d74..a65e6a8224 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -3765,6 +3765,22 @@ declare namespace window { */ function getTopNavDestinationName(windowId: number): Promise; + /** + * Set or remove the watermark image for all windows of the application. + * + * @param { image.PixelMap | undefined } pixelMap - The image that will be set as the watermark for all windows of the + * application. If undefined, it removes the watermark from all windows. + * @returns { Promise } Promise that returns no value. + * @throws { BusinessError } 801 - Capability not supported. + * Function setWatermarkImageForAppWindows can not to work correctly due to limited device capabilities. + * @throws { BusinessError } 1300003 - This window manager service works abnormally. + * @throws { BusinessError } 1300016 - Parameter error. Possible cause: 1. Invalid parameter range. + * @syscap SystemCapability.Window.SessionManager + * @since 21 + * @arkts 1.1&1.2 + */ + function setWatermarkImageForAppWindows(pixelMap: image.PixelMap | undefined): Promise; + /** * Register the callback of systemBarTintChange * -- Gitee