diff --git a/api/@internal/component/ets/web.d.ts b/api/@internal/component/ets/web.d.ts index 0c71f90c782d4c7d7aceebf8e9d659bd9bf83e72..762b984c43f83350180ee9b4049dbeef0518fe7f 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 671e6b93a593a16bc789ab8420e7169471f3f16f..340630fd6a4bfd44f0dce076cae538cdf438f4b3 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.