From 64694e5164fabc21a47337b02aaedf334d2e00bf Mon Sep 17 00:00:00 2001 From: zy Date: Fri, 22 Aug 2025 11:48:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9EremoveImageForRecent=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zy --- 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..2a06e23b42 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -12190,6 +12190,21 @@ declare namespace window { * @since 19 */ setImageForRecent(imgResourceId: number, value: ImageFit): Promise; + + /** + * Remove Image for recent. + * + * @returns { Promise } Promise that returns no value. + * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. + * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. + * @throws { BusinessError } 1300002 - This window state is abnormal. + * @throws { BusinessError } 1300003 - This window manager service works abnormally. + * @syscap SystemCapability.Window.SessionManager + * @systemapi Hide this for inner system use. + * @stagemodelonly + * @since 21 + */ + removeImageForRecent(): Promise; } /** -- Gitee