From db7f85f44089e93e939ea9fe5d73d03f23f44503 Mon Sep 17 00:00:00 2001 From: zhushengle Date: Wed, 10 Sep 2025 12:28:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=200728=E5=9B=9E=E5=90=88master?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhushengle Change-Id: I7718843a7e6f773995ed5f52c906814528c21552 --- api/@internal/component/ets/web.d.ts | 1238 ++++++++++++++++---------- api/@ohos.web.webview.d.ts | 1165 +++++++++++++++--------- 2 files changed, 1545 insertions(+), 858 deletions(-) diff --git a/api/@internal/component/ets/web.d.ts b/api/@internal/component/ets/web.d.ts index 174c30b769..cb1f0d4895 100644 --- a/api/@internal/component/ets/web.d.ts +++ b/api/@internal/component/ets/web.d.ts @@ -20,9 +20,13 @@ /*** if arkts 1.2 */ import webview from '../../@ohos.web.webview'; -import { CommonMethod, Callback } from './common'; +import image from '../../@ohos.multimedia.image'; +import { CommonMethod, Callback, TouchEvent, NestedScrollOptions, KeyEvent, HapticFeedbackMode } from './common'; import { CustomBuilder } from './builder' import { Resource } from '../../global/resource'; +import { Position, ResourceStr } from './units'; +import { MenuType, EditMenuOptions } from './textCommon'; +import { CopyOptions, NestedScrollMode } from './enums'; /*** endif */ /** @@ -100,7 +104,8 @@ type OnOverrideErrorPageCallback = (errorPageEvent: OnErrorReceiveEvent) => stri * @param { LargestContentfulPaint } largestContentfulPaint - callback information of onLargestContentfulPaint. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ type OnLargestContentfulPaintCallback = (largestContentfulPaint: LargestContentfulPaint) => void; @@ -111,7 +116,8 @@ type OnLargestContentfulPaintCallback = (largestContentfulPaint: LargestContentf * @param { FirstMeaningfulPaint } firstMeaningfulPaint - callback information of onFirstMeaningfulPaint. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ type OnFirstMeaningfulPaintCallback = (firstMeaningfulPaint: FirstMeaningfulPaint) => void; @@ -125,7 +131,8 @@ type OnFirstMeaningfulPaintCallback = (firstMeaningfulPaint: FirstMeaningfulPain * false causes the Web to continue loading the url as usual. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ type OnOverrideUrlLoadingCallback = (webResourceRequest: WebResourceRequest) => boolean; @@ -146,7 +153,8 @@ type OnIntelligentTrackingPreventionCallback = (details: IntelligentTrackingPrev * @typedef { function } OnNativeEmbedVisibilityChangeCallback * @param { NativeEmbedVisibilityInfo } nativeEmbedVisibilityInfo - callback information of onNativeEmbedVisibilityChange. * @syscap SystemCapability.Web.Webview.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ type OnNativeEmbedVisibilityChangeCallback = (nativeEmbedVisibilityInfo: NativeEmbedVisibilityInfo) => void; @@ -156,7 +164,8 @@ type OnNativeEmbedVisibilityChangeCallback = (nativeEmbedVisibilityInfo: NativeE * @typedef NativeMediaPlayerConfig * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ declare interface NativeMediaPlayerConfig { /** @@ -167,7 +176,8 @@ declare interface NativeMediaPlayerConfig { * Deflault value: false. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ enable: boolean; @@ -179,7 +189,8 @@ declare interface NativeMediaPlayerConfig { * Deflault value: false. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ shouldOverlay: boolean; } @@ -190,7 +201,8 @@ declare interface NativeMediaPlayerConfig { * @typedef { function } OnRenderProcessNotRespondingCallback * @param { RenderProcessNotRespondingData } data - details of onRenderProcessNotResponding. * @syscap SystemCapability.Web.Webview.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ type OnRenderProcessNotRespondingCallback = (data : RenderProcessNotRespondingData) => void; @@ -199,7 +211,8 @@ type OnRenderProcessNotRespondingCallback = (data : RenderProcessNotRespondingDa * * @typedef { function } OnRenderProcessRespondingCallback * @syscap SystemCapability.Web.Webview.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ type OnRenderProcessRespondingCallback = () => void; @@ -210,7 +223,8 @@ type OnRenderProcessRespondingCallback = () => void; * @param { ViewportFit } viewportFit - details of OnViewportFitChangedCallback. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ type OnViewportFitChangedCallback = (viewportFit: ViewportFit) => void; @@ -279,12 +293,13 @@ declare interface WebKeyboardOptions { /** * Set the enter key type when the system keyboard is used, the "enter" key related to the {@link inputMethodEngine}. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - enterKeyType?: number; + enterKeyType?: int; /** * Set the custom keyboard builder when the custom keyboard is used. @@ -330,37 +345,39 @@ declare class WebKeyboardController { /** * Deletes the specified length of characters from the back to the front in the Web input field. * - * @param { number } length - length of text, which will be deleted from back to front. + * @param { int } length - length of text, which will be deleted from back to front. * @syscap SystemCapability.Web.Webview.Core * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - deleteForward(length: number): void; + deleteForward(length: int): void; /** * Delete the specified length of characters in the Web input field from the beginning to the end. * - * @param { number } length - length of text, which will be deleted from front to back. + * @param { int } length - length of text, which will be deleted from front to back. * @syscap SystemCapability.Web.Webview.Core * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - deleteBackward(length: number): void; + deleteBackward(length: int): void; /** * Send the function of the key. * - * @param { number } key - action indicates the "enter" key related to the {@link inputMethodEngine} + * @param { int } key - action indicates the "enter" key related to the {@link inputMethodEngine} * @syscap SystemCapability.Web.Webview.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - sendFunctionKey(key: number): void; + sendFunctionKey(key: int): void; /** * Close the custom keyboard. * * @syscap SystemCapability.Web.Webview.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ close(): void; } @@ -392,7 +409,8 @@ declare interface WebKeyboardCallbackInfo { * @type { Record } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ attributes: Record; } @@ -424,7 +442,8 @@ type WebKeyboardCallback = (keyboardCallbackInfo: WebKeyboardCallbackInfo) => We * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ declare enum MessageLevel { /** @@ -439,7 +458,8 @@ declare enum MessageLevel { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ Debug, @@ -455,7 +475,8 @@ declare enum MessageLevel { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ Error, @@ -471,7 +492,8 @@ declare enum MessageLevel { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ Info, @@ -487,7 +509,8 @@ declare enum MessageLevel { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ Log, @@ -503,7 +526,8 @@ declare enum MessageLevel { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ Warn } @@ -530,7 +554,8 @@ declare enum MessageLevel { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ declare enum MixedMode { /** @@ -552,7 +577,8 @@ declare enum MixedMode { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ All = 0, @@ -575,7 +601,8 @@ declare enum MixedMode { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ Compatible = 1, @@ -598,7 +625,8 @@ declare enum MixedMode { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ None = 2 } @@ -627,7 +655,8 @@ type OnSafeBrowsingCheckResultCallback = (threatType: ThreatType) => void; * @enum { number } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ declare enum HitTestType { /** @@ -641,7 +670,8 @@ declare enum HitTestType { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ EditText = 0, @@ -656,7 +686,8 @@ declare enum HitTestType { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ Email = 1, @@ -671,7 +702,8 @@ declare enum HitTestType { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ HttpAnchor = 2, @@ -686,7 +718,8 @@ declare enum HitTestType { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ HttpAnchorImg = 3, @@ -701,7 +734,8 @@ declare enum HitTestType { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ Img = 4, @@ -716,7 +750,8 @@ declare enum HitTestType { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ Map = 5, @@ -731,7 +766,8 @@ declare enum HitTestType { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ Phone = 6, @@ -746,7 +782,8 @@ declare enum HitTestType { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ Unknown = 7 } @@ -875,7 +912,8 @@ declare enum CacheMode { * @enum { number } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ declare enum OverScrollMode { /** @@ -883,7 +921,8 @@ declare enum OverScrollMode { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ NEVER = 0, @@ -892,7 +931,8 @@ declare enum OverScrollMode { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ ALWAYS = 1 } @@ -903,7 +943,8 @@ declare enum OverScrollMode { * @enum { number } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ declare enum BlurOnKeyboardHideMode { /** @@ -911,7 +952,8 @@ declare enum BlurOnKeyboardHideMode { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ SILENT = 0, @@ -920,7 +962,8 @@ declare enum BlurOnKeyboardHideMode { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ BLUR = 1 } @@ -938,7 +981,8 @@ declare enum BlurOnKeyboardHideMode { * @enum { number } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ declare enum WebDarkMode { /** @@ -952,7 +996,8 @@ declare enum WebDarkMode { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ Off = 0, @@ -967,7 +1012,8 @@ declare enum WebDarkMode { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ On = 1, @@ -982,7 +1028,8 @@ declare enum WebDarkMode { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ Auto = 2 } @@ -1087,7 +1134,8 @@ declare enum ThreatType { * @typedef WebMediaOptions * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ declare interface WebMediaOptions { /** @@ -1102,12 +1150,13 @@ declare interface WebMediaOptions { * The maximum validity period is 60 seconds. Due to the approximate value, * the validity period may have a deviation of less than 1 second. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ - resumeInterval?: number; + resumeInterval?: int; /** * Whether the audio of each web is exclusive. @@ -1123,7 +1172,8 @@ declare interface WebMediaOptions { * {@code true} means audio exclusivity for multiple web instances within the application, {@code false} otherwise. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ audioExclusive?: boolean; @@ -1133,6 +1183,7 @@ declare interface WebMediaOptions { * @type { ?AudioSessionType } * @syscap SystemCapability.Web.Webview.Core * @since 20 + * @arkts 1.1&1.2 */ audioSessionType?: AudioSessionType; } @@ -1200,7 +1251,8 @@ declare interface ScreenCaptureConfig { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ declare class FullScreenExitHandler { /** @@ -1222,7 +1274,8 @@ declare class FullScreenExitHandler { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ constructor(); @@ -1245,7 +1298,8 @@ declare class FullScreenExitHandler { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ exitFullScreen(): void; } @@ -1265,7 +1319,8 @@ declare class FullScreenExitHandler { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ declare interface FullScreenEnterEvent { /** @@ -1283,7 +1338,8 @@ declare interface FullScreenEnterEvent { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ handler: FullScreenExitHandler; @@ -1302,7 +1358,8 @@ declare interface FullScreenEnterEvent { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ videoWidth?: number; @@ -1321,7 +1378,8 @@ declare interface FullScreenEnterEvent { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ videoHeight?: number; } @@ -1343,7 +1401,8 @@ declare interface FullScreenEnterEvent { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ type OnFullScreenEnterCallback = (event: FullScreenEnterEvent) => void; @@ -1381,7 +1440,8 @@ type OnNativeEmbedObjectParamChangeCallback = (event: NativeEmbedParamDataInfo) * @enum { number } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ declare enum RenderExitReason { /** @@ -1395,7 +1455,8 @@ declare enum RenderExitReason { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ ProcessAbnormalTermination = 0, @@ -1410,7 +1471,8 @@ declare enum RenderExitReason { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ ProcessWasKilled = 1, @@ -1425,7 +1487,8 @@ declare enum RenderExitReason { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ ProcessCrashed = 2, @@ -1440,7 +1503,8 @@ declare enum RenderExitReason { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ ProcessOom = 3, @@ -1455,7 +1519,8 @@ declare enum RenderExitReason { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ ProcessExitUnknown = 4 } @@ -1466,7 +1531,8 @@ declare enum RenderExitReason { * @typedef { function } OnContextMenuHideCallback * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ type OnContextMenuHideCallback = () => void; @@ -1483,7 +1549,8 @@ type OnContextMenuHideCallback = () => void; * @enum { number } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ declare enum SslError { /** @@ -1497,7 +1564,8 @@ declare enum SslError { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ Invalid = 0, @@ -1512,7 +1580,8 @@ declare enum SslError { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ HostMismatch = 1, @@ -1527,7 +1596,8 @@ declare enum SslError { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ DateInvalid = 2, @@ -1542,7 +1612,8 @@ declare enum SslError { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ Untrusted = 3 } @@ -1640,7 +1711,8 @@ declare enum FileSelectorMode { * @enum { number } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ declare enum WebLayoutMode { /** @@ -1648,7 +1720,8 @@ declare enum WebLayoutMode { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ NONE = 0, @@ -1657,7 +1730,8 @@ declare enum WebLayoutMode { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ FIT_CONTENT = 1 } @@ -1667,14 +1741,16 @@ declare enum WebLayoutMode { * * @enum { number } * @syscap SystemCapability.Web.Webview.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ declare enum RenderProcessNotRespondingReason { /** * Timeout for input sent to render process. * * @syscap SystemCapability.Web.Webview.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ INPUT_TIMEOUT = 0, @@ -1682,7 +1758,8 @@ declare enum RenderProcessNotRespondingReason { * The new webpage loading navigation response timed out. * * @syscap SystemCapability.Web.Webview.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ NAVIGATION_COMMIT_TIMEOUT = 1 } @@ -2025,7 +2102,8 @@ declare class HttpAuthHandler { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ isHttpAuthInfoSaved(): boolean; } @@ -2072,7 +2150,8 @@ declare class SslErrorHandler { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ handleConfirm(): void; @@ -2087,7 +2166,8 @@ declare class SslErrorHandler { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ handleCancel(): void; @@ -2184,7 +2264,8 @@ declare class ClientAuthenticationHandler { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ cancel(): void; @@ -2218,7 +2299,8 @@ declare class ClientAuthenticationHandler { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ declare enum ProtectedResourceType { /** @@ -2232,7 +2314,8 @@ declare enum ProtectedResourceType { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ MidiSysex = 'TYPE_MIDI_SYSEX', @@ -2248,7 +2331,8 @@ declare enum ProtectedResourceType { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ VIDEO_CAPTURE = 'TYPE_VIDEO_CAPTURE', @@ -2264,7 +2348,8 @@ declare enum ProtectedResourceType { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ AUDIO_CAPTURE = 'TYPE_AUDIO_CAPTURE', @@ -2273,7 +2358,8 @@ declare enum ProtectedResourceType { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ SENSOR = 'TYPE_SENSOR' } @@ -2504,7 +2590,8 @@ declare class DataResubmissionHandler { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ resend(): void; @@ -2519,7 +2606,8 @@ declare class DataResubmissionHandler { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ cancel(): void; } @@ -2535,7 +2623,8 @@ declare class DataResubmissionHandler { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ declare class ControllerHandler { /** @@ -2549,7 +2638,8 @@ declare class ControllerHandler { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ constructor(); @@ -2566,7 +2656,8 @@ declare class ControllerHandler { * @param { WebviewController } controller * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ setWebController(controller: WebviewController): void; } @@ -2810,7 +2901,8 @@ declare enum ContextMenuInputFieldType { * @enum { number } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ declare enum NativeEmbedStatus { /** @@ -2818,8 +2910,9 @@ declare enum NativeEmbedStatus { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 - */ + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 + */ CREATE = 0, /** @@ -2827,7 +2920,8 @@ declare enum NativeEmbedStatus { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ UPDATE = 1, @@ -2836,7 +2930,8 @@ declare enum NativeEmbedStatus { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ DESTROY = 2, @@ -2845,7 +2940,8 @@ declare enum NativeEmbedStatus { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ ENTER_BFCACHE = 3, @@ -2854,7 +2950,8 @@ declare enum NativeEmbedStatus { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ LEAVE_BFCACHE = 4 } @@ -2872,7 +2969,8 @@ declare enum NativeEmbedStatus { * @enum { number } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ declare enum ContextMenuEditStateFlags { /** @@ -2886,7 +2984,8 @@ declare enum ContextMenuEditStateFlags { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ NONE = 0, @@ -2901,7 +3000,8 @@ declare enum ContextMenuEditStateFlags { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ CAN_CUT = 1 << 0, @@ -2916,7 +3016,8 @@ declare enum ContextMenuEditStateFlags { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ CAN_COPY = 1 << 1, @@ -2931,7 +3032,8 @@ declare enum ContextMenuEditStateFlags { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ CAN_PASTE = 1 << 2, @@ -2946,7 +3048,8 @@ declare enum ContextMenuEditStateFlags { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ CAN_SELECT_ALL = 1 << 3 } @@ -3055,7 +3158,8 @@ declare enum RenderMode { * @enum { number } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ declare enum ViewportFit { /** @@ -3063,7 +3167,8 @@ declare enum ViewportFit { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ AUTO = 0, @@ -3073,7 +3178,8 @@ declare enum ViewportFit { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ CONTAINS = 1, @@ -3083,7 +3189,8 @@ declare enum ViewportFit { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ COVER = 2 } @@ -3122,14 +3229,14 @@ declare class WebContextMenuParam { /** * Horizontal offset coordinates of the menu within the Web component. * - * @returns { number } The context menu x coordinate. + * @returns { int } The context menu x coordinate. * @syscap SystemCapability.Web.Webview.Core * @since 9 */ /** * Horizontal offset coordinates of the menu within the Web component. * - * @returns { number } The context menu x coordinate. + * @returns { int } The context menu x coordinate. * Returns a non-negative integer if normal, otherwise returns -1. * Unit: vp. * @syscap SystemCapability.Web.Webview.Core @@ -3137,19 +3244,19 @@ declare class WebContextMenuParam { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - x(): number; + x(): int; /** * Vertical offset coordinates for the menu within the Web component. * - * @returns { number } The context menu y coordinate. + * @returns { int } The context menu y coordinate. * @syscap SystemCapability.Web.Webview.Core * @since 9 */ /** * Vertical offset coordinates for the menu within the Web component. * - * @returns { number } The context menu y coordinate. + * @returns { int } The context menu y coordinate. * Returns a non-negative integer if normal, otherwise returns -1. * Unit: vp. * @syscap SystemCapability.Web.Webview.Core @@ -3157,7 +3264,7 @@ declare class WebContextMenuParam { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - y(): number; + y(): int; /** * If the long-press location is the link returns the link's security-checked URL. @@ -3324,40 +3431,40 @@ declare class WebContextMenuParam { /** * Returns the context editable flags {@link ContextMenuEditStateFlags}. * - * @returns { number } + * @returns { int } * @syscap SystemCapability.Web.Webview.Core * @since 9 */ /** * Returns the context editable flags {@link ContextMenuEditStateFlags}. * - * @returns { number } + * @returns { int } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - getEditStateFlags(): number; + getEditStateFlags(): int; /** * Returns the selection menu preview width. * - * @returns { number } The preview menu width. + * @returns { int } The preview menu width. * @syscap SystemCapability.Web.Webview.Core * @since arkts {'1.1':'13', '1.2':'20'} * @arkts 1.1&1.2 */ - getPreviewWidth(): number; + getPreviewWidth(): int; /** * Returns the selection menu preview height. * - * @returns { number } The preview menu height. + * @returns { int } The preview menu height. * @syscap SystemCapability.Web.Webview.Core * @since arkts {'1.1':'13', '1.2':'20'} * @arkts 1.1&1.2 */ - getPreviewHeight(): number; + getPreviewHeight(): int; } /** @@ -3585,7 +3692,8 @@ declare class ConsoleMessage { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ getMessage(): string; @@ -3611,21 +3719,22 @@ declare class ConsoleMessage { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ getSourceId(): string; /** * Gets the line number of a console message. * - * @returns { number } Return the line number of a console message. + * @returns { int } Return the line number of a console message. * @syscap SystemCapability.Web.Webview.Core * @since 8 */ /** * Gets the line number of a console message. * - * @returns { number } Return the line number of a console message. + * @returns { int } Return the line number of a console message. * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 @@ -3633,13 +3742,14 @@ declare class ConsoleMessage { /** * Gets the line number of a console message. * - * @returns { number } Return the line number of a console message. + * @returns { int } Return the line number of a console message. * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ - getLineNumber(): number; + getLineNumber(): int; /** * Gets the message level of a console message. @@ -3655,7 +3765,8 @@ declare class ConsoleMessage { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ getMessageLevel(): MessageLevel; } @@ -3735,7 +3846,8 @@ declare class WebResourceRequest { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ getRequestHeader(): Array
; @@ -3761,7 +3873,8 @@ declare class WebResourceRequest { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ getRequestUrl(): string; @@ -3787,7 +3900,8 @@ declare class WebResourceRequest { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ isRequestGesture(): boolean; @@ -3813,7 +3927,8 @@ declare class WebResourceRequest { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ isMainFrame(): boolean; @@ -3839,7 +3954,8 @@ declare class WebResourceRequest { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ isRedirect(): boolean; @@ -3865,7 +3981,8 @@ declare class WebResourceRequest { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ getRequestMethod(): string; } @@ -3925,14 +4042,15 @@ declare class WebResourceResponse { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ getResponseData(): string; /** * Gets the response data. * - * @returns { string | number | ArrayBuffer | Resource | undefined } Return the response data. + * @returns { string | int | ArrayBuffer | Resource | undefined } Return the response data. * string type indicate string in HTML format. * number type indicate file handle. * Resource type indicate $rawfile resource. @@ -3943,7 +4061,7 @@ declare class WebResourceResponse { /** * Gets the response data. * - * @returns { string | number | ArrayBuffer | Resource | undefined } Return the response data. + * @returns { string | int | ArrayBuffer | Resource | undefined } Return the response data. * string type indicate string in HTML format. * number type indicate file handle. * Resource type indicate $rawfile resource. @@ -3952,7 +4070,7 @@ declare class WebResourceResponse { * @crossplatform * @since 18 */ - getResponseDataEx(): string | number | ArrayBuffer | Resource | undefined; + getResponseDataEx(): string | int | ArrayBuffer | Resource | undefined; /** * Gets the response encoding. @@ -3968,7 +4086,8 @@ declare class WebResourceResponse { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ getResponseEncoding(): string; @@ -3986,7 +4105,8 @@ declare class WebResourceResponse { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ getResponseMimeType(): string; @@ -4012,7 +4132,8 @@ declare class WebResourceResponse { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ getReasonMessage(): string; @@ -4045,32 +4166,33 @@ declare class WebResourceResponse { /** * Gets the response code. * - * @returns { number } Return the response code. + * @returns { int } Return the response code. * @syscap SystemCapability.Web.Webview.Core * @since 8 */ /** * Gets the response code. * - * @returns { number } Return the response code. + * @returns { int } Return the response code. * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ - getResponseCode(): number; + getResponseCode(): int; /** * Sets the response data. * - * @param { string | number | Resource } data - the response data. + * @param { string | int | Resource } data - the response data. * @syscap SystemCapability.Web.Webview.Core * @since 9 */ /** * Sets the response data. * - * @param { string | number | Resource } data - the response data. + * @param { string | int | Resource } data - the response data. * string type indicate strings in HTML format. * number type indicate file handle. * Resource type indicate $rawfile resource. @@ -4080,16 +4202,17 @@ declare class WebResourceResponse { /** * Sets the response data. * - * @param { string | number | Resource | ArrayBuffer } data - the response data. + * @param { string | int | Resource | ArrayBuffer } data - the response data. * string type indicate strings in HTML format. * number type indicate file handle. * Resource type indicate $rawfile resource. * ArrayBuffer type indicate binary data. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ - setResponseData(data: string | number | Resource | ArrayBuffer): void; + setResponseData(data: string | int | Resource | ArrayBuffer): void; /** * Sets the response encoding. @@ -4112,7 +4235,8 @@ declare class WebResourceResponse { * @param { string } encoding the response encoding. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ setResponseEncoding(encoding: string): void; @@ -4137,7 +4261,8 @@ declare class WebResourceResponse { * @param { string } mimeType the response MIME type. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ setResponseMimeType(mimeType: string): void; @@ -4162,7 +4287,8 @@ declare class WebResourceResponse { * @param { string } reason the reason message. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ setReasonMessage(reason: string): void; @@ -4194,14 +4320,14 @@ declare class WebResourceResponse { /** * Sets the response code. * - * @param { number } code the response code. + * @param { int } code the response code. * @syscap SystemCapability.Web.Webview.Core * @since 9 */ /** * Sets the response code. * - * @param { number } code the response code. + * @param { int } code the response code. * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 @@ -4209,12 +4335,13 @@ declare class WebResourceResponse { /** * Sets the response code. * - * @param { number } code the response code. + * @param { int } code the response code. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - setResponseCode(code: number): void; + setResponseCode(code: int): void; /** * Sets the response is ready or not. @@ -4289,7 +4416,8 @@ declare class WebResourceResponse { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ declare interface Header { /** @@ -4314,7 +4442,8 @@ declare interface Header { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ headerKey: string; @@ -4340,7 +4469,8 @@ declare interface Header { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ headerValue: string; } @@ -4364,7 +4494,8 @@ declare interface Header { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ declare class WebResourceError { /** @@ -4386,7 +4517,8 @@ declare class WebResourceError { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ constructor(); @@ -4412,21 +4544,22 @@ declare class WebResourceError { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ getErrorInfo(): string; /** * Gets the code of the Web resource error. * - * @returns { number } Return the code of the Web resource error. + * @returns { int } Return the code of the Web resource error. * @syscap SystemCapability.Web.Webview.Core * @since 8 */ /** * Gets the code of the Web resource error. * - * @returns { number } Return the code of the Web resource error. + * @returns { int } Return the code of the Web resource error. * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @since 10 @@ -4434,13 +4567,14 @@ declare class WebResourceError { /** * Gets the code of the Web resource error. * - * @returns { number } Return the code of the Web resource error. + * @returns { int } Return the code of the Web resource error. * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ - getErrorCode(): number; + getErrorCode(): int; } /** @@ -4564,7 +4698,8 @@ declare class WebCookie { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ declare class EventResult { /** @@ -4572,7 +4707,8 @@ declare class EventResult { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ constructor(); @@ -4585,7 +4721,8 @@ declare class EventResult { * Default value: true. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ setGestureEventResult(result: boolean): void; @@ -4602,7 +4739,8 @@ declare class EventResult { * {@code false} Indicates the propagation of events farther along. * Default value: true. * @syscap SystemCapability.Web.Webview.Core - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ setGestureEventResult(result: boolean, stopPropagation: boolean): void; @@ -5239,7 +5377,8 @@ interface WebInterface { * @typedef NativeEmbedInfo * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ declare interface NativeEmbedInfo { /** @@ -5248,7 +5387,8 @@ declare interface NativeEmbedInfo { * @type { ?string } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ id?: string; @@ -5258,7 +5398,8 @@ declare interface NativeEmbedInfo { * @type { ?string } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ type?: string; @@ -5268,7 +5409,8 @@ declare interface NativeEmbedInfo { * @type { ?string } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ src?: string; @@ -5279,29 +5421,32 @@ declare interface NativeEmbedInfo { * @type { ?Position } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ position?: Position; /** * The embed tag width, in px. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ - width?: number; + width?: int; /** * The embed tag height, in px. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ - height?: number; + height?: int; /** * The embed tag url. @@ -5309,7 +5454,8 @@ declare interface NativeEmbedInfo { * @type { ?string } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ url?: string; @@ -5319,7 +5465,8 @@ declare interface NativeEmbedInfo { * @type { ?string } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ tag?: string; @@ -5330,7 +5477,8 @@ declare interface NativeEmbedInfo { * @type { ?Map } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ params?: Map; } @@ -5349,7 +5497,8 @@ declare interface NativeEmbedInfo { * @typedef NativeEmbedDataInfo * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ declare interface NativeEmbedDataInfo { /** @@ -5358,7 +5507,8 @@ declare interface NativeEmbedDataInfo { * @type { ?NativeEmbedStatus } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ status?: NativeEmbedStatus; @@ -5368,7 +5518,8 @@ declare interface NativeEmbedDataInfo { * @type { ?string } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ surfaceId?: string; @@ -5378,7 +5529,8 @@ declare interface NativeEmbedDataInfo { * @type { ?string } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ embedId?: string; @@ -5388,7 +5540,8 @@ declare interface NativeEmbedDataInfo { * @type { ?NativeEmbedInfo } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ info?: NativeEmbedInfo; } @@ -5398,7 +5551,8 @@ declare interface NativeEmbedDataInfo { * * @typedef NativeEmbedVisibilityInfo * @syscap SystemCapability.Web.Webview.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ declare interface NativeEmbedVisibilityInfo { /** @@ -5407,7 +5561,8 @@ declare interface NativeEmbedVisibilityInfo { * * @type { boolean } * @syscap SystemCapability.Web.Webview.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ visibility: boolean; @@ -5416,7 +5571,8 @@ declare interface NativeEmbedVisibilityInfo { * * @type { string } * @syscap SystemCapability.Web.Webview.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ embedId: string; } @@ -5435,7 +5591,8 @@ declare interface NativeEmbedVisibilityInfo { * @typedef NativeEmbedTouchInfo * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ declare interface NativeEmbedTouchInfo { /** @@ -5444,7 +5601,8 @@ declare interface NativeEmbedTouchInfo { * @type { ?string } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ embedId?: string; @@ -5454,7 +5612,8 @@ declare interface NativeEmbedTouchInfo { * @type { ?TouchEvent } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ touchEvent?: TouchEvent; @@ -5464,7 +5623,8 @@ declare interface NativeEmbedTouchInfo { * @type { ?EventResult } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ result?: EventResult; } @@ -5625,28 +5785,31 @@ declare interface NativeEmbedParamDataInfo { * @typedef FirstMeaningfulPaint * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ declare interface FirstMeaningfulPaint { /** * Start time of navigation, in microseconds. * - * @type { ?number } + * @type { ?long } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - navigationStartTime?: number; + navigationStartTime?: long; /** * Paint time of first meaningful content, in milliseconds. * - * @type { ?number } + * @type { ?long } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - firstMeaningfulPaintTime?: number; + firstMeaningfulPaintTime?: long; } /** @@ -5655,68 +5818,75 @@ declare interface FirstMeaningfulPaint { * @typedef LargestContentfulPaint * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ declare interface LargestContentfulPaint { /** * Start time of navigation, in microseconds. * - * @type { ?number } + * @type { ?long } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - navigationStartTime?: number; + navigationStartTime?: long; /** * Paint time of largest image, in milliseconds. * - * @type { ?number } + * @type { ?long } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - largestImagePaintTime?: number; + largestImagePaintTime?: long; /** * Paint time of largest text, in milliseconds. * - * @type { ?number } + * @type { ?long } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - largestTextPaintTime?: number; + largestTextPaintTime?: long; /** * Bits per pixel of image, in milliseconds. * - * @type { ?number } + * @type { ?double } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - imageBPP?: number; + imageBPP?: double; /** * Load start time of largest image, in milliseconds. * - * @type { ?number } + * @type { ?long } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - largestImageLoadStartTime?: number; + largestImageLoadStartTime?: long; /** * Number of pixels of the maximum image. * - * @type { ?number } + * @type { ?long } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - largestImageLoadEndTime?: number; + largestImageLoadEndTime?: long; } /** @@ -5724,7 +5894,8 @@ declare interface LargestContentfulPaint { * * @interface RenderProcessNotRespondingData * @syscap SystemCapability.Web.Webview.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ declare interface RenderProcessNotRespondingData { /** @@ -5732,25 +5903,28 @@ declare interface RenderProcessNotRespondingData { * * @type { string } * @syscap SystemCapability.Web.Webview.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ jsStack: string; /** * Process id of render process not responding. * - * @type { number } + * @type { int } * @syscap SystemCapability.Web.Webview.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - pid: number; + pid: int; /** * Reason for the render process not responding. * * @type { RenderProcessNotRespondingReason } * @syscap SystemCapability.Web.Webview.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ reason: RenderProcessNotRespondingReason; } @@ -5853,14 +6027,14 @@ declare interface OnProgressChangeEvent { /** * The new progress of the page. * - * @type { number } + * @type { int } * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - newProgress: number; + newProgress: int; } /** @@ -5870,7 +6044,8 @@ declare interface OnProgressChangeEvent { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ declare interface OnTitleReceiveEvent { /** @@ -5880,7 +6055,8 @@ declare interface OnTitleReceiveEvent { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ title: string; @@ -5938,7 +6114,8 @@ declare interface OnGeolocationShowEvent { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ declare interface OnAlertEvent { /** @@ -5948,7 +6125,8 @@ declare interface OnAlertEvent { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ url: string; @@ -5959,7 +6137,8 @@ declare interface OnAlertEvent { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ message: string; @@ -5970,7 +6149,8 @@ declare interface OnAlertEvent { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ result: JsResult; } @@ -5990,7 +6170,8 @@ declare interface OnAlertEvent { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ declare interface OnBeforeUnloadEvent { /** @@ -6008,7 +6189,8 @@ declare interface OnBeforeUnloadEvent { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ url: string; @@ -6027,7 +6209,8 @@ declare interface OnBeforeUnloadEvent { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ message: string; @@ -6046,7 +6229,8 @@ declare interface OnBeforeUnloadEvent { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ result: JsResult; @@ -6176,7 +6360,8 @@ declare interface OnPromptEvent { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ declare interface OnConsoleEvent { /** @@ -6186,7 +6371,8 @@ declare interface OnConsoleEvent { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ message: ConsoleMessage; } @@ -6198,7 +6384,8 @@ declare interface OnConsoleEvent { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ declare interface OnErrorReceiveEvent { /** @@ -6208,7 +6395,8 @@ declare interface OnErrorReceiveEvent { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ request: WebResourceRequest; @@ -6219,7 +6407,8 @@ declare interface OnErrorReceiveEvent { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ error: WebResourceError; } @@ -6231,7 +6420,8 @@ declare interface OnErrorReceiveEvent { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ declare interface OnHttpErrorReceiveEvent { /** @@ -6241,7 +6431,8 @@ declare interface OnHttpErrorReceiveEvent { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ request: WebResourceRequest; @@ -6252,7 +6443,8 @@ declare interface OnHttpErrorReceiveEvent { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ response: WebResourceResponse; } @@ -6264,7 +6456,8 @@ declare interface OnHttpErrorReceiveEvent { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ declare interface OnDownloadStartEvent { /** @@ -6274,7 +6467,8 @@ declare interface OnDownloadStartEvent { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ url: string; @@ -6285,7 +6479,8 @@ declare interface OnDownloadStartEvent { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ userAgent: string; @@ -6304,7 +6499,8 @@ declare interface OnDownloadStartEvent { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ contentDisposition: string; @@ -6315,20 +6511,22 @@ declare interface OnDownloadStartEvent { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ mimetype: string; /** * The contentLength of page. * - * @type { number } + * @type { long } * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - contentLength: number; + contentLength: long; } /** @@ -6394,7 +6592,8 @@ declare interface OnRefreshAccessedHistoryEvent { * @typedef OnRenderExitedEvent * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ declare interface OnRenderExitedEvent { /** @@ -6403,7 +6602,8 @@ declare interface OnRenderExitedEvent { * @type { RenderExitReason } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ renderExitReason: RenderExitReason; } @@ -6471,30 +6671,33 @@ declare interface OnResourceLoadEvent { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ declare interface OnScaleChangeEvent { /** * Old scale of the page. * - * @type { number } + * @type { double } * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - oldScale: number; + oldScale: double; /** * New scale of the page. * - * @type { number } + * @type { double } * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - newScale: number; + newScale: double; } /** @@ -6504,7 +6707,8 @@ declare interface OnScaleChangeEvent { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ declare interface OnHttpAuthRequestEvent { /** @@ -6514,7 +6718,8 @@ declare interface OnHttpAuthRequestEvent { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ handler: HttpAuthHandler; @@ -6525,7 +6730,8 @@ declare interface OnHttpAuthRequestEvent { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ host: string; @@ -6536,7 +6742,8 @@ declare interface OnHttpAuthRequestEvent { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ realm: string; } @@ -6547,7 +6754,8 @@ declare interface OnHttpAuthRequestEvent { * @typedef OnInterceptRequestEvent * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ declare interface OnInterceptRequestEvent { /** @@ -6556,7 +6764,8 @@ declare interface OnInterceptRequestEvent { * @type { WebResourceRequest } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ request: WebResourceRequest; } @@ -6689,30 +6898,33 @@ declare interface OnSearchResultReceiveEvent { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ declare interface OnScrollEvent { /** * The X offset of the scroll. Unit: vp. * - * @type { number } + * @type { double } * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - xOffset: number; + xOffset: double; /** * The Y offset of the scroll. Unit: vp. * - * @type { number } + * @type { double } * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - yOffset: number; + yOffset: double; } /** @@ -6721,7 +6933,8 @@ declare interface OnScrollEvent { * @typedef OnSslErrorEventReceiveEvent * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ declare interface OnSslErrorEventReceiveEvent { /** @@ -6730,7 +6943,8 @@ declare interface OnSslErrorEventReceiveEvent { * @type { SslErrorHandler } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ handler: SslErrorHandler; @@ -6740,7 +6954,8 @@ declare interface OnSslErrorEventReceiveEvent { * @type { SslError } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ error: SslError; @@ -6749,7 +6964,8 @@ declare interface OnSslErrorEventReceiveEvent { * * @type { ?Array } * @syscap SystemCapability.Web.Webview.Core - * @since 15 + * @since arkts {'1.1':'15', '1.2':'20'} + * @arkts 1.1&1.2 */ certChainData?: Array; } @@ -6760,7 +6976,8 @@ declare interface OnSslErrorEventReceiveEvent { * @typedef OnClientAuthenticationEvent * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ declare interface OnClientAuthenticationEvent { /** @@ -6769,7 +6986,8 @@ declare interface OnClientAuthenticationEvent { * @type { ClientAuthenticationHandler } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ handler : ClientAuthenticationHandler; @@ -6779,19 +6997,21 @@ declare interface OnClientAuthenticationEvent { * @type { string } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ host : string; /** * The port number of the request certificate server. * - * @type { number } + * @type { int } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - port : number; + port : int; /** * Acceptable asymmetric key types. @@ -6799,7 +7019,8 @@ declare interface OnClientAuthenticationEvent { * @type { Array } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ keyTypes : Array; @@ -6809,7 +7030,8 @@ declare interface OnClientAuthenticationEvent { * @type { Array } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ issuers : Array; } @@ -6820,7 +7042,8 @@ declare interface OnClientAuthenticationEvent { * @typedef OnWindowNewEvent * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ declare interface OnWindowNewEvent { /** @@ -6829,7 +7052,8 @@ declare interface OnWindowNewEvent { * @type { boolean } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ isAlert: boolean; @@ -6839,7 +7063,8 @@ declare interface OnWindowNewEvent { * @type { boolean } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ isUserTrigger: boolean; @@ -6849,7 +7074,8 @@ declare interface OnWindowNewEvent { * @type { string } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ targetUrl: string; @@ -6859,7 +7085,8 @@ declare interface OnWindowNewEvent { * @type { ControllerHandler } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ handler: ControllerHandler; } @@ -6944,7 +7171,8 @@ declare interface OnPageVisibleEvent { * @typedef OnDataResubmittedEvent * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ declare interface OnDataResubmittedEvent { /** @@ -6953,7 +7181,8 @@ declare interface OnDataResubmittedEvent { * @type { DataResubmissionHandler } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ handler: DataResubmissionHandler; } @@ -6964,7 +7193,8 @@ declare interface OnDataResubmittedEvent { * @typedef OnAudioStateChangedEvent * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ declare interface OnAudioStateChangedEvent { /** @@ -6973,7 +7203,8 @@ declare interface OnAudioStateChangedEvent { * @type { boolean } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ playing: boolean; } @@ -6984,28 +7215,31 @@ declare interface OnAudioStateChangedEvent { * @typedef OnFirstContentfulPaintEvent * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ declare interface OnFirstContentfulPaintEvent { /** * The time at which navigation begins, expressed in microseconds. * - * @type { number } + * @type { long } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - navigationStartTick: number; + navigationStartTick: long; /** * The time it takes to draw content for the first time from navigation, expressed in milliseconds. * - * @type { number } + * @type { long } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - firstContentfulPaintMs: number; + firstContentfulPaintMs: long; } /** @@ -7026,7 +7260,8 @@ declare interface OnLoadInterceptEvent { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ data: WebResourceRequest; } @@ -7037,30 +7272,33 @@ declare interface OnLoadInterceptEvent { * @typedef OnOverScrollEvent * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ declare interface OnOverScrollEvent { /** * Based on the leftmost part of the page, the horizontal scroll offset is over. * Unit: vp. * - * @type { number } + * @type { double } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - xOffset: number; + xOffset: double; /** * Based on the top of the page, the vertical scroll offset is over. * Unit: vp. * - * @type { number } + * @type { double } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - yOffset: number; + yOffset: double; } /** @@ -7244,7 +7482,8 @@ declare interface JavaScriptProxy { * @enum { number } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ declare enum WebKeyboardAvoidMode { /** @@ -7252,7 +7491,8 @@ declare enum WebKeyboardAvoidMode { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ RESIZE_VISUAL = 0, @@ -7262,7 +7502,8 @@ declare enum WebKeyboardAvoidMode { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ RESIZE_CONTENT = 1, @@ -7271,7 +7512,8 @@ declare enum WebKeyboardAvoidMode { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ OVERLAYS_CONTENT = 2 } @@ -7281,14 +7523,16 @@ declare enum WebKeyboardAvoidMode { * * @enum { number } * @syscap SystemCapability.Web.Webview.Core - * @since 13 + * @since arkts {'1.1':'13', '1.2':'20'} + * @arkts 1.1&1.2 */ declare enum WebElementType { /** * Image,corresponding HTML image type. * * @syscap SystemCapability.Web.Webview.Core - * @since 13 + * @since arkts {'1.1':'13', '1.2':'20'} + * @arkts 1.1&1.2 */ IMAGE = 1, @@ -7297,6 +7541,7 @@ declare enum WebElementType { * * @syscap SystemCapability.Web.Webview.Core * @since 20 + * @arkts 1.1&1.2 */ LINK = 2, @@ -7315,14 +7560,16 @@ declare enum WebElementType { * * @enum { number } * @syscap SystemCapability.Web.Webview.Core - * @since 13 + * @since arkts {'1.1':'13', '1.2':'20'} + * @arkts 1.1&1.2 */ declare enum WebResponseType { /** * Long press. * * @syscap SystemCapability.Web.Webview.Core - * @since 13 + * @since arkts {'1.1':'13', '1.2':'20'} + * @arkts 1.1&1.2 */ LONG_PRESS = 1, @@ -7366,7 +7613,8 @@ declare enum WebBypassVsyncCondition { * * @enum { number } * @syscap SystemCapability.Web.Webview.Core - * @since 20 + * @since arkts {'1.1':'20', '1.2':'20'} + * @arkts 1.1&1.2 */ declare enum AudioSessionType { /** @@ -7374,7 +7622,8 @@ declare enum AudioSessionType { * This is useful in some special cases such as when the user wants to mix audios from multiple pages. * * @syscap SystemCapability.Web.Webview.Core - * @since 20 + * @since arkts {'1.1':'20', '1.2':'20'} + * @arkts 1.1&1.2 */ AMBIENT=3 } @@ -7435,6 +7684,7 @@ declare enum PdfLoadResult { * @interface PreviewMenuOptions * @syscap SystemCapability.Web.Webview.Core * @since 20 + * @arkts 1.1&1.2 */ declare interface PreviewMenuOptions { /** @@ -7445,6 +7695,7 @@ declare interface PreviewMenuOptions { * @default HapticFeedbackMode.DISABLED * @syscap SystemCapability.Web.Webview.Core * @since 20 + * @arkts 1.1&1.2 */ hapticFeedbackMode?: HapticFeedbackMode; } @@ -7454,7 +7705,8 @@ declare interface PreviewMenuOptions { * * @typedef SelectionMenuOptionsExt * @syscap SystemCapability.Web.Webview.Core - * @since 13 + * @since arkts {'1.1':'13', '1.2':'20'} + * @arkts 1.1&1.2 */ declare interface SelectionMenuOptionsExt { /** @@ -7462,7 +7714,8 @@ declare interface SelectionMenuOptionsExt { * * @type { ?Callback } * @syscap SystemCapability.Web.Webview.Core - * @since 13 + * @since arkts {'1.1':'13', '1.2':'20'} + * @arkts 1.1&1.2 */ onAppear?: Callback; @@ -7471,7 +7724,8 @@ declare interface SelectionMenuOptionsExt { * * @type { ?Callback } * @syscap SystemCapability.Web.Webview.Core - * @since 13 + * @since arkts {'1.1':'13', '1.2':'20'} + * @arkts 1.1&1.2 */ onDisappear?: Callback; @@ -7480,7 +7734,8 @@ declare interface SelectionMenuOptionsExt { * * @type { ?CustomBuilder } * @syscap SystemCapability.Web.Webview.Core - * @since 13 + * @since arkts {'1.1':'13', '1.2':'20'} + * @arkts 1.1&1.2 */ preview?: CustomBuilder; @@ -7489,7 +7744,8 @@ declare interface SelectionMenuOptionsExt { * * @type { ?MenuType } * @syscap SystemCapability.Web.Webview.Core - * @since 13 + * @since arkts {'1.1':'13', '1.2':'20'} + * @arkts 1.1&1.2 */ menuType?: MenuType; @@ -7499,6 +7755,7 @@ declare interface SelectionMenuOptionsExt { * @type { ?PreviewMenuOptions } * @syscap SystemCapability.Web.Webview.Core * @since 20 + * @arkts 1.1&1.2 */ previewMenuOptions?: PreviewMenuOptions; @@ -7615,7 +7872,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ fileAccess(fileAccess: boolean): WebAttribute; @@ -7650,7 +7908,8 @@ declare class WebAttribute extends CommonMethod { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ onlineImageAccess(onlineImageAccess: boolean): WebAttribute; @@ -7682,7 +7941,8 @@ declare class WebAttribute extends CommonMethod { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ domStorageAccess(domStorageAccess: boolean): WebAttribute; @@ -7715,7 +7975,8 @@ declare class WebAttribute extends CommonMethod { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ imageAccess(imageAccess: boolean): WebAttribute; @@ -7746,7 +8007,8 @@ declare class WebAttribute extends CommonMethod { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ mixedMode(mixedMode: MixedMode): WebAttribute; @@ -7778,7 +8040,8 @@ declare class WebAttribute extends CommonMethod { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ zoomAccess(zoomAccess: boolean): WebAttribute; @@ -7931,7 +8194,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ darkMode(mode: WebDarkMode): WebAttribute; @@ -7954,7 +8218,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ forceDarkAccess(access: boolean): WebAttribute; @@ -7983,7 +8248,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ mediaOptions(options: WebMediaOptions): WebAttribute; @@ -8029,7 +8295,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ overviewModeAccess(overviewModeAccess: boolean): WebAttribute; @@ -8043,7 +8310,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ overScrollMode(mode: OverScrollMode): WebAttribute; @@ -8054,7 +8322,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ blurOnKeyboardHideMode(mode: BlurOnKeyboardHideMode): WebAttribute; @@ -8073,7 +8342,7 @@ declare class WebAttribute extends CommonMethod { /** * Sets the ratio of the text zoom. * - * @param { number } textZoomRatio Text zoom ratio to set. The value is an integer. The value range is (0, 2147483647]. + * @param { int } textZoomRatio Text zoom ratio to set. The value is an integer. The value range is (0, 2147483647]. * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @since 9 @@ -8081,13 +8350,14 @@ declare class WebAttribute extends CommonMethod { /** * Sets the ratio of the text zoom. * - * @param { number } textZoomRatio Text zoom ratio to set. The value is an integer. The value range is (0, 2147483647]. + * @param { int } textZoomRatio Text zoom ratio to set. The value is an integer. The value range is (0, 2147483647]. * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ - textZoomRatio(textZoomRatio: number): WebAttribute; + textZoomRatio(textZoomRatio: int): WebAttribute; /** * Sets whether the Web access the database. @@ -8116,7 +8386,7 @@ declare class WebAttribute extends CommonMethod { /** * Sets the initial scale for the Web. * - * @param { number } percent the initial scale for the Web. + * @param { double } percent the initial scale for the Web. * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @since 9 @@ -8124,15 +8394,16 @@ declare class WebAttribute extends CommonMethod { /** * Sets the initial scale for the Web. * - * @param { number } percent the initial scale for the Web. + * @param { double } percent the initial scale for the Web. * Value range: (0, 1000]. * Default value: 100. * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ - initialScale(percent: number): WebAttribute; + initialScale(percent: double): WebAttribute; /** * Sets the Web's user agent. @@ -8171,7 +8442,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ metaViewport(enabled: boolean): WebAttribute; @@ -8350,7 +8622,8 @@ declare class WebAttribute extends CommonMethod { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ onTitleReceive(callback: Callback): WebAttribute; @@ -8422,7 +8695,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ onRequestSelected(callback: () => void): WebAttribute; @@ -8456,7 +8730,8 @@ declare class WebAttribute extends CommonMethod { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ onAlert(callback: Callback): WebAttribute; @@ -8494,7 +8769,8 @@ declare class WebAttribute extends CommonMethod { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ onBeforeUnload(callback: Callback): WebAttribute; @@ -8594,7 +8870,8 @@ declare class WebAttribute extends CommonMethod { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ onConsole(callback: Callback): WebAttribute; @@ -8633,7 +8910,8 @@ declare class WebAttribute extends CommonMethod { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ onErrorReceive(callback: Callback): WebAttribute; @@ -8663,7 +8941,8 @@ declare class WebAttribute extends CommonMethod { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ onHttpErrorReceive(callback: Callback): WebAttribute; @@ -8707,7 +8986,8 @@ declare class WebAttribute extends CommonMethod { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ onDownloadStart(callback: Callback): WebAttribute; @@ -8800,7 +9080,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ onRenderExited(callback: Callback): WebAttribute; @@ -8917,7 +9198,8 @@ declare class WebAttribute extends CommonMethod { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ onFullScreenExit(callback: () => void): WebAttribute; @@ -8955,7 +9237,8 @@ declare class WebAttribute extends CommonMethod { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ onFullScreenEnter(callback: OnFullScreenEnterCallback): WebAttribute; @@ -8985,7 +9268,8 @@ declare class WebAttribute extends CommonMethod { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ onScaleChange(callback: Callback): WebAttribute; @@ -9015,7 +9299,8 @@ declare class WebAttribute extends CommonMethod { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ onHttpAuthRequest(callback: Callback): WebAttribute; @@ -9043,7 +9328,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } If the response value is null, the Web will continue to load the resources. Otherwise, the response value will be used * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ onInterceptRequest(callback: Callback): WebAttribute; @@ -9147,7 +9433,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ onContextMenuHide(callback: OnContextMenuHideCallback): WebAttribute; @@ -9265,7 +9552,8 @@ declare class WebAttribute extends CommonMethod { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ onScroll(callback: Callback): WebAttribute; @@ -9296,7 +9584,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ onSslErrorEventReceive(callback: Callback): WebAttribute; @@ -9336,7 +9625,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ onClientAuthenticationRequest(callback: Callback): WebAttribute; @@ -9373,7 +9663,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ onWindowNew(callback: Callback): WebAttribute; @@ -9393,7 +9684,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ onWindowExit(callback: () => void): WebAttribute; @@ -9414,7 +9706,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ multiWindowAccess(multiWindow: boolean): WebAttribute; @@ -9433,7 +9726,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } True if the application consumes key events else false. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ onInterceptKeyEvent(callback: (event: KeyEvent) => boolean): WebAttribute; @@ -9453,7 +9747,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ webStandardFont(family: string): WebAttribute; @@ -9473,7 +9768,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ webSerifFont(family: string): WebAttribute; @@ -9493,7 +9789,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ webSansSerifFont(family: string): WebAttribute; @@ -9513,7 +9810,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ webFixedFont(family: string): WebAttribute; @@ -9533,7 +9831,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ webFantasyFont(family: string): WebAttribute; @@ -9553,14 +9852,15 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ webCursiveFont(family: string): WebAttribute; /** * Set the default fixed font value of webview. The default value is 13, ranging from 1 to 72. * - * @param { number } size Font size. + * @param { int } size Font size. * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @since 9 @@ -9568,21 +9868,22 @@ declare class WebAttribute extends CommonMethod { /** * Sets the default fixed font size for the web page. * - * @param { number } size Default fixed font size to set, in px. + * @param { int } size Default fixed font size to set, in px. * The value ranges from -2^31 to 2^31-1. In actual rendering, * values greater than 72 are handled as 72, and values less than 1 are handled as 1. * Default value: 13. * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ - defaultFixedFontSize(size: number): WebAttribute; + defaultFixedFontSize(size: int): WebAttribute; /** * Set the default font value of webview. The default value is 16, ranging from 1 to 72. * - * @param { number } size Font size. + * @param { int } size Font size. * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @since 9 @@ -9590,20 +9891,21 @@ declare class WebAttribute extends CommonMethod { /** * Sets the default font size for the web page. * - * @param { number } size Default font size to set, in px. + * @param { int } size Default font size to set, in px. * The value ranges from -2^31 to 2^31-1. In actual rendering, values greater than 72 are handled as 72, * and values less than 1 are handled as 1. Default value: 16. * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ - defaultFontSize(size: number): WebAttribute; + defaultFontSize(size: int): WebAttribute; /** * Set the minimum value of webview font. The default value is 8, ranging from 1 to 72. * - * @param { number } size Font size. + * @param { int } size Font size. * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @since 9 @@ -9611,7 +9913,7 @@ declare class WebAttribute extends CommonMethod { /** * Sets the minimum font size for the web page. * - * @param { number } size Minimum font size to set, in px. + * @param { int } size Minimum font size to set, in px. * The value ranges from -2^31 to 2^31-1. In actual rendering, * values greater than 72 are handled as 72, and values less than 1 are handled as 1. * Default value: 8 @@ -9619,14 +9921,15 @@ declare class WebAttribute extends CommonMethod { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ - minFontSize(size: number): WebAttribute; + minFontSize(size: int): WebAttribute; /** * Set the logical minimum value of webview font. The default value is 8, ranging from 1 to 72. * - * @param { number } size Font size. + * @param { int } size Font size. * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @since 9 @@ -9634,16 +9937,17 @@ declare class WebAttribute extends CommonMethod { /** * Sets the minimum logical font size for the web page. * - * @param { number } size Minimum logical font size to set, in px. + * @param { int } size Minimum logical font size to set, in px. * The value ranges from -2^31 to 2^31-1. In actual rendering, * values greater than 72 are handled as 72, and values less than 1 are handled as 1. * Default value: 8 * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ - minLogicalFontSize(size: number): WebAttribute; + minLogicalFontSize(size: int): WebAttribute; /** * Set the default text encodingFormat value of webview. The default value is UTF-8. @@ -9652,7 +9956,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ defaultTextEncodingFormat(textEncodingFormat: string): WebAttribute; @@ -9667,7 +9972,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ forceDisplayScrollBar(enabled: boolean): WebAttribute; @@ -9723,7 +10029,8 @@ declare class WebAttribute extends CommonMethod { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ horizontalScrollBarAccess(horizontalScrollBar: boolean): WebAttribute; @@ -9750,7 +10057,8 @@ declare class WebAttribute extends CommonMethod { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ verticalScrollBarAccess(verticalScrollBar: boolean): WebAttribute; @@ -9874,7 +10182,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ onDataResubmitted(callback: Callback): WebAttribute; @@ -9896,7 +10205,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ pinchSmooth(isEnabled: boolean): WebAttribute; @@ -9936,7 +10246,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ allowWindowOpenMethod(flag: boolean): WebAttribute; @@ -9964,7 +10275,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ onAudioStateChanged(callback: Callback): WebAttribute; @@ -9992,7 +10304,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ onFirstContentfulPaint(callback: Callback): WebAttribute; @@ -10003,7 +10316,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ onFirstMeaningfulPaint(callback: OnFirstMeaningfulPaintCallback): WebAttribute; @@ -10014,7 +10328,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ onLargestContentfulPaint(callback: OnLargestContentfulPaintCallback): WebAttribute; @@ -10069,7 +10384,8 @@ declare class WebAttribute extends CommonMethod { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ onControllerAttached(callback: () => void): WebAttribute; @@ -10094,7 +10410,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ onOverScroll(callback: Callback): WebAttribute; @@ -10215,7 +10532,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ layoutMode(mode: WebLayoutMode): WebAttribute; @@ -10249,7 +10567,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } the attribute of the scroll. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ nestedScroll(value: NestedScrollOptions | NestedScrollOptionsExt): WebAttribute; @@ -10267,7 +10586,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ enableNativeEmbedMode(mode: boolean): WebAttribute; @@ -10286,7 +10606,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ registerNativeEmbedRule(tag: string, type:string): WebAttribute; @@ -10303,7 +10624,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ onNativeEmbedLifecycleChange(callback: (event: NativeEmbedDataInfo) => void): WebAttribute; @@ -10318,7 +10640,8 @@ declare class WebAttribute extends CommonMethod { * @param { OnNativeEmbedVisibilityChangeCallback } callback - Callback invoked when the visibility of a same-layer tag changes. * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ onNativeEmbedVisibilityChange(callback: OnNativeEmbedVisibilityChangeCallback): WebAttribute; @@ -10335,7 +10658,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ onNativeEmbedGestureEvent(callback: (event: NativeEmbedTouchInfo) => void): WebAttribute; @@ -10366,7 +10690,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } the attribute of the scroll. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ copyOptions(value: CopyOptions): WebAttribute; @@ -10378,7 +10703,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ onOverrideUrlLoading(callback: OnOverrideUrlLoadingCallback): WebAttribute; @@ -10403,7 +10729,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ textAutosizing(textAutosizing: boolean): WebAttribute; @@ -10417,7 +10744,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ enableNativeMediaPlayer(config: NativeMediaPlayerConfig): WebAttribute; @@ -10432,7 +10760,8 @@ declare class WebAttribute extends CommonMethod { * @param { OnRenderProcessNotRespondingCallback } callback The triggered function when render process not responding. * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ onRenderProcessNotResponding(callback: OnRenderProcessNotRespondingCallback): WebAttribute; @@ -10443,7 +10772,8 @@ declare class WebAttribute extends CommonMethod { * @param { OnRenderProcessRespondingCallback } callback The triggered function when the unresponsive render process becomes responsive. * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ onRenderProcessResponding(callback: OnRenderProcessRespondingCallback): WebAttribute; @@ -10475,7 +10805,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ onViewportFitChanged(callback: OnViewportFitChangedCallback): WebAttribute; @@ -10517,7 +10848,8 @@ declare class WebAttribute extends CommonMethod { * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ keyboardAvoidMode(mode: WebKeyboardAvoidMode): WebAttribute; @@ -10543,7 +10875,8 @@ declare class WebAttribute extends CommonMethod { * and the input value is -1. * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ editMenuOptions(editMenu: EditMenuOptions): WebAttribute; @@ -10557,7 +10890,8 @@ declare class WebAttribute extends CommonMethod { * @param { boolean } enabled - Default value is true, set false to disable haptic feedback. * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core - * @since 13 + * @since arkts {'1.1':'13', '1.2':'20'} + * @arkts 1.1&1.2 */ enableHapticFeedback(enabled: boolean): WebAttribute; @@ -10570,7 +10904,8 @@ declare class WebAttribute extends CommonMethod { * @param { SelectionMenuOptionsExt } [options] - Indicates the options of selection menu. * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core - * @since 13 + * @since arkts {'1.1':'13', '1.2':'20'} + * @arkts 1.1&1.2 */ bindSelectionMenu(elementType: WebElementType, content: CustomBuilder, responseType: WebResponseType, options?: SelectionMenuOptionsExt): WebAttribute; @@ -10581,7 +10916,8 @@ declare class WebAttribute extends CommonMethod { * @param { boolean} optimizeParserBudget Default value is false, set true to enable optimize parser budget. * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core - * @since 15 + * @since arkts {'1.1':'15', '1.2':'20'} + * @arkts 1.1&1.2 */ optimizeParserBudget(optimizeParserBudget: boolean): WebAttribute; @@ -10591,7 +10927,8 @@ declare class WebAttribute extends CommonMethod { * @param { boolean } follow The value true means to follow the system font weight, and false means the opposite. * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ enableFollowSystemFontWeight(follow: boolean): WebAttribute; @@ -10602,7 +10939,8 @@ declare class WebAttribute extends CommonMethod { * False when passing in undefined and null. * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ enableWebAVSession(enabled: boolean): WebAttribute; @@ -10642,7 +10980,8 @@ declare class WebAttribute extends CommonMethod { * @param { EmbedOptions } options The embed options, which can be {@link EmbedOptions}. * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core - * @since 16 + * @since arkts {'1.1':'16', '1.2':'20'} + * @arkts 1.1&1.2 */ nativeEmbedOptions(options?: EmbedOptions): WebAttribute; @@ -10903,7 +11242,8 @@ declare interface ExpandedMenuItemOptions { * * @interface NestedScrollOptionsExt * @syscap SystemCapability.Web.Webview.Core - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ declare interface NestedScrollOptionsExt { /** @@ -10911,7 +11251,8 @@ declare interface NestedScrollOptionsExt { * * @type { ?NestedScrollMode } * @syscap SystemCapability.Web.Webview.Core - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ scrollUp?: NestedScrollMode; @@ -10920,7 +11261,8 @@ declare interface NestedScrollOptionsExt { * * @type { ?NestedScrollMode } * @syscap SystemCapability.Web.Webview.Core - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ scrollDown?: NestedScrollMode; @@ -10929,7 +11271,8 @@ declare interface NestedScrollOptionsExt { * * @type { ?NestedScrollMode } * @syscap SystemCapability.Web.Webview.Core - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ scrollRight?: NestedScrollMode; @@ -10938,7 +11281,8 @@ declare interface NestedScrollOptionsExt { * * @type { ?NestedScrollMode } * @syscap SystemCapability.Web.Webview.Core - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ scrollLeft?: NestedScrollMode; } @@ -10948,7 +11292,8 @@ declare interface NestedScrollOptionsExt { * * @typedef EmbedOptions * @syscap SystemCapability.Web.Webview.Core - * @since 16 + * @since arkts {'1.1':'16', '1.2':'20'} + * @arkts 1.1&1.2 */ declare interface EmbedOptions { /** @@ -10960,7 +11305,8 @@ declare interface EmbedOptions { * @type { ?boolean } * @default false * @syscap SystemCapability.Web.Webview.Core - * @since 16 + * @since arkts {'1.1':'16', '1.2':'20'} + * @arkts 1.1&1.2 */ supportDefaultIntrinsicSize?: boolean; diff --git a/api/@ohos.web.webview.d.ts b/api/@ohos.web.webview.d.ts index ba83ec31ec..577128de45 100644 --- a/api/@ohos.web.webview.d.ts +++ b/api/@ohos.web.webview.d.ts @@ -20,13 +20,14 @@ /*** if arkts 1.2 */ import { Resource } from './global/resource'; +import { SizeOptions } from '@ohos.arkui.component'; /*** endif */ import { AsyncCallback, BusinessError } from './@ohos.base'; import { Callback } from './@ohos.base'; -/*** if arkts 1.1 */ -import cert from './@ohos.security.cert'; -import image from './@ohos.multimedia.image'; +import type cert from './@ohos.security.cert'; +import type image from './@ohos.multimedia.image'; import type print from './@ohos.print'; +/*** if arkts 1.1 */ import { WebNetErrorList } from './@ohos.web.netErrorList'; /*** endif */ @@ -147,7 +148,8 @@ declare namespace webview { * @enum {number} * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ enum WebHitTestType { /** @@ -159,7 +161,8 @@ declare namespace webview { * The edit text. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ EditText, @@ -172,7 +175,8 @@ declare namespace webview { * The email address. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ Email, @@ -185,7 +189,8 @@ declare namespace webview { * The HTML::a tag with src=http. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ HttpAnchor, @@ -198,7 +203,8 @@ declare namespace webview { * The HTML::a tag with src=http + HTML::img. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ HttpAnchorImg, @@ -211,7 +217,8 @@ declare namespace webview { * The HTML::img tag. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ Img, @@ -224,7 +231,8 @@ declare namespace webview { * The map address. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ Map, @@ -237,7 +245,8 @@ declare namespace webview { * The phone number. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ Phone, @@ -250,7 +259,8 @@ declare namespace webview { * Other unknown HitTest. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ Unknown } @@ -395,14 +405,16 @@ declare namespace webview { * @enum {number} * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ enum MediaPlaybackState { /** * No audio or video currently. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ NONE = 0, @@ -410,7 +422,8 @@ declare namespace webview { * The audio and video on the page are being played. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ PLAYING = 1, @@ -418,7 +431,8 @@ declare namespace webview { * The audio and video on the page are paused. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ PAUSED = 2, @@ -426,7 +440,8 @@ declare namespace webview { * The audio and video on the page are stopped. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ STOPPED = 3 } @@ -436,14 +451,16 @@ declare namespace webview { * @enum {number} * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ enum PressureLevel { /** * Modules are advised to free buffers that are cheap to re-allocate and not immediately needed. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ MEMORY_PRESSURE_LEVEL_MODERATE = 1, @@ -451,7 +468,8 @@ declare namespace webview { * At this level, modules are advised to free all possible memory. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ MEMORY_PRESSURE_LEVEL_CRITICAL = 2 } @@ -477,7 +495,8 @@ declare namespace webview { * @typedef HitTestValue * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ interface HitTestValue { @@ -493,7 +512,8 @@ declare namespace webview { * @type { WebHitTestType } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ type: WebHitTestType; @@ -510,7 +530,8 @@ declare namespace webview { * @type { string } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ extra: string; } @@ -659,7 +680,8 @@ declare namespace webview { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ class PdfData { /** @@ -668,7 +690,8 @@ declare namespace webview { * @returns { Uint8Array } return pdf data. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ pdfArrayBuffer(): Uint8Array; } @@ -679,78 +702,86 @@ declare namespace webview { * @typedef PdfConfiguration * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ interface PdfConfiguration { /** * Number of the width. * - * @type { number } + * @type { double } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ - width: number; + width: double; /** * Number of the height. * - * @type { number } + * @type { double } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ - height: number; + height: double; /** * Number of the marginTop. * - * @type { number } + * @type { double } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ - marginTop: number; + marginTop: double; /** * Number of the marginBottom. * - * @type { number } + * @type { double } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ - marginBottom: number; + marginBottom: double; /** * Number of the marginRight. * - * @type { number } + * @type { double } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ - marginRight: number; + marginRight: double; /** * Number of the marginLeft. * - * @type { number } + * @type { double } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ - marginLeft: number; + marginLeft: double; /** * Number of the scaling. * - * @type { ?number } + * @type { ?double } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ - scale?: number; + scale?: double; /** * Whether background should be printed when creating pdf. @@ -758,7 +789,8 @@ declare namespace webview { * @type { ?boolean } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ shouldPrintBackground?: boolean; } @@ -831,7 +863,7 @@ declare namespace webview { /** * Specify the amount of storage for the source. * - * @type { number } + * @type { double } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 @@ -839,14 +871,14 @@ declare namespace webview { /** * Specify the amount of storage for the source. * - * @type { number } + * @type { double } * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} * @arkts 1.1&1.2 */ - usage: number; + usage: double; /** * the callback of getOriginUsage. * @@ -856,7 +888,7 @@ declare namespace webview { /** * the callback of getOriginUsage. * - * @type { number } + * @type { double } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 @@ -864,14 +896,14 @@ declare namespace webview { /** * the callback of getOriginUsage. * - * @type { number } + * @type { double } * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} * @arkts 1.1&1.2 */ - quota: number; + quota: double; } /** @@ -880,7 +912,8 @@ declare namespace webview { * @typedef RequestInfo * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ interface RequestInfo { /** @@ -888,7 +921,8 @@ declare namespace webview { * @type { string } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ url: string; @@ -897,7 +931,8 @@ declare namespace webview { * @type { string } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ method: string; @@ -906,7 +941,8 @@ declare namespace webview { * @type { string } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ formData: string; } @@ -918,7 +954,8 @@ declare namespace webview { * @typedef ScrollOffset * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 13 + * @since arkts {'1.1':'13', '1.2':'20'} + * @arkts 1.1&1.2 */ interface ScrollOffset { /** @@ -929,12 +966,13 @@ declare namespace webview { * When the web page is not over-scrolled or the web page is over-scrolled to the left, * the value is 0 or a positive value. Unit: vp. * - * @type { number } + * @type { double } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 13 + * @since arkts {'1.1':'13', '1.2':'20'} + * @arkts 1.1&1.2 */ - x: number; + x: double; /** * The vertical scroll offset of the web page. The value is the difference between @@ -944,12 +982,13 @@ declare namespace webview { * When the web page is not over-scrolled or the web page is over-scrolled to the up, * the value is 0 or a positive value. Unit: vp. * - * @type { number } + * @type { double } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 13 + * @since arkts {'1.1':'13', '1.2':'20'} + * @arkts 1.1&1.2 */ - y: number; + y: double; } /** @@ -973,7 +1012,8 @@ declare namespace webview { *
2. Incorrect parameter types. 3.Parameter verification failed. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ function once(type: string, callback: Callback): void; @@ -1143,7 +1183,7 @@ declare namespace webview { /** * Get the web storage quota with the origin. * @param { string } origin - The origin which to be inquired. - * @returns { Promise } - the promise returned by the function + * @returns { Promise } - the promise returned by the function * @throws { BusinessError } 401 - Invalid input parameter. * @throws { BusinessError } 17100011 - Invalid origin. * @syscap SystemCapability.Web.Webview.Core @@ -1152,7 +1192,7 @@ declare namespace webview { /** * Get the web storage quota with the origin. * @param { string } origin - The origin which to be inquired. - * @returns { Promise } - the promise returned by the function + * @returns { Promise } - the promise returned by the function * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. *
2. Incorrect parameter types. 3.Parameter verification failed. * @throws { BusinessError } 17100011 - Invalid origin. @@ -1163,22 +1203,23 @@ declare namespace webview { /** * Get the web storage quota with the origin. * @param { string } origin - The origin which to be inquired. - * @returns { Promise } - the promise returned by the function + * @returns { Promise } - the promise returned by the function * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. *
2. Incorrect parameter types. 3.Parameter verification failed. * @throws { BusinessError } 17100011 - Invalid origin. + * @static * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} * @arkts 1.1&1.2 */ - static getOriginQuota(origin: string): Promise; + static getOriginQuota(origin: string): Promise; /** * Get the web storage quota with the origin. * @param { string } origin - The origin which to be inquired. - * @param { AsyncCallback } callback - the callback of getOriginQuota. + * @param { AsyncCallback } callback - the callback of getOriginQuota. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. *
2. Incorrect parameter types. 3.Parameter verification failed. * @throws { BusinessError } 17100011 - Invalid origin. @@ -1188,7 +1229,7 @@ declare namespace webview { /** * Get the web storage quota with the origin. * @param { string } origin - The origin which to be inquired. - * @param { AsyncCallback } callback - the callback of getOriginQuota. + * @param { AsyncCallback } callback - the callback of getOriginQuota. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. *
2. Incorrect parameter types. 3.Parameter verification failed. * @throws { BusinessError } 17100011 - Invalid origin. @@ -1199,22 +1240,23 @@ declare namespace webview { /** * Get the web storage quota with the origin. * @param { string } origin - The origin which to be inquired. - * @param { AsyncCallback } callback - the callback of getOriginQuota. + * @param { AsyncCallback } callback - the callback of getOriginQuota. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. *
2. Incorrect parameter types. 3.Parameter verification failed. * @throws { BusinessError } 17100011 - Invalid origin. + * @static * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} * @arkts 1.1&1.2 */ - static getOriginQuota(origin: string, callback: AsyncCallback): void; + static getOriginQuota(origin: string, callback: AsyncCallback): void; /** * Get the web amount of storage with the origin. * @param { string } origin - The origin which to be inquired. - * @returns { Promise } - the promise returned by the function + * @returns { Promise } - the promise returned by the function * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. *
2. Incorrect parameter types. 3.Parameter verification failed. * @throws { BusinessError } 17100011 - Invalid origin. @@ -1224,7 +1266,7 @@ declare namespace webview { /** * Get the web amount of storage with the origin. * @param { string } origin - The origin which to be inquired. - * @returns { Promise } - the promise returned by the function + * @returns { Promise } - the promise returned by the function * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. *
2. Incorrect parameter types. 3.Parameter verification failed. * @throws { BusinessError } 17100011 - Invalid origin. @@ -1235,22 +1277,23 @@ declare namespace webview { /** * Get the web amount of storage with the origin. * @param { string } origin - The origin which to be inquired. - * @returns { Promise } - the promise returned by the function + * @returns { Promise } - the promise returned by the function * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. *
2. Incorrect parameter types. 3.Parameter verification failed. * @throws { BusinessError } 17100011 - Invalid origin. + * @static * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} * @arkts 1.1&1.2 */ - static getOriginUsage(origin: string): Promise; + static getOriginUsage(origin: string): Promise; /** * Get the web amount of storage with the origin. * @param { string } origin - The origin which to be inquired. - * @param { AsyncCallback } callback - the callback of getOriginUsage. + * @param { AsyncCallback } callback - the callback of getOriginUsage. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. *
2. Incorrect parameter types. 3.Parameter verification failed. * @throws { BusinessError } 17100011 - Invalid origin. @@ -1260,7 +1303,7 @@ declare namespace webview { /** * Get the web amount of storage with the origin. * @param { string } origin - The origin which to be inquired. - * @param { AsyncCallback } callback - the callback of getOriginUsage. + * @param { AsyncCallback } callback - the callback of getOriginUsage. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. *
2. Incorrect parameter types. 3.Parameter verification failed. * @throws { BusinessError } 17100011 - Invalid origin. @@ -1271,17 +1314,18 @@ declare namespace webview { /** * Get the web amount of storage with the origin. * @param { string } origin - The origin which to be inquired. - * @param { AsyncCallback } callback - the callback of getOriginUsage. + * @param { AsyncCallback } callback - the callback of getOriginUsage. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. *
2. Incorrect parameter types. 3.Parameter verification failed. * @throws { BusinessError } 17100011 - Invalid origin. + * @static * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} * @arkts 1.1&1.2 */ - static getOriginUsage(origin: string, callback: AsyncCallback): void; + static getOriginUsage(origin: string, callback: AsyncCallback): void; } /** @@ -1299,7 +1343,8 @@ declare namespace webview { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ class WebDataBase { /** @@ -1314,7 +1359,8 @@ declare namespace webview { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ static existHttpAuthCredentials(): boolean; @@ -1330,7 +1376,8 @@ declare namespace webview { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ static deleteHttpAuthCredentials(): void; @@ -1353,7 +1400,8 @@ declare namespace webview { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ static getHttpAuthCredentials(host: string, realm: string): Array; @@ -1378,7 +1426,8 @@ declare namespace webview { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ static saveHttpAuthCredentials(host: string, realm: string, username: string, password: string): void; } @@ -1404,7 +1453,8 @@ declare namespace webview { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ class GeolocationPermissions { /** @@ -1440,7 +1490,8 @@ declare namespace webview { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ static allowGeolocation(origin: string, incognito?: boolean): void; @@ -1475,7 +1526,8 @@ declare namespace webview { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ static deleteGeolocation(origin: string, incognito?: boolean): void; @@ -1504,7 +1556,8 @@ declare namespace webview { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ static deleteAllGeolocation(incognito?: boolean): void; @@ -1554,7 +1607,8 @@ declare namespace webview { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ static getAccessibleGeolocation(origin: string, incognito?: boolean): Promise; @@ -1607,7 +1661,8 @@ declare namespace webview { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ static getAccessibleGeolocation(origin: string, callback: AsyncCallback, incognito?: boolean): void; @@ -1643,7 +1698,8 @@ declare namespace webview { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ static getStoredGeolocation(incognito?: boolean): Promise>; @@ -1678,7 +1734,8 @@ declare namespace webview { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ static getStoredGeolocation(callback: AsyncCallback>, incognito?: boolean): void; } @@ -1726,7 +1783,8 @@ declare namespace webview { * @throws { BusinessError } 17100002 - URL error. No valid cookie found for the specified URL. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ static fetchCookieSync(url: string, incognito?: boolean): string; @@ -1806,7 +1864,8 @@ declare namespace webview { *
in RFC 6265. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ static configCookieSync(url: string, value: string, incognito?: boolean): void; @@ -1825,7 +1884,8 @@ declare namespace webview { * @throws { BusinessError } 17100005 - The provided cookie value is invalid. It must follow the format specified *
in RFC 6265. * @syscap SystemCapability.Web.Webview.Core - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ static configCookieSync(url: string, value: string, incognito: boolean, includeHttpOnly: boolean): void; @@ -1907,7 +1967,8 @@ declare namespace webview { *
2. Incorrect parameter types. 3.Parameter verification failed. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ static saveCookieAsync(): Promise; @@ -1926,7 +1987,8 @@ declare namespace webview { *
2. Incorrect parameter types. 3.Parameter verification failed. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ static saveCookieAsync(callback: AsyncCallback): void; @@ -2055,7 +2117,8 @@ declare namespace webview { * {@code false} otherwise. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ static clearAllCookiesSync(incognito?: boolean): void; @@ -2066,7 +2129,8 @@ declare namespace webview { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ static clearAllCookies(): Promise; @@ -2078,7 +2142,8 @@ declare namespace webview { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ static clearAllCookies(callback: AsyncCallback): void; @@ -2748,7 +2813,8 @@ declare namespace webview { * @typedef { ArrayBuffer | string } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ type WebMessage = ArrayBuffer | string; /** @@ -2771,7 +2837,8 @@ declare namespace webview { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ interface WebMessagePort { /** @@ -2786,7 +2853,8 @@ declare namespace webview { * @type { ?boolean } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ isExtentionType?: boolean; @@ -2800,7 +2868,8 @@ declare namespace webview { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ close(): void; @@ -2821,7 +2890,8 @@ declare namespace webview { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ postMessageEvent(message: WebMessage): void; @@ -2842,7 +2912,8 @@ declare namespace webview { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ onMessageEvent(callback: (result: WebMessage) => void): void; @@ -2929,7 +3000,8 @@ declare namespace webview { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ interface HistoryItem { /** @@ -2942,7 +3014,8 @@ declare namespace webview { * @type { image.PixelMap } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ icon: image.PixelMap; @@ -2957,7 +3030,8 @@ declare namespace webview { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ historyUrl: string; @@ -2972,7 +3046,8 @@ declare namespace webview { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ historyRawUrl: string; @@ -2987,7 +3062,8 @@ declare namespace webview { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ title: string; } @@ -3012,7 +3088,8 @@ declare namespace webview { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ interface BackForwardList { /** @@ -3022,13 +3099,14 @@ declare namespace webview { */ /** * Current index in BackForwardList. - * @type { number } + * @type { int } * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ - currentIndex: number; + currentIndex: int; /** * Size of in BackForwardList. @@ -3037,18 +3115,19 @@ declare namespace webview { */ /** * Size of in BackForwardList. - * @type { number } + * @type { int } * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ - size: number; + size: int; /** * Get history entry at given index. * - * @param { number } index Index of back forward list entry. + * @param { int } index Index of back forward list entry. * @returns { HistoryItem } HistoryItem at given index in back forward list. * @throws { BusinessError } 401 - Invalid input parameter. * @syscap SystemCapability.Web.Webview.Core @@ -3057,16 +3136,17 @@ declare namespace webview { /** * Get history entry at given index. * - * @param { number } index Index of back forward list entry. + * @param { int } index Index of back forward list entry. * @returns { HistoryItem } HistoryItem at given index in back forward list. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. *
2. Incorrect parameter types. 3.Parameter verification failed. * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ - getItemAtIndex(index: number): HistoryItem; + getItemAtIndex(index: int): HistoryItem; } /** @@ -3075,7 +3155,8 @@ declare namespace webview { * @typedef SnapshotInfo * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ interface SnapshotInfo { /** @@ -3084,7 +3165,8 @@ declare namespace webview { * @type { ?string } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ id?: string; @@ -3098,7 +3180,8 @@ declare namespace webview { * @type { ?SizeOptions } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ size?: SizeOptions; } @@ -3109,7 +3192,8 @@ declare namespace webview { * @typedef SnapshotResult * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ interface SnapshotResult { /** @@ -3118,7 +3202,8 @@ declare namespace webview { * @type { ?string } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ id?: string; @@ -3130,7 +3215,8 @@ declare namespace webview { * @type { ?boolean } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ status?: boolean; @@ -3141,7 +3227,8 @@ declare namespace webview { * @type { ?SizeOptions } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ size?: SizeOptions; @@ -3151,7 +3238,8 @@ declare namespace webview { * @type { ?image.PixelMap } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ imagePixelMap?: image.PixelMap; } @@ -3174,7 +3262,8 @@ declare namespace webview { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ enum JsMessageType { /** @@ -3186,7 +3275,8 @@ declare namespace webview { * Unsupported data type. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ NOT_SUPPORT, @@ -3206,7 +3296,8 @@ declare namespace webview { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ STRING, @@ -3226,7 +3317,8 @@ declare namespace webview { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ NUMBER, @@ -3246,7 +3338,8 @@ declare namespace webview { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ BOOLEAN, @@ -3259,7 +3352,8 @@ declare namespace webview { * The arraybuffer data type. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ ARRAY_BUFFER, @@ -3279,7 +3373,8 @@ declare namespace webview { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ ARRAY } @@ -3300,7 +3395,8 @@ declare namespace webview { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ class JsMessageExt { /** @@ -3322,7 +3418,8 @@ declare namespace webview { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ getType(): JsMessageType; @@ -3348,20 +3445,21 @@ declare namespace webview { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ getString(): string; /** * Get the number value of the JavaScript code execution result. - * @returns { number } - Returns data of number type + * @returns { double | long } - Returns data of number type * @throws { BusinessError } 17100014 - The type and value of the message do not match. * @syscap SystemCapability.Web.Webview.Core * @since 10 */ /** * Get the number value of the JavaScript code execution result. - * @returns { number } - Returns data of number type + * @returns { double | long } - Returns data of number type * @throws { BusinessError } 17100014 - The type and value of the message do not match. * @syscap SystemCapability.Web.Webview.Core * @atomicservice @@ -3369,14 +3467,15 @@ declare namespace webview { */ /** * Get the number value of the JavaScript code execution result. - * @returns { number } - Returns data of number type + * @returns { double | long } - Returns data of number type * @throws { BusinessError } 17100014 - The type and value of the message do not match. * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ - getNumber(): number; + getNumber(): double | long; /** * Get the boolean value of the JavaScript code execution result. @@ -3400,7 +3499,8 @@ declare namespace webview { * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ getBoolean(): boolean; @@ -3417,20 +3517,21 @@ declare namespace webview { * @throws { BusinessError } 17100014 - The type and value of the message do not match. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ getArrayBuffer(): ArrayBuffer; /** * Get the array value of the the JavaScript code execution result. - * @returns { Array } - Returns data of Array type + * @returns { Array } - Returns data of Array type * @throws { BusinessError } 17100014 - The type and value of the message do not match. * @syscap SystemCapability.Web.Webview.Core * @since 10 */ /** * Get the array value of the the JavaScript code execution result. - * @returns { Array } - Returns data of Array type + * @returns { Array } - Returns data of Array type * @throws { BusinessError } 17100014 - The type and value of the message do not match. * @syscap SystemCapability.Web.Webview.Core * @atomicservice @@ -3438,14 +3539,15 @@ declare namespace webview { */ /** * Get the array value of the the JavaScript code execution result. - * @returns { Array } - Returns data of Array type + * @returns { Array } - Returns data of Array type * @throws { BusinessError } 17100014 - The type and value of the message do not match. * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ - getArray(): Array; + getArray(): Array; } /** @@ -3454,7 +3556,8 @@ declare namespace webview { * @enum {number} * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ enum RenderProcessMode { /** @@ -3462,7 +3565,8 @@ declare namespace webview { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ SINGLE = 0, @@ -3471,7 +3575,8 @@ declare namespace webview { * * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ MULTIPLE, } @@ -3480,7 +3585,8 @@ declare namespace webview { * Options of generating code cache * @typedef CacheOptions * @syscap SystemCapability.Web.Webview.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ interface CacheOptions { /** @@ -3489,7 +3595,8 @@ declare namespace webview { * * @type { Array } * @syscap SystemCapability.Web.Webview.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ responseHeaders: Array; } @@ -3498,14 +3605,16 @@ declare namespace webview { * Enum type supplied to {@link OfflineResourceMap} for indicating the type of resource. * @enum {number} * @syscap SystemCapability.Web.Webview.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ enum OfflineResourceType { /** * Resource of the image type. * * @syscap SystemCapability.Web.Webview.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ IMAGE, @@ -3513,7 +3622,8 @@ declare namespace webview { * Resource of the CSS type. * * @syscap SystemCapability.Web.Webview.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ CSS, @@ -3521,7 +3631,8 @@ declare namespace webview { * Javascript resource loaded through the