diff --git a/api/@ohos.web.webview.d.ts b/api/@ohos.web.webview.d.ts index 93c947d2b090ee1bdad1c95cbc767759ad48ef6c..ea86a8da1e0db50b2aeeb9b7701767f78c221748 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;