From 9d9f52d7b4335c54a25be61c359c5fd8c3868b8e Mon Sep 17 00:00:00 2001 From: zhangyao Date: Wed, 3 Sep 2025 15:11:05 +0800 Subject: [PATCH] =?UTF-8?q?Description:=E5=BC=BA=E5=9F=BAoverload=E5=9B=9E?= =?UTF-8?q?=E9=80=80=20IssueNo:https://gitee.com/openharmony/interface=5Fs?= =?UTF-8?q?dk-js/issues/ICW618=20Feature=20or=20Bugfix:=20Feature=20Binary?= =?UTF-8?q?=20Source:No=20Signed-off-by:=20zhangyao=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/@ohos.web.webview.d.ts | 39 ++++---------------------------------- 1 file changed, 4 insertions(+), 35 deletions(-) diff --git a/api/@ohos.web.webview.d.ts b/api/@ohos.web.webview.d.ts index 8e462de798..63760e7e7b 100644 --- a/api/@ohos.web.webview.d.ts +++ b/api/@ohos.web.webview.d.ts @@ -5338,7 +5338,8 @@ declare namespace webview { * The WebviewController must be associated with a Web component. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ hasImage(): Promise; @@ -5362,43 +5363,11 @@ declare namespace webview { * The WebviewController must be associated with a Web component. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ hasImage(callback: AsyncCallback): void; - /** - * Asynchronous search for image existence on the current page through Promise method. - * - * @returns { Promise } A promise resolved after query image has finished. - * @throws { BusinessError } 17100001 - Init error. - * The WebviewController must be associated with a Web component. - * @syscap SystemCapability.Web.Webview.Core - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - hasImageWithPromise(): Promise; - - /** - * Asynchronous search for the presence of an image on the current page through callback method. - * - * @param { AsyncCallback } callback - Called after query image has finished. - * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. - *
2. Incorrect parameter types. - * @throws { BusinessError } 17100001 - Init error. - * The WebviewController must be associated with a Web component. - * @syscap SystemCapability.Web.Webview.Core - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - hasImageWithCallback(callback: AsyncCallback): void; - - /** - * @arkts 1.2 - */ - overload hasImage{hasImageWithPromise,hasImageWithCallback}; - /** * Get back forward stack list from current webview. * @returns { BackForwardList } Back forward list for current webview. -- Gitee