diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index b5fdbf4d74e588d56f9ce6f8585a2e64997ccee6..a65e6a822401623eb1781bb7c15b9bf398681260 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 *