From ef599999b98f6518204dfe452391a2ebc6955e00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A2=E5=AE=87=E8=B1=AA?= Date: Tue, 12 Aug 2025 10:25:19 +0800 Subject: [PATCH 1/4] change1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 卢宇豪 --- api/@ohos.window.d.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 030523a592..5df112826e 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -3895,6 +3895,21 @@ declare namespace window { */ function notifyScreenshotEvent(eventType: ScreenshotEventType): 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 setAppWinodwsWatermarkImage 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 + */ + function setAppWindowsWatermarkImage(pixelMap: image.PixelMap | undefined): Promise; + /** * Display orientation * -- Gitee From 3381f30e3fa8944d805fe02ad75193db8c99c1b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A2=E5=AE=87=E8=B1=AA?= Date: Tue, 12 Aug 2025 10:31:14 +0800 Subject: [PATCH 2/4] change1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 卢宇豪 --- api/@ohos.window.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 5df112826e..d86b6868f9 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -3896,10 +3896,10 @@ declare namespace window { function notifyScreenshotEvent(eventType: ScreenshotEventType): Promise; /** - * Set or remove the watermark image for all windows of the application. + * Set or clear 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. + * application. If undefined, it clears the watermark from all windows. * @returns { Promise } Promise that returns no value. * @throws { BusinessError } 801 - Capability not supported. * Function setAppWinodwsWatermarkImage can not to work correctly due to limited device capabilities. -- Gitee From a1d9be9f8099f557ebfbb381dabd4023ce4ca160 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A2=E5=AE=87=E8=B1=AA?= Date: Tue, 12 Aug 2025 21:13:59 +0800 Subject: [PATCH 3/4] change1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 卢宇豪 --- api/@ohos.window.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index d86b6868f9..209daf0b01 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -3906,7 +3906,7 @@ declare namespace window { * @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 + * @since 21 */ function setAppWindowsWatermarkImage(pixelMap: image.PixelMap | undefined): Promise; -- Gitee From 4c41ff48cb7f3bf683ddc06d785c3934491037b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A2=E5=AE=87=E8=B1=AA?= Date: Tue, 12 Aug 2025 21:22:07 +0800 Subject: [PATCH 4/4] change1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 卢宇豪 --- api/@ohos.window.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 209daf0b01..1929acea06 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -3896,10 +3896,10 @@ declare namespace window { function notifyScreenshotEvent(eventType: ScreenshotEventType): Promise; /** - * Set or clear the watermark image for all windows of the application. + * 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 clears the watermark from all windows. + * application. If undefined, it removes the watermark from all windows. * @returns { Promise } Promise that returns no value. * @throws { BusinessError } 801 - Capability not supported. * Function setAppWinodwsWatermarkImage can not to work correctly due to limited device capabilities. -- Gitee