From 0ace52f9f20dd0d75c42507f1941612ae6d349a3 Mon Sep 17 00:00:00 2001 From: DreamLoveJay Date: Thu, 4 Sep 2025 16:12:34 +0800 Subject: [PATCH] =?UTF-8?q?ArkTS1.2=20SDK=E6=96=B0=E5=A2=9EAPI20=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: DreamLoveJay --- api/@internal/component/ets/web.d.ts | 1 + api/@ohos.web.webview.d.ts | 11 +++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/api/@internal/component/ets/web.d.ts b/api/@internal/component/ets/web.d.ts index 0c71f90c78..762b984c43 100644 --- a/api/@internal/component/ets/web.d.ts +++ b/api/@internal/component/ets/web.d.ts @@ -10760,6 +10760,7 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @since 20 + * @arkts 1.1&1.2 */ onActivateContent(callback: Callback): WebAttribute; diff --git a/api/@ohos.web.webview.d.ts b/api/@ohos.web.webview.d.ts index 671e6b93a5..340630fd6a 100644 --- a/api/@ohos.web.webview.d.ts +++ b/api/@ohos.web.webview.d.ts @@ -3724,6 +3724,7 @@ declare namespace webview { * @enum { number } * @syscap SystemCapability.Web.Webview.Core * @since 20 + * @arkts 1.1&1.2 */ enum ControllerAttachState { /** @@ -3731,6 +3732,7 @@ declare namespace webview { * * @syscap SystemCapability.Web.Webview.Core * @since 20 + * @arkts 1.1&1.2 */ UNATTACHED = 0, @@ -3739,6 +3741,7 @@ declare namespace webview { * * @syscap SystemCapability.Web.Webview.Core * @since 20 + * @arkts 1.1&1.2 */ ATTACHED = 1 } @@ -6857,6 +6860,7 @@ declare namespace webview { * @returns { ControllerAttachState } the attach state of controller * @syscap SystemCapability.Web.Webview.Core * @since 20 + * @arkts 1.1&1.2 */ getAttachState(): ControllerAttachState; @@ -6867,6 +6871,7 @@ declare namespace webview { * @param { Callback } callback Callback used to return the controller attach state. * @syscap SystemCapability.Web.Webview.Core * @since 20 + * @arkts 1.1&1.2 */ on(type: 'controllerAttachStateChange', callback: Callback): void; @@ -6877,6 +6882,7 @@ declare namespace webview { * @param { Callback } callback Callback used to return the controller attach state. * @syscap SystemCapability.Web.Webview.Core * @since 20 + * @arkts 1.1&1.2 */ off(type: 'controllerAttachStateChange', callback?: Callback): void; @@ -6884,12 +6890,13 @@ declare namespace webview { /** * Wait for the controller to attach a web component until timeout. * - * @param { number } timeout - the wait timeout, if timeout reach, promise will return, the unit is millisecond. + * @param { int } timeout - the wait timeout, if timeout reach, promise will return, the unit is millisecond. * @returns { Promise } Promise used to return the state of attach. * @syscap SystemCapability.Web.Webview.Core * @since 20 + * @arkts 1.1&1.2 */ - waitForAttached(timeout: number): Promise; + waitForAttached(timeout: int): Promise; /** * Enables debugging of web contents. -- Gitee