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 tag.
*
* @syscap SystemCapability.Web.Webview.Core
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
CLASSIC_JS,
@@ -3529,7 +3640,8 @@ declare namespace webview {
* Javascript resource loaded through the tag.
*
* @syscap SystemCapability.Web.Webview.Core
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
MODULE_JS
}
@@ -3538,7 +3650,8 @@ declare namespace webview {
* Define offline resource's content and info.
* @typedef OfflineResourceMap
* @syscap SystemCapability.Web.Webview.Core
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
interface OfflineResourceMap {
/**
@@ -3546,7 +3659,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
*/
urlList: Array,
@@ -3555,7 +3669,8 @@ declare namespace webview {
*
* @type { Uint8Array }
* @syscap SystemCapability.Web.Webview.Core
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
resource: Uint8Array,
@@ -3564,7 +3679,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,
@@ -3573,7 +3689,8 @@ declare namespace webview {
*
* @type { OfflineResourceType }
* @syscap SystemCapability.Web.Webview.Core
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
type: OfflineResourceType
}
@@ -3583,14 +3700,16 @@ declare namespace webview {
*
* @enum { number }
* @syscap SystemCapability.Web.Webview.Core
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
enum ScrollType {
/**
* Indicates scrolling the web page through scroll event, include touch screen, touch pad, and mouse wheel.
*
* @syscap SystemCapability.Web.Webview.Core
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
EVENT
}
@@ -4007,7 +4126,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
*/
clearHistory(): void;
@@ -4275,7 +4395,7 @@ declare namespace webview {
/**
* Let the Web zoom by.
*
- * @param { number } factor - The zoom factor.
+ * @param { double } factor - The zoom factor.
* Reduced when the input parameter is less than 1. Enlarged when the input parameter is greater than 1.Value range: (0, 100].
* @throws { BusinessError } 401 - Invalid input parameter.
* @throws { BusinessError } 17100001 - Init error.
@@ -4291,7 +4411,7 @@ declare namespace webview {
* zoomAccess must be true.
*
*
- * @param { number } factor - The zoom factor.
+ * @param { double } factor - The zoom factor.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
*
2. Incorrect parameter types. 3.Parameter verification failed.
* @throws { BusinessError } 17100001 - Init error.
@@ -4300,9 +4420,10 @@ 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
*/
- zoom(factor: number): void;
+ zoom(factor: double): void;
/**
* Let the Web zoom in.
@@ -4333,7 +4454,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
*/
zoomIn(): void;
@@ -4366,7 +4488,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
*/
zoomOut(): void;
@@ -4393,7 +4516,7 @@ declare namespace webview {
/**
* Gets the id for the current Web.
- * @returns { number } Returns the index value of the current Web component.
+ * @returns { int } Returns the index value of the current Web component.
* @throws { BusinessError } 17100001 - Init error.
* The WebviewController must be associated with a Web component.
* @syscap SystemCapability.Web.Webview.Core
@@ -4401,7 +4524,7 @@ declare namespace webview {
*/
/**
* Gets the id for the current Web.
- * @returns { number } Returns the index value of the current Web component.
+ * @returns { int } Returns the index value of the current Web component.
* @throws { BusinessError } 17100001 - Init error.
* The WebviewController must be associated with a Web component.
* @syscap SystemCapability.Web.Webview.Core
@@ -4410,7 +4533,7 @@ declare namespace webview {
*/
/**
* Gets the index value of the current Web component for the management of multiple Web components.
- * @returns { number } Returns the index value of the current Web component.
+ * @returns { int } Returns the index value of the current Web component.
* @throws { BusinessError } 17100001 - Init error.
* The WebviewController must be associated with a Web component.
* @syscap SystemCapability.Web.Webview.Core
@@ -4419,7 +4542,7 @@ declare namespace webview {
* @since arkts {'1.1':'18', '1.2':'20'}
* @arkts 1.1&1.2
*/
- getWebId(): number;
+ getWebId(): int;
/**
* Gets the default user agent.
@@ -4436,7 +4559,8 @@ declare namespace webview {
* The WebviewController must be associated with a Web component.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
getUserAgent(): string;
@@ -4463,7 +4587,7 @@ declare namespace webview {
/**
* Gets the content height of current Web page.
- * @returns { number } Returns the page height of the current page.
+ * @returns { int } Returns the page height of the current page.
* @throws { BusinessError } 17100001 - Init error.
* The WebviewController must be associated with a Web component.
* @syscap SystemCapability.Web.Webview.Core
@@ -4471,7 +4595,7 @@ declare namespace webview {
*/
/**
* Obtains the height of this web page.
- * @returns { number } Height of the current web page. Unit: vp.
+ * @returns { int } Height of the current web page. Unit: vp.
* @throws { BusinessError } 17100001 - Init error.
* The WebviewController must be associated with a Web component.
* @syscap SystemCapability.Web.Webview.Core
@@ -4480,7 +4604,7 @@ declare namespace webview {
* @since arkts {'1.1':'11', '1.2':'20'}
* @arkts 1.1&1.2
*/
- getPageHeight(): number;
+ getPageHeight(): int;
/**
* Goes forward or back backOrForward in the history of the web page.
@@ -4560,7 +4684,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
*/
createWebMessagePorts(isExtentionType?: boolean): Array;
@@ -4686,7 +4811,7 @@ declare namespace webview {
* otherwise, this registration will fail.
*
*
- * @param { object } object - Application side JavaScript objects participating in registration.
+ * @param { object } jsObject - Application side JavaScript objects participating in registration.
* @param { string } name - The name of the registered object, which is consistent with the
* object name called in the window.
* @param { Array } methodList - The method of the application side JavaScript object participating
@@ -4703,8 +4828,9 @@ declare namespace webview {
* @crossplatform
* @atomicservice
* @since 20
+ * @arkts 1.1&1.2
*/
- registerJavaScriptProxy(object: object, name: string, methodList: Array,
+ registerJavaScriptProxy(jsObject: object, name: string, methodList: Array,
asyncMethodList?: Array, permission?: string): void;
/**
@@ -4744,6 +4870,7 @@ declare namespace webview {
* @crossplatform
* @atomicservice
* @since 20
+ * @arkts 1.1&1.2
*/
deleteJavaScriptRegister(name: string): void;
@@ -4893,7 +5020,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
*/
runJavaScript(script: string): Promise;
@@ -4992,7 +5120,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
*/
runJavaScriptExt(script: string | ArrayBuffer): Promise;
@@ -5044,7 +5173,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
*/
runJavaScriptExt(script: string | ArrayBuffer, callback: AsyncCallback): void;
@@ -5062,7 +5192,8 @@ declare namespace webview {
* The WebviewController must be associated with a Web component.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
createPdf(configuration: PdfConfiguration, callback: AsyncCallback): void;
@@ -5082,7 +5213,8 @@ declare namespace webview {
* The WebviewController must be associated with a Web component.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
createPdf(configuration: PdfConfiguration): Promise;
@@ -5146,7 +5278,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
*/
pageUp(top: boolean): void;
@@ -5189,7 +5322,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
*/
pageDown(bottom: boolean): void;
@@ -5285,7 +5419,8 @@ declare namespace webview {
* The WebviewController must be associated with a Web component.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
hasImage(): Promise;
@@ -5309,7 +5444,8 @@ declare namespace webview {
* The WebviewController must be associated with a Web component.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
hasImage(callback: AsyncCallback): void;
@@ -5329,7 +5465,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
*/
getBackForwardEntries(): BackForwardList;
@@ -5382,8 +5519,8 @@ declare namespace webview {
/**
* Scroll to the position.
*
- * @param { number } x - the x of the position.
- * @param { number } y - the y of the position.
+ * @param { double } x - the x of the position.
+ * @param { double } y - the y of the position.
* @throws { BusinessError } 401 - Invalid input parameter.
* @throws { BusinessError } 17100001 - Init error.
* The WebviewController must be associated with a Web component.
@@ -5393,8 +5530,8 @@ declare namespace webview {
/**
* Scroll to the position.
*
- * @param { number } x - the x of the position.
- * @param { number } y - the y of the position.
+ * @param { double } x - the x of the position.
+ * @param { double } y - the y of the position.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
*
2. Incorrect parameter types. 3.Parameter verification failed.
* @throws { BusinessError } 17100001 - Init error.
@@ -5407,9 +5544,9 @@ declare namespace webview {
/**
* Scroll to the position within specified time.
*
- * @param { number } x - the x of the position.Unit: vp.
- * @param { number } y - the y of the position.Unit: vp.
- * @param { number } duration - the scroll animation duration. Unit: millisecond.
+ * @param { double } x - the x of the position.Unit: vp.
+ * @param { double } y - the y of the position.Unit: vp.
+ * @param { int } duration - the scroll animation duration. Unit: millisecond.
* If the value is not passed, or is negative or 0, there is no animation.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
*
2. Incorrect parameter types. 3.Parameter verification failed.
@@ -5418,15 +5555,16 @@ declare namespace webview {
* @syscap SystemCapability.Web.Webview.Core
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
- scrollTo(x: number, y: number, duration?: number): void;
+ scrollTo(x: double, y: double, duration?: int): void;
/**
* Scroll by the delta position.
*
- * @param { number } deltaX - the delta x of the position.
- * @param { number } deltaY - the delta y of the position.
+ * @param { double } deltaX - the delta x of the position.
+ * @param { double } deltaY - the delta y of the position.
* @throws { BusinessError } 401 - Invalid input parameter.
* @throws { BusinessError } 17100001 - Init error.
* The WebviewController must be associated with a Web component.
@@ -5436,8 +5574,8 @@ declare namespace webview {
/**
* Scroll by the delta position.
*
- * @param { number } deltaX - the delta x of the position.
- * @param { number } deltaY - the delta y of the position.
+ * @param { double } deltaX - the delta x of the position.
+ * @param { double } deltaY - the delta y of the position.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
*
2. Incorrect parameter types. 3.Parameter verification failed.
* @throws { BusinessError } 17100001 - Init error.
@@ -5454,9 +5592,9 @@ declare namespace webview {
* In nested scroll scenarios, calling scrollBy does not trigger nested scrolling in the parent component.
*
*
- * @param { number } deltaX - the delta x of the position.Unit: vp.
- * @param { number } deltaY - the delta y of the position.Unit: vp.
- * @param { number } duration - the scroll animation duration. Unit: millisecond.
+ * @param { double } deltaX - the delta x of the position.Unit: vp.
+ * @param { double } deltaY - the delta y of the position.Unit: vp.
+ * @param { int } duration - the scroll animation duration. Unit: millisecond.
* If the value is not passed, or is negative or 0, there is no animation.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
*
2. Incorrect parameter types. 3.Parameter verification failed.
@@ -5465,15 +5603,16 @@ declare namespace webview {
* @syscap SystemCapability.Web.Webview.Core
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
- scrollBy(deltaX: number, deltaY: number, duration?: number): void;
+ scrollBy(deltaX: double, deltaY: double, duration?: int): void;
/**
* Slide by the speed.
*
- * @param { number } vx - the x speed of the speed.
- * @param { number } vy - the y speed of the speed.
+ * @param { double } vx - the x speed of the speed.
+ * @param { double } vy - the y speed of the speed.
* @throws { BusinessError } 401 - Invalid input parameter.
* @throws { BusinessError } 17100001 - Init error.
* The WebviewController must be associated with a Web component.
@@ -5483,17 +5622,18 @@ declare namespace webview {
/**
* Slide by the speed.
*
- * @param { number } vx - the x speed of the speed. Unit: vp/ms.
- * @param { number } vy - the y speed of the speed. Unit: vp/ms.
+ * @param { double } vx - the x speed of the speed.
+ * @param { double } vy - the y speed of the speed.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
*
2. Incorrect parameter types. 3.Parameter verification failed.
* @throws { BusinessError } 17100001 - Init error.
* The WebviewController must be associated with a Web component.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
- slideScroll(vx: number, vy: number): void;
+ slideScroll(vx: double, vy: double): void;
/**
* Serialize the access stack of the web, that is, the history of access.
@@ -5510,7 +5650,8 @@ declare namespace webview {
* The WebviewController must be associated with a Web component.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
serializeWebState(): Uint8Array;
@@ -5623,7 +5764,8 @@ declare namespace webview {
* The WebviewController must be associated with a Web component.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
setAudioMuted(mute: boolean): void;
@@ -5736,7 +5878,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
*/
getCustomUserAgent(): string;
@@ -5844,7 +5987,8 @@ declare namespace webview {
* @throws { BusinessError } 17100001 - Init error.
* The WebviewController must be associated with a Web component.
* @syscap SystemCapability.Web.Webview.Core
- * @since 11
+ * @since arkts {'1.1':'11', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
createWebPrintDocumentAdapter(jobName: string): print.PrintDocumentAdapter;
@@ -5889,7 +6033,8 @@ declare namespace webview {
* The WebviewController must be associated with a Web component.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
setScrollable(enable: boolean, type?: ScrollType): void;
@@ -5915,7 +6060,8 @@ declare namespace webview {
* The WebviewController must be associated with a Web component.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
setPrintBackground(enable: boolean): void;
@@ -5926,7 +6072,8 @@ declare namespace webview {
* The WebviewController must be associated with a Web component.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
getPrintBackground(): boolean;
@@ -5951,7 +6098,8 @@ declare namespace webview {
* The WebviewController must be associated with a Web component.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
startCamera(): void;
@@ -5962,7 +6110,8 @@ declare namespace webview {
* The WebviewController must be associated with a Web component.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
stopCamera(): void;
@@ -5973,7 +6122,8 @@ declare namespace webview {
* The WebviewController must be associated with a Web component.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
closeCamera(): void;
@@ -5984,7 +6134,8 @@ declare namespace webview {
* The WebviewController must be associated with a Web component.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
static pauseAllTimers(): void;
@@ -5995,7 +6146,8 @@ declare namespace webview {
* The WebviewController must be associated with a Web component.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
static resumeAllTimers(): void;
@@ -6006,7 +6158,8 @@ declare namespace webview {
* The WebviewController must be associated with a Web component.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
stopAllMedia(): void;
@@ -6017,7 +6170,8 @@ declare namespace webview {
* The WebviewController must be associated with a Web component.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
resumeAllMedia(): void;
@@ -6028,7 +6182,8 @@ declare namespace webview {
* The WebviewController must be associated with a Web component.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
pauseAllMedia(): void;
@@ -6039,7 +6194,8 @@ declare namespace webview {
* The WebviewController must be associated with a Web component.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
closeAllMediaPresentations(): void;
@@ -6051,7 +6207,8 @@ declare namespace webview {
* The WebviewController must be associated with a Web component.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
getMediaPlaybackState(): MediaPlaybackState;
@@ -6227,7 +6384,8 @@ declare namespace webview {
* @param { CreateNativeMediaPlayerCallback } callback - Called everytime when web pages try to play media.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
onCreateNativeMediaPlayer(callback: CreateNativeMediaPlayerCallback): void;
@@ -6237,7 +6395,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
*/
static enableWholeWebPageDrawing(): void;
@@ -6254,7 +6413,8 @@ declare namespace webview {
* @param { AsyncCallback } callback - the callback of snapshot.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
webPageSnapshot(info: SnapshotInfo, callback: AsyncCallback): void;
@@ -6271,7 +6431,7 @@ declare namespace webview {
* @param { Array } [additionalHeaders] - Additional HTTP request header of the request.
* @param { string } [cacheKey] - The key for memory cache. Default value is the url of the request.
* Only support number and letters.
- * @param { number } [cacheValidTime] - The valid time of the cache for request, ranges greater than 0.
+ * @param { int } [cacheValidTime] - The valid time of the cache for request, ranges greater than 0.
* The unit is second. Default value is 300s.
* The value of cacheValidTime must between 1 and 2147483647.
* @throws { BusinessError } 401 - Invalid input parameter.Possible causes: 1. Mandatory parameters are left unspecified.
@@ -6280,10 +6440,11 @@ declare namespace webview {
* length exceeds 2048.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
static prefetchResource(request: RequestInfo, additionalHeaders?: Array, cacheKey?: string,
- cacheValidTime?: number): void;
+ cacheValidTime?: int): void;
/**
* Clears the cache of prefetched resources based on the specified cache key list.
@@ -6292,7 +6453,8 @@ declare namespace webview {
* The key in cacheKeyList only support number and letters.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
static clearPrefetchedResource(cacheKeyList: Array): void;
@@ -6309,7 +6471,8 @@ declare namespace webview {
*
2. Incorrect parameter types.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
static setRenderProcessMode(mode: RenderProcessMode): void;
@@ -6323,7 +6486,8 @@ declare namespace webview {
* it defaults to the multi-rendering subprocess mode.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
static getRenderProcessMode(): RenderProcessMode;
@@ -6339,7 +6503,8 @@ declare namespace webview {
* @throws { BusinessError } 17100001 - Init error.
* The WebviewController must be associated with a Web component.
* @syscap SystemCapability.Web.Webview.Core
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
terminateRenderProcess(): boolean;
@@ -6348,7 +6513,7 @@ declare namespace webview {
* @param { string } url - Url of the javascript. Only support HTTP/HTTPS protocol and length no longer than 2048.
* @param { string | Uint8Array } script - Javascript source code. script must not be empty.
* @param { CacheOptions } cacheOptions - Generate code cache option.
- * @returns { Promise } - The promise returned by the function.
+ * @returns { Promise } - The promise returned by the function.
* 0 means generate code cache successfully, -1 means internal error.
* @throws { BusinessError } 401 - Invalid input parameter.
* Possible causes: 1. Mandatory parameters are left unspecified.
@@ -6356,9 +6521,10 @@ declare namespace webview {
* @throws { BusinessError } 17100001 - Init error.
* The WebviewController must be associated with a Web component.
* @syscap SystemCapability.Web.Webview.Core
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
- precompileJavaScript(url: string, script: string | Uint8Array, cacheOptions: CacheOptions): Promise;
+ precompileJavaScript(url: string, script: string | Uint8Array, cacheOptions: CacheOptions): Promise;
/**
* Set IP address for host name.
@@ -6410,7 +6576,8 @@ declare namespace webview {
* @throws { BusinessError } 17100002 - URL error. The webpage corresponding to the URL is invalid, or the URL
* length exceeds 2048.
* @syscap SystemCapability.Web.Webview.Core
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
injectOfflineResources(resourceMaps: Array): void;
@@ -6485,7 +6652,8 @@ declare namespace webview {
* @returns { string } The ID of the surface created by ArkWeb.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
getSurfaceId(): string;
@@ -6529,7 +6697,8 @@ declare namespace webview {
* @throws { BusinessError } 17100001 - Init error.
* The WebviewController must be associated with a Web component.
* @syscap SystemCapability.Web.Webview.Core
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
setPathAllowingUniversalAccess(pathList: Array): void;
@@ -6541,7 +6710,8 @@ declare namespace webview {
*
2. Parameter string is too long. 3.Parameter verification failed.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
static trimMemoryByPressureLevel(level: PressureLevel): void;
@@ -6555,6 +6725,18 @@ declare namespace webview {
*/
static enableBackForwardCache(features: BackForwardCacheSupportedFeatures): void;
+ /**
+ * Enable the BackForwardCache and indicate features that are allowed to enter BackForwardCache.
+ * Default is disabled.
+ *
+ * @param { BackForwardCacheSupportedFeatures } [features] - The features that supports BackForwardCache.
+ * @static
+ * @syscap SystemCapability.Web.Webview.Core
+ * @since 20
+ * @arkts 1.2
+ */
+ static enableBackForwardCache(features?: BackForwardCacheSupportedFeatures): void;
+
/**
* Configure the BackForwardCache.
*
@@ -6566,21 +6748,33 @@ declare namespace webview {
*/
setBackForwardCacheOptions(options: BackForwardCacheOptions): void;
+ /**
+ * Configure the BackForwardCache.
+ *
+ * @param { BackForwardCacheOptions } [options] - The configuration of BackForwardCache.
+ * @throws { BusinessError } 17100001 - Init error.
+ * The WebviewController must be associated with a Web component.
+ * @syscap SystemCapability.Web.Webview.Core
+ * @since 20
+ * @arkts 1.2
+ */
+ setBackForwardCacheOptions(options?: BackForwardCacheOptions): void;
/**
* The current scroll offset of the web page (including the over-scroll offset).
*
* @returns { ScrollOffset } The current scroll offset of the web page (including the over-scroll offset).
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 13
+ * @since arkts {'1.1':'13', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
getScrollOffset(): ScrollOffset;
/**
* Scrolls by the specified delta position and returns a result indicating whether the scrolling operation was successful or not.
*
- * @param { number } deltaX - the delta x of the position. Unit: vp.
- * @param { number } deltaY - the delta y of the position. Unit: vp.
+ * @param { double } deltaX - the delta x of the position.
+ * @param { double } deltaY - the delta y of the position.
* @returns { boolean } true if the scroll operation is successful, otherwise false.
* Return value scenario: when the Web page is in the touch state, return false, otherwise return true.
* In the same layer rendering scene, when the same layer rendering area of the Web is in the touching state, the return value is true.
@@ -6591,9 +6785,10 @@ declare namespace webview {
* @throws { BusinessError } 17100001 - Init error.
* The WebviewController must be associated with a Web component.
* @syscap SystemCapability.Web.Webview.Core
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
- scrollByWithResult(deltaX: number, deltaY: number): boolean;
+ scrollByWithResult(deltaX: double, deltaY: double): boolean;
/**
* Gets the last hit test value of HitTest.
@@ -6601,7 +6796,8 @@ declare namespace webview {
* @throws { BusinessError } 17100001 - Init error.
* The WebviewController must be associated with a Web component.
* @syscap SystemCapability.Web.Webview.Core
- * @since 18
+ * @since arkts {'1.1':'18', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
getLastHitTest(): HitTestValue;
@@ -8341,21 +8537,24 @@ 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 PlaybackStatus {
/**
* Player status is paused.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
PAUSED = 0,
/**
* Player status is playing.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
PLAYING,
}
@@ -8365,35 +8564,40 @@ 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 NetworkState {
/**
* Player does not do any download tasks.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
EMPTY = 0,
/**
* Player downloads finished, waiting for next task.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
IDLE,
/**
* Player is downloading contents.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
LOADING,
/**
* Player downloads failed, due to network error.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
NETWORK_ERROR
}
@@ -8403,42 +8607,48 @@ 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 ReadyState {
/**
* Player hasn't downloaded anything.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
HAVE_NOTHING = 0,
/**
* Player has downloaded metadata.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
HAVE_METADATA,
/**
* Player has played all downloaded media data.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
HAVE_CURRENT_DATA,
/**
* The buffered media data is not enough, and will cause jank.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
HAVE_FUTURE_DATA,
/**
* The buffered media data is enough.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
HAVE_ENOUGH_DATA,
}
@@ -8448,28 +8658,32 @@ 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 MediaError {
/**
* Network error
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
NETWORK_ERROR = 1,
/**
* Media format error, such as not a valid file.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
FORMAT_ERROR,
/**
* Decode error, such as decoder doesn't support this format.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
DECODE_ERROR
}
@@ -8481,7 +8695,8 @@ declare namespace webview {
* @typedef NativeMediaPlayerHandler
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
interface NativeMediaPlayerHandler {
@@ -8491,21 +8706,23 @@ declare namespace webview {
* @param { PlaybackStatus } status - Playback status of native media player.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
- handleStatusChanged(status: PlaybackStatus): void
+ handleStatusChanged(status: PlaybackStatus): void;
/**
* Handle native media player volume.
* volume: float
* value range: [0 - 1.0]
*
- * @param { number } volume - Current volume of native media player.
+ * @param { double } volume - Current volume of native media player.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
- handleVolumeChanged(volume: number): void
+ handleVolumeChanged(volume: double): void;
/**
* Handle native media player muted status.
@@ -8513,66 +8730,72 @@ declare namespace webview {
* @param { boolean } muted - Current mute status of native media player.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
- handleMutedChanged(muted: boolean): void
+ handleMutedChanged(muted: boolean): void;
/**
* Handle playback rate of native media player.
* playbackRate: float
* value range: [0 - infinity]
*
- * @param { number } playbackRate - Current playback rate of native media player.
+ * @param { double } playbackRate - Current playback rate of native media player.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
- handlePlaybackRateChanged(playbackRate: number): void
+ handlePlaybackRateChanged(playbackRate: double): void;
/**
* Handle duration time of media.
* duration: float
* value range: [0 - infinity]
*
- * @param { number } duration - Duration time (in seconds) of media.
+ * @param { double } duration - Duration time (in seconds) of media.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
- handleDurationChanged(duration: number): void
+ handleDurationChanged(duration: double): void;
/**
* Handle current playing time of media.
* currentPlayTime: float
* value range: [0 - duration]
*
- * @param { number } currentPlayTime - Current playing time (in seconds) of media.
+ * @param { double } currentPlayTime - Current playing time (in seconds) of media.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
- handleTimeUpdate(currentPlayTime: number): void
+ handleTimeUpdate(currentPlayTime: double): void;
/**
* Handle buffered end time of media.
* bufferedEndTime: float
* value range: [0 - duration]
*
- * @param { number } bufferedEndTime - Buffered end time (in seconds) of media.
+ * @param { double } bufferedEndTime - Buffered end time (in seconds) of media.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
- handleBufferedEndTimeChanged(bufferedEndTime: number): void
+ handleBufferedEndTimeChanged(bufferedEndTime: double): void;
/**
* Handle native player ended event.
*
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
- handleEnded(): void
+ handleEnded(): void;
/**
* Handle network state of native media player.
@@ -8580,9 +8803,10 @@ declare namespace webview {
* @param { NetworkState } state - Network state of native media player.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
- handleNetworkStateChanged(state: NetworkState): void
+ handleNetworkStateChanged(state: NetworkState): void;
/**
* Handle ready state of native media player.
@@ -8590,9 +8814,10 @@ declare namespace webview {
* @param { ReadyState } state - Ready state of native media player.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
- handleReadyStateChanged(state: ReadyState): void
+ handleReadyStateChanged(state: ReadyState): void;
/**
* Handle native media player fullscreen state changed event.
@@ -8600,27 +8825,30 @@ declare namespace webview {
* @param { boolean } fullscreen - Fullscreen state of native media player.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
- handleFullscreenChanged(fullscreen: boolean): void
+ handleFullscreenChanged(fullscreen: boolean): void;
/**
* Handle native media player seeking state.
*
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
- handleSeeking(): void
+ handleSeeking(): void;
/**
* Handle native media player seek finished state.
*
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
- handleSeekFinished(): void
+ handleSeekFinished(): void;
/**
* Handle native media player error event.
@@ -8629,51 +8857,78 @@ declare namespace webview {
* @param { string } errorMessage - Description of current error.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
- handleError(error: MediaError, errorMessage: string): void
+ handleError(error: MediaError, errorMessage: string): void;
/**
* Handle size of video.
*
- * @param { number } width - Width of video.
- * @param { number } height - Height of video.
+ * @param { double } width - Width of video.
+ * @param { double } height - Height of video.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
- handleVideoSizeChanged(width: number, height: number): void
+ handleVideoSizeChanged(width: double, height: double): void;
}
/**
* The scenarios for suspending the media player.
* @enum {number}
* @syscap SystemCapability.Web.Webview.Core
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
enum SuspendType {
/**
* Page enters the BackForwardCache.
* @syscap SystemCapability.Web.Webview.Core
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
ENTER_BACK_FORWARD_CACHE = 0,
/**
* Page enters background.
* @syscap SystemCapability.Web.Webview.Core
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
ENTER_BACKGROUND,
/**
* Cleanup when the number of paused media player over limit.
* @syscap SystemCapability.Web.Webview.Core
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
AUTO_CLEANUP
}
+ /**
+ * The function of reusme media play.
+ *
+ * @typedef { function } ResumePlayerFn
+ * @syscap SystemCapability.Web.Webview.Core
+ * @since 20
+ * @arkts 1.2
+ */
+ type ResumePlayerFn = () => void;
+
+ /**
+ * The function of suspend media play.
+ *
+ * @typedef { function } SuspendPlayerFn
+ * @param { SuspendType } type - The scenario for suspending the media player.
+ * @syscap SystemCapability.Web.Webview.Core
+ * @since 20
+ * @arkts 1.2
+ */
+ type SuspendPlayerFn = (type: SuspendType) => void;
+
/**
* The bridge between web core and native media player.
* Apps should implements this interface, and pass an instance to web core.
@@ -8682,28 +8937,31 @@ declare namespace webview {
* @typedef NativeMediaPlayerBridge
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
interface NativeMediaPlayerBridge {
/**
* Notify native media player that the rect of video tag has changed.
*
- * @param { number } x - The x position of video tag in web component.
- * @param { number } y - The y position of video tag in web component.
- * @param { number } width - The width of video tag.
- * @param { number } height - The height of video tag.
+ * @param { double } x - The x position of video tag in web component.
+ * @param { double } y - The y position of video tag in web component.
+ * @param { double } width - The width of video tag.
+ * @param { double } height - The height of video tag.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
- updateRect(x: number, y: number, width: number, height: number): void
+ updateRect(x: double, y: double, width: double, height: double): void
/**
* Request to play.
*
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
play(): void
@@ -8712,7 +8970,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
*/
pause(): void
@@ -8721,24 +8980,26 @@ declare namespace webview {
* targetTime: float
* value range: [0 - duration]
*
- * @param { number } targetTime - The target time (in seconds) to FF/BF to.
+ * @param { double } targetTime - The target time (in seconds) to FF/BF to.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
- seek(targetTime: number): void
+ seek(targetTime: double): void
/**
* Request to change volume of native media player.
* volume: float
* value range: [0 - 1.0]
*
- * @param { number } volume - The volume of native media player.
+ * @param { double } volume - The volume of native media player.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
- setVolume(volume: number): void
+ setVolume(volume: double): void
/**
* Request to mute native media player.
@@ -8746,7 +9007,8 @@ declare namespace webview {
* @param { boolean } muted - Should mute native media player.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
setMuted(muted: boolean): void
@@ -8755,19 +9017,21 @@ declare namespace webview {
* playbackRate: float
* value range: [0 - 10.0]
*
- * @param { number } playbackRate - The playback rate of native media player.
+ * @param { double } playbackRate - The playback rate of native media player.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
- setPlaybackRate(playbackRate: number): void
+ setPlaybackRate(playbackRate: double): void
/**
* Request to release native media player.
*
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
release(): void
@@ -8776,7 +9040,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
*/
enterFullscreen(): void
@@ -8785,7 +9050,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
*/
exitFullscreen(): void
@@ -8797,6 +9063,16 @@ declare namespace webview {
*/
resumePlayer?(): void
+ /**
+ * Resume the native media player.
+ *
+ * @type { ?ResumePlayerFn }
+ * @syscap SystemCapability.Web.Webview.Core
+ * @since 20
+ * @arkts 1.2
+ */
+ resumePlayer?: ResumePlayerFn;
+
/**
* Suspend to release native media player, not the NativeMediaPlayerBridge. The
* embedder should save the status of player when release the native media player
@@ -8807,6 +9083,18 @@ declare namespace webview {
* @since 12
*/
suspendPlayer?(type: SuspendType): void
+
+ /**
+ * Suspend to release native media player, not the NativeMediaPlayerBridge. The
+ * embedder should save the status of player when release the native media player
+ * through NativeMediaPlayerBridge.
+ *
+ * @type { ?SuspendPlayerFn }
+ * @syscap SystemCapability.Web.Webview.Core
+ * @since 20
+ * @arkts 1.2
+ */
+ suspendPlayer?: SuspendPlayerFn;
}
/**
@@ -8814,21 +9102,24 @@ 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 MediaType {
/**
* Media type is video.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
VIDEO = 0,
/**
* Media type is audio.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
AUDIO
}
@@ -8838,21 +9129,24 @@ 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 SourceType {
/**
* The type of media source is URL.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
URL = 0,
/**
* The type of media source is blob.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
MSE
}
@@ -8862,14 +9156,16 @@ declare namespace webview {
*
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
class MediaSourceInfo {
/**
* Source type, most time is URL.
* @type { SourceType }
* @syscap SystemCapability.Web.Webview.Core
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
type: SourceType;
@@ -8878,7 +9174,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
*/
source: string;
@@ -8887,7 +9184,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
*/
format: string;
}
@@ -8897,41 +9195,46 @@ declare namespace webview {
*
* @typedef RectEvent
* @syscap SystemCapability.Web.Webview.Core
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
interface RectEvent {
/**
* X coordinator of top left point.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.Web.Webview.Core
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
- x: number;
+ x: double;
/**
* Y coordinator of top left point.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.Web.Webview.Core
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
- y: number;
+ y: double;
/**
* Width of this rectangle.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.Web.Webview.Core
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
- width: number;
+ width: double;
/**
* Height of this rectangle.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.Web.Webview.Core
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
- height: number;
+ height: double;
}
/**
@@ -8939,7 +9242,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
*/
class NativeMediaPlayerSurfaceInfo {
/**
@@ -8947,7 +9251,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;
@@ -8955,7 +9260,8 @@ declare namespace webview {
* Surface rect info.
* @type { RectEvent }
* @syscap SystemCapability.Web.Webview.Core
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
rect: RectEvent;
}
@@ -8965,28 +9271,32 @@ 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 Preload {
/**
* Doesn't do preload.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
NONE = 0,
/**
* Only preload metadata.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
METADATA,
/**
* Preload enough data to ensure playing is smooth.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
AUTO
}
@@ -8997,14 +9307,16 @@ declare namespace webview {
* @typedef MediaInfo
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
interface MediaInfo {
/**
* Id of media element.
* @type { string }
* @syscap SystemCapability.Web.Webview.Core
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
embedID: string,
/**
@@ -9012,7 +9324,8 @@ declare namespace webview {
* @type { MediaType }
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
mediaType: MediaType,
/**
@@ -9020,7 +9333,8 @@ declare namespace webview {
* @type { MediaSourceInfo[] }
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
mediaSrcList: MediaSourceInfo[],
/**
@@ -9028,7 +9342,8 @@ declare namespace webview {
* @type { NativeMediaPlayerSurfaceInfo }
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
surfaceInfo: NativeMediaPlayerSurfaceInfo,
/**
@@ -9036,7 +9351,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
*/
controlsShown: boolean,
/**
@@ -9045,7 +9361,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
*/
controlList: string[],
/**
@@ -9053,7 +9370,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
*/
muted: boolean,
/**
@@ -9061,7 +9379,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
*/
posterUrl: string,
/**
@@ -9069,21 +9388,24 @@ declare namespace webview {
* @type { Preload }
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
preload: Preload,
/**
* Header information of a media network request.
* @type { Record }
* @syscap SystemCapability.Web.Webview.Core
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
headers: Record,
/**
* The information list of attributes of media tag.
* @type { Record }
* @syscap SystemCapability.Web.Webview.Core
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
attributes: Record,
}
@@ -9097,7 +9419,8 @@ declare namespace webview {
* @returns { NativeMediaPlayerBridge } Returns whether the app takes over the media.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
type CreateNativeMediaPlayerCallback =
(handler: NativeMediaPlayerHandler, mediaInfo: MediaInfo) => NativeMediaPlayerBridge;
@@ -9261,7 +9584,8 @@ declare namespace webview {
* This class is used to enable back forward cache supported features.
*
* @syscap SystemCapability.Web.Webview.Core
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
class BackForwardCacheSupportedFeatures {
/**
@@ -9270,7 +9594,8 @@ declare namespace webview {
*
* @type { boolean }
* @syscap SystemCapability.Web.Webview.Core
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
nativeEmbed: boolean;
@@ -9280,13 +9605,15 @@ declare namespace webview {
*
* @type { boolean }
* @syscap SystemCapability.Web.Webview.Core
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
mediaTakeOver: boolean;
/**
* @syscap SystemCapability.Web.Webview.Core
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
constructor();
}
@@ -9295,32 +9622,36 @@ declare namespace webview {
* This class is used to set back forward cache options.
*
* @syscap SystemCapability.Web.Webview.Core
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
class BackForwardCacheOptions {
/**
* Set the maximum size of pages that can cache.
* Default is 1, max is 50.
*
- * @type { number }
+ * @type { int }
* @syscap SystemCapability.Web.Webview.Core
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
- size: number;
+ size: int;
/**
* Set the lifetime in seconds in the BackForwardCache.
* Default is 600.
*
- * @type { number }
+ * @type { int }
* @syscap SystemCapability.Web.Webview.Core
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
- timeToLive: number;
+ timeToLive: int;
/**
* @syscap SystemCapability.Web.Webview.Core
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
constructor();
}
@@ -9381,7 +9712,8 @@ declare namespace webview {
* @enum { number }
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 19
+ * @since arkts {'1.1':'19', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
enum ProxySchemeFilter {
/**
@@ -9393,7 +9725,8 @@ declare namespace webview {
* This indicates all the schemes will use the proxy.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 19
+ * @since arkts {'1.1':'19', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
MATCH_ALL_SCHEMES = 0,
/**
@@ -9405,7 +9738,8 @@ declare namespace webview {
* This indicates only the HTTP requests will use the proxy.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 19
+ * @since arkts {'1.1':'19', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
MATCH_HTTP = 1,
/**
@@ -9417,7 +9751,8 @@ declare namespace webview {
* This indicates only the HTTPS requests will use the proxy.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 19
+ * @since arkts {'1.1':'19', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
MATCH_HTTPS = 2,
}
@@ -9433,7 +9768,8 @@ declare namespace webview {
*
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 19
+ * @since arkts {'1.1':'19', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
class ProxyConfig {
/**
@@ -9527,7 +9863,8 @@ declare namespace webview {
*
2. Incorrect parameter types.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 19
+ * @since arkts {'1.1':'19', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
insertProxyRule(proxyRule: string, schemeFilter?: ProxySchemeFilter): void;
@@ -9624,7 +9961,8 @@ declare namespace webview {
* @returns { Array } The proxy rules.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 19
+ * @since arkts {'1.1':'19', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
getProxyRules(): Array;
@@ -9657,7 +9995,8 @@ declare namespace webview {
*
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 19
+ * @since arkts {'1.1':'19', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
class ProxyRule {
/**
@@ -9673,7 +10012,8 @@ declare namespace webview {
* @returns { ProxySchemeFilter } The scheme filter used for this rule.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 19
+ * @since arkts {'1.1':'19', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
getSchemeFilter(): ProxySchemeFilter;
@@ -9690,7 +10030,8 @@ declare namespace webview {
* @returns { string } The proxy URL.
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
- * @since 19
+ * @since arkts {'1.1':'19', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
getUrl(): string;
}
--
Gitee