diff --git a/api/@ohos.web.webview.d.ts b/api/@ohos.web.webview.d.ts index 8e462de7988cf5eb74079a88e7b33215e876e705..63760e7e7bae5c8c69b1e8d71f6f0b5c7e056618 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.