From 0a45288d2064abc47069ddbb3049111809046205 Mon Sep 17 00:00:00 2001 From: jiangxiaolong Date: Wed, 6 Aug 2025 14:09:48 +0800 Subject: [PATCH] modify attach state arkts info Signed-off-by: icaozhengfei --- api/@ohos.web.webview.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/@ohos.web.webview.d.ts b/api/@ohos.web.webview.d.ts index 93c947d2b0..ea86a8da1e 100644 --- a/api/@ohos.web.webview.d.ts +++ b/api/@ohos.web.webview.d.ts @@ -3550,6 +3550,7 @@ declare namespace webview { * @enum { number } * @syscap SystemCapability.Web.Webview.Core * @since 20 + * @arkts 1.1&1.2 */ enum ControllerAttachState { /** @@ -3557,6 +3558,7 @@ declare namespace webview { * * @syscap SystemCapability.Web.Webview.Core * @since 20 + * @arkts 1.1&1.2 */ UNATTACHED = 0, @@ -3565,6 +3567,7 @@ declare namespace webview { * * @syscap SystemCapability.Web.Webview.Core * @since 20 + * @arkts 1.1&1.2 */ ATTACHED = 1 } @@ -6559,6 +6562,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; @@ -6569,6 +6573,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; @@ -6579,6 +6584,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; @@ -6590,6 +6596,7 @@ declare namespace webview { * @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; -- Gitee