From 24c778c7868c07d9eda7daa03b6bf78ea8c8e857 Mon Sep 17 00:00:00 2001 From: ji_xinliu Date: Tue, 9 Jul 2024 15:56:07 +0800 Subject: [PATCH] =?UTF-8?q?web=20api=20lint=E5=91=8A=E8=AD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ji_xinliu --- api/@internal/component/ets/web.d.ts | 73 ++++++-- api/@ohos.web.webview.d.ts | 134 ++++++++++++++- .../plugin/dictionaries_supplementary.txt | 156 ++++++++++-------- 3 files changed, 274 insertions(+), 89 deletions(-) diff --git a/api/@internal/component/ets/web.d.ts b/api/@internal/component/ets/web.d.ts index bed85865e..1ab9cd12d 100644 --- a/api/@internal/component/ets/web.d.ts +++ b/api/@internal/component/ets/web.d.ts @@ -34,6 +34,7 @@ /** * Provides methods for controlling the web controller. * + * @typedef { import('../api/@ohos.web.webview').default.WebviewController } * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice @@ -44,6 +45,8 @@ declare type WebviewController = import('../api/@ohos.web.webview').default.Webv /** * The callback of load committed. * + * @typedef { function } OnNavigationEntryCommittedCallback + * @param { LoadCommittedDetails } loadCommittedDetails - callback information of onNavigationEntryCommitted. * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 @@ -53,7 +56,8 @@ type OnNavigationEntryCommittedCallback = (loadCommittedDetails: LoadCommittedDe /** * The callback of ssl error event. * - * @typedef OnSslErrorEventCallback + * @typedef { function } OnSslErrorEventCallback + * @param { SslErrorEvent } sslErrorEvent - callback information of onSslErrorEvent. * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -63,7 +67,8 @@ type OnSslErrorEventCallback = (sslErrorEvent: SslErrorEvent) => void; /** * The callback of largestContentfulPaint. * - * @typedef OnLargestContentfulPaintCallback + * @typedef { function } OnLargestContentfulPaintCallback + * @param { LargestContentfulPaint } largestContentfulPaint - callback information of onLargestContentfulPaint. * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -73,7 +78,8 @@ type OnLargestContentfulPaintCallback = (largestContentfulPaint: LargestContentf /** * The callback of firstMeaningfulPaint. * - * @typedef OnFirstMeaningfulPaintCallback + * @typedef { function } OnFirstMeaningfulPaintCallback + * @param { FirstMeaningfulPaint } firstMeaningfulPaint - callback information of onFirstMeaningfulPaint. * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -83,8 +89,11 @@ type OnFirstMeaningfulPaintCallback = (firstMeaningfulPaint: FirstMeaningfulPain /** * The callback of onOverrideUrlLoading. * Should not call WebviewController.loadUrl with the request's URL and then return true. - * Returning true causes the current Web to abort loading the URL, false causes the Web to continue loading the url as usual. * + * @typedef { function } OnOverrideUrlLoadingCallback + * @param { WebResourceRequest } webResourceRequest - callback information of onOverrideUrlLoading. + * @returns { boolean } - Returning true causes the current Web to abort loading the URL, + * false causes the Web to continue loading the url as usual. * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -94,6 +103,8 @@ type OnOverrideUrlLoadingCallback = (webResourceRequest: WebResourceRequest) => /** * The callback of Intelligent Tracking Prevention. * + * @typedef { function } OnIntelligentTrackingPreventionCallback + * @param { IntelligentTrackingPreventionDetails } details - callback information of onIntelligentTrackingPrevention. * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -133,8 +144,8 @@ declare interface NativeMediaPlayerConfig { /** * The callback of render process not responding. * - * @typedef {function} OnRenderProcessNotRespondingCallback - * @param {RenderProcessNotRespondingData} data - details of onRenderProcessNotResponding. + * @typedef { function } OnRenderProcessNotRespondingCallback + * @param { RenderProcessNotRespondingData } data - details of onRenderProcessNotResponding. * @syscap SystemCapability.Web.Webview.Core * @since 12 */ @@ -143,7 +154,7 @@ type OnRenderProcessNotRespondingCallback = (data : RenderProcessNotRespondingDa /** * The callback of render process responding. * - * @typedef {function} OnRenderProcessRespondingCallback + * @typedef { function } OnRenderProcessRespondingCallback * @syscap SystemCapability.Web.Webview.Core * @since 12 */ @@ -152,8 +163,8 @@ type OnRenderProcessRespondingCallback = () => void; /** * The callback of ViewportFit Changed. * - * @typedef {function} OnViewportFitChangedCallback - * @param {ViewportFit} viewportFit - details of OnViewportFitChangedCallback. + * @typedef { function } OnViewportFitChangedCallback + * @param { ViewportFit } viewportFit - details of OnViewportFitChangedCallback. * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -163,7 +174,8 @@ type OnViewportFitChangedCallback = (viewportFit: ViewportFit) => void; /** * The callback of ads block * - * @typedef {function} OnAdsBlockedCallback + * @typedef { function } OnAdsBlockedCallback + * @param { AdsBlockedDetails } details - details of OnAdsBlockedCallback. * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -328,9 +340,9 @@ declare interface WebKeyboardCallbackInfo { /** * The callback of onInterceptKeyboardAttach event. * - * @typedef {function} WebKeyboardCallback - * @param {WebKeyboardCallbackInfo} keyboardCallbackInfo - callback information of onInterceptKeyboardAttach. - * @returns {WebKeyboardOptions} Return the web keyboard options of this web component. + * @typedef { function } WebKeyboardCallback + * @param { WebKeyboardCallbackInfo } keyboardCallbackInfo - callback information of onInterceptKeyboardAttach. + * @returns { WebKeyboardOptions } Return the web keyboard options of this web component. * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -500,6 +512,8 @@ declare enum MixedMode { /** * The callback of safe browsing check. * + * @typedef { function } OnSafeBrowsingCheckResultCallback + * @param { ThreatType } threatType - callback information of onSafeBrowsingCheckResult. * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 @@ -1043,6 +1057,7 @@ declare interface FullScreenEnterEvent { /** * A function handle to exit full-screen mode. * + * @type { FullScreenExitHandler } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -1051,6 +1066,7 @@ declare interface FullScreenEnterEvent { /** * The intrinsic width of the video if the fullscreen element contains video element, expressed in CSS pixels. * + * @type { ?number } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -1059,6 +1075,7 @@ declare interface FullScreenEnterEvent { /** * The intrinsic height of the video if the fullscreen element contains video element, expressed in CSS pixels. * + * @type { ?number } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -1069,6 +1086,8 @@ declare interface FullScreenEnterEvent { /** * The callback when the web component enter full screen mode. * + * @typedef { function } OnFullScreenEnterCallback + * @param { FullScreenEnterEvent } event - callback information of onFullScreenEnter. * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -1170,6 +1189,7 @@ declare enum RenderExitReason { /** * The callback of custom hide of the context menu. * + * @typedef { function } OnContextMenuHideCallback * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 @@ -1924,7 +1944,16 @@ declare enum ProtectedResourceType { * @atomicservice * @since 11 */ - AUDIO_CAPTURE = 'TYPE_AUDIO_CAPTURE' + AUDIO_CAPTURE = 'TYPE_AUDIO_CAPTURE', + + /** + * The sensor resource, such as accelerometer. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 12 + */ + SENSOR = 'TYPE_SENSOR' } /** @@ -2461,7 +2490,7 @@ declare enum NativeEmbedStatus { DESTROY = 2, /** - * The embed tag enter backforwardcache. + * The embed tag enter backforward cache. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice @@ -2470,7 +2499,7 @@ declare enum NativeEmbedStatus { ENTER_BFCACHE = 3, /** - * The embed tag leave backforwardcache. + * The embed tag leave backforward cache. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice @@ -5984,7 +6013,7 @@ declare interface JavaScriptProxy { /** * The async method of the application side JavaScript object participating in the registration. * - * @type { Array } + * @type { ?Array } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -7782,7 +7811,7 @@ declare class WebAttribute extends CommonMethod { /** * Set the default text encodingFormat value of webview. The default value is UTF-8. * - * @param { string } default text encodingFormat. + * @param { string } textEncodingFormat text encodingFormat. * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core * @atomicservice @@ -8450,6 +8479,7 @@ declare class WebAttribute extends CommonMethod { /** * Defines Web Component. * + * @constant * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice @@ -8466,6 +8496,7 @@ declare const Web: WebInterface; /** * Defines Web Component instance. * + * @constant * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 @@ -8484,6 +8515,7 @@ declare interface SslErrorEvent { /** * Notifies the user of the operation behavior of the web component. * + * @type { SslErrorHandler } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -8492,6 +8524,7 @@ declare interface SslErrorEvent { /** * Error codes. * + * @type { SslError } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -8500,6 +8533,7 @@ declare interface SslErrorEvent { /** * Request url. * + * @type { string } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -8508,6 +8542,7 @@ declare interface SslErrorEvent { /** * Original url. * + * @type { string } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -8516,6 +8551,7 @@ declare interface SslErrorEvent { /** * Referrer. * + * @type { string } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -8524,6 +8560,7 @@ declare interface SslErrorEvent { /** * Whether the error is fatal. * + * @type { boolean } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 diff --git a/api/@ohos.web.webview.d.ts b/api/@ohos.web.webview.d.ts index 999842926..84011c3af 100644 --- a/api/@ohos.web.webview.d.ts +++ b/api/@ohos.web.webview.d.ts @@ -97,6 +97,7 @@ declare namespace webview { */ /** * Gets the key of the request/response header. + * @type { string } * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice @@ -117,6 +118,7 @@ declare namespace webview { */ /** * Gets the value of the request/response header. + * @type { string } * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice @@ -388,6 +390,31 @@ declare namespace webview { STOPPED = 3 } + /** + * The memory pressure level that can be set. + * @enum {number} + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 12 + */ + 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 12 + */ + MEMORY_PRESSURE_LEVEL_MODERATE = 1, + + /** + * At this level, modules are advised to free all possible memory. + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 12 + */ + MEMORY_PRESSURE_LEVEL_CRITICAL = 2 + } + /** * Defines the hit test value, related to {@link getHitTestValue} method. * @@ -422,6 +449,7 @@ declare namespace webview { /** * Get the hit test type. * + * @type { WebHitTestType } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 @@ -437,6 +465,7 @@ declare namespace webview { /** * Get the hit test extra data. * + * @type { string } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 @@ -478,6 +507,7 @@ declare namespace webview { /** * Name of the custom scheme. * + * @type { string } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 @@ -493,6 +523,7 @@ declare namespace webview { /** * Whether Cross-Origin Resource Sharing is supported. * + * @type { boolean } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 @@ -508,6 +539,7 @@ declare namespace webview { /** * Whether fetch request is supported. * + * @type { boolean } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 @@ -519,6 +551,7 @@ declare namespace webview { * schemes needs to comply with the URL normalization and parsing rules defined in Section 3.1 of RFC 1738, * which can be found in the http://www.ietf.org/rfc/rfc1738.txt. * + * @type { ?boolean } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -529,6 +562,7 @@ declare namespace webview { * If isLocal is true, the same security rules as those applied to the "file" URL will be * used to handle the scheme. * + * @type { ?boolean } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -539,6 +573,7 @@ declare namespace webview { * If isDisplayIsolated is true, then the scheme can only be displayed from other content * hosted using the same scheme. * + * @type { ?boolean } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -549,6 +584,7 @@ declare namespace webview { * If isSecure is true, the same security rules as those applied to the "https" URL will be * used to handle the scheme. * + * @type { ?boolean } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -559,6 +595,7 @@ declare namespace webview { * If isCspBypassing is true, then this scheme can bypass Content Security Policy (CSP) * checks. In most cases, this value should not be true when isStandard is true. * + * @type { ?boolean } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -608,6 +645,7 @@ declare namespace webview { /** * Url source. * + * @type { string } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 @@ -622,6 +660,7 @@ declare namespace webview { /** * Specify the amount of storage for the source. * + * @type { number } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 @@ -636,6 +675,7 @@ declare namespace webview { /** * the callback of getOriginUsage. * + * @type { number } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 @@ -654,6 +694,7 @@ declare namespace webview { interface RequestInfo { /** * Gets the url of the request. + * @type { string } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -662,6 +703,7 @@ declare namespace webview { /** * Gets the method of the request. + * @type { string } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -670,6 +712,7 @@ declare namespace webview { /** * Gets the form data of the request. + * @type { string } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -1956,6 +1999,7 @@ declare namespace webview { /** * WebMessage type supplied to {@link onMessageEventExt} for indicating the type of web message. * + * @typedef { ArrayBuffer | string } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 @@ -1993,6 +2037,7 @@ declare namespace webview { /** * The flag indicates whether more formats are supported than string and array buffers. * + * @type { ?boolean } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 @@ -2126,6 +2171,7 @@ declare namespace webview { */ /** * Pixelmap of icon. + * @type { image.PixelMap } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 @@ -2139,6 +2185,7 @@ declare namespace webview { */ /** * Url of this history item. + * @type { string } * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice @@ -2153,6 +2200,7 @@ declare namespace webview { */ /** * Original request url of this history item. + * @type { string } * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice @@ -2167,6 +2215,7 @@ declare namespace webview { */ /** * Title of this history item. + * @type { string } * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice @@ -2205,6 +2254,7 @@ declare namespace webview { */ /** * Current index in BackForwardList. + * @type { number } * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice @@ -2219,6 +2269,7 @@ declare namespace webview { */ /** * Size of in BackForwardList. + * @type { number } * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice @@ -2575,6 +2626,7 @@ declare namespace webview { * Response headers used to configure the validation key of code cache. * Currently only support E-Tag and Last-Modified. * + * @type { Array } * @syscap SystemCapability.Web.Webview.Core * @since 12 */ @@ -4944,6 +4996,18 @@ declare namespace webview { * @since 12 */ setPathAllowingUniversalAccess(pathList: Array): void; + + /** + * Trim memory by different memory pressure level. + * + * @param { PressureLevel } level - The memory pressure level for the ArkWeb. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. + *
2. Parameter string is too long. 3.Parameter verification failed. + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 12 + */ + static trimMemoryByPressureLevel(level: PressureLevel): void; } /** @@ -5942,7 +6006,7 @@ declare namespace webview { /** * Set the response encoding. * - * @param { string } type - Encoding. + * @param { string } encoding - Encoding. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types. * @syscap SystemCapability.Web.Webview.Core * @atomicservice @@ -5963,7 +6027,7 @@ declare namespace webview { * * @param { string } name - Header name. * @param { string } value - Header value. - * @param { boolean } name - Whether to overwrite. + * @param { boolean } overwrite - Whether to overwrite. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. *
2. Incorrect parameter types. * @syscap SystemCapability.Web.Webview.Core @@ -6379,6 +6443,35 @@ declare namespace webview { handleVideoSizeChanged(width: number, height: number): void } + /** + * The scenarios for suspending the media player. + * @enum {number} + * @syscap SystemCapability.Web.Webview.Core + * @since 12 + */ + enum SuspendType { + /** + * Page enters the BackForwardCache. + * @syscap SystemCapability.Web.Webview.Core + * @since 12 + */ + ENTER_BACK_FORWARD_CACHE = 0, + + /** + * Page enters background. + * @syscap SystemCapability.Web.Webview.Core + * @since 12 + */ + ENTER_BACKGROUND, + + /** + * Cleanup when the number of paused media player over limit. + * @syscap SystemCapability.Web.Webview.Core + * @since 12 + */ + AUTO_CLEANUP + } + /** * The bridge between web core and native media player. * Apps should implements this interface, and pass an instance to web core. @@ -6493,6 +6586,25 @@ declare namespace webview { * @since 12 */ exitFullscreen(): void + + /** + * Resume the native media player. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 12 + */ + resumePlayer?(): 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. + * + * @param { SuspendType } type - The scenario for suspending the media player. + * @syscap SystemCapability.Web.Webview.Core + * @since 12 + */ + suspendPlayer?(type: SuspendType): void } /** @@ -6553,6 +6665,7 @@ declare namespace webview { class MediaSourceInfo { /** * Source type, most time is URL. + * @type { SourceType } * @syscap SystemCapability.Web.Webview.Core * @since 12 */ @@ -6560,6 +6673,7 @@ declare namespace webview { /** * Media source, most time is Uri. + * @type { string } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -6568,6 +6682,7 @@ declare namespace webview { /** * Media format, such as mp4, webm, m3u8 etc. + * @type { string } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -6627,6 +6742,7 @@ declare namespace webview { class NativeMediaPlayerSurfaceInfo { /** * Id of surface. + * @type { string } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -6690,6 +6806,7 @@ declare namespace webview { embedID: string, /** * Media type : Video or Audio. + * @type { MediaType } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -6697,6 +6814,7 @@ declare namespace webview { mediaType: MediaType, /** * Media source list, player should choose an appropriate one to play. + * @type { MediaSourceInfo[] } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -6704,6 +6822,7 @@ declare namespace webview { mediaSrcList: MediaSourceInfo[], /** * Surface to render media content on. + * @type { NativeMediaPlayerSurfaceInfo } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -6711,6 +6830,7 @@ declare namespace webview { surfaceInfo: NativeMediaPlayerSurfaceInfo, /** * Should show media controls. + * @type { boolean } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -6719,6 +6839,7 @@ declare namespace webview { /** * Limit media controls items. * Such as 'nodownload', 'nofullscreen', 'noremoteplayback' + * @type { string[] } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -6726,6 +6847,7 @@ declare namespace webview { controlList: string[], /** * Player should be muted; + * @type { boolean } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -6733,6 +6855,7 @@ declare namespace webview { muted: boolean, /** * Player should show poster before media first frame shown. + * @type { string } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -6740,6 +6863,7 @@ declare namespace webview { posterUrl: string, /** * Preload type. + * @type { Preload } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 @@ -6747,12 +6871,14 @@ declare namespace webview { preload: Preload, /** * Header information of a media network request. + * @type { Record } * @syscap SystemCapability.Web.Webview.Core * @since 12 */ headers: Record, /** * The information list of attributes of media tag. + * @type { Record } * @syscap SystemCapability.Web.Webview.Core * @since 12 */ @@ -6762,6 +6888,10 @@ declare namespace webview { /** * The callback of creating a native media player. * + * @typedef { function } + * @param { NativeMediaPlayerHandler } handler - callback information of onCreateNativeMediaPlayer. + * @param { MediaInfo } mediaInfo - callback information of onCreateNativeMediaPlayer. + * @returns { NativeMediaPlayerBridge } Returns whether the app takes over the media. * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 12 diff --git a/build-tools/api_check_plugin/plugin/dictionaries_supplementary.txt b/build-tools/api_check_plugin/plugin/dictionaries_supplementary.txt index f5cab3ccb..0d3fb1b7e 100644 --- a/build-tools/api_check_plugin/plugin/dictionaries_supplementary.txt +++ b/build-tools/api_check_plugin/plugin/dictionaries_supplementary.txt @@ -1,7 +1,7 @@ a256 a2dpsource -aafwk aabb +aafwk abilityname abilityslice abnormally @@ -11,13 +11,17 @@ accommodates aces acmmax acn +acquires activates actived +adapts +adblock adcp adjusts adpu adts advertisements +aec affinities agrees aiding @@ -25,6 +29,7 @@ aifc alerting algrithom aligns +allowlist alpha alpn alpnprotocols @@ -50,8 +55,9 @@ arrarybuffer arraybuffer arrlist ashmem -associating askpass +asr +associating asy asyn asynchronized @@ -72,13 +78,17 @@ autosizing averr avoidareachange avrcp +avscreencapture avsession +backforwardcache backgrounding backpress backs base64 +baselines bassboost batching +beidou beta1 bevels bgra @@ -110,6 +120,7 @@ buttonconfig bypassed bypassing bytrace +backforward callbackfn camped canceling @@ -136,6 +147,7 @@ circled clamped clamps cleartext +clouddata cloudfile coincides collaborated @@ -144,12 +156,13 @@ collations collectable colno colorfilter +commonevent complied complies compositing compresses -cone concatenates +cone conferencing confpersist connectable @@ -168,6 +181,7 @@ crl crls crops crosshair +crossings crowdtest crowdtested crowdtesting @@ -193,10 +207,10 @@ deactivates deactivation decodes decomposed -decompression decompressed decompresses decompressing +decompression decr decrypts defaulted @@ -229,6 +243,7 @@ dirxml disables disallowed disallowing +disallowlist disallows discards discharging @@ -250,8 +265,8 @@ dop downlink downmix dpad -drains dragbar +drains drawbuffer drm dsda @@ -263,24 +278,27 @@ ducking earfcn earphones earpiece +easylist ebu ece edr efuse efx egid -enhancing ehrpd ejectclosecd -emption emphasized +emption encapsulates +encipherment encloses encompassed encrypts endc endx endy +enhancing +enqueued enrolled enrolls enumeratable @@ -292,6 +310,7 @@ erver esim ethiopic ets +euc euid evdo evenodd @@ -319,6 +338,7 @@ flips flushes foiling foldable +followx foregrounding formatable formulat @@ -328,18 +348,22 @@ freesize fstat fsync ftruncate +fts fulfills fuma furse gamepad gba +gbk geofence +geofences getunfilteredlinkurl glasses +glonass gnss goaway -graphicseditor granting +graphicseditor greate gtc gunzip @@ -357,11 +381,11 @@ gzerror gzflush gzfread gzfwrite -gzgets gzgetc +gzgets gzoffset -gzopenw gzopen +gzopenw gzprintf gzputc gzputs @@ -408,6 +432,7 @@ hierarchically hifi hilog hinote +hinting hisysevent hitrace hiview @@ -468,6 +493,7 @@ interworking invalidates ipaddr ipsec +irnss irradiance isdn isim @@ -483,9 +509,9 @@ kbdillum kbdinputassist kbps kdf -keyof keyframe keyguard +keyof keyusage khronos kneading @@ -496,6 +522,8 @@ lacked lanes lasted lastmode +latitudeyyy +latitudezzz latn layoutable lbitfield @@ -510,6 +538,8 @@ lfloat libraryname lifted lifts +lightens +lightupEffect linearly lintptr listened @@ -522,8 +552,6 @@ loggable logoff longitudinally lowercased -lightens -lightupEffect lpx lru lseek @@ -546,8 +574,8 @@ mdns mdnserror mediaquery meid -messageerror meshes +messageerror metered metering mgf @@ -566,9 +594,11 @@ mmax mmi mmicode mnc +mnote moderately moitor moov +mori mplink mschap msdos @@ -600,11 +630,10 @@ nlink nmea nnrt nnrtdevice -nopadding -mori no_gzcompress nodownload nofullscreen +nopadding noremoteplayback normalizer notifies @@ -615,6 +644,9 @@ nvalidates nweb oaep obscured +occluding +occluder +ocsp ofb offhook offscreen @@ -648,6 +680,7 @@ ota ott ounted outlines +outlining overheated overlimit overline @@ -681,8 +714,8 @@ pertaining pfa pfb pgo -photographing phonemes +photographing phy pickers pixelmap @@ -702,14 +735,18 @@ ppid pread precisiontype precomposed +precomposited precon preconnect -preconnected preconnectable +preconnected preconnecting preempted preferentially prefetched +prefetcher +prefetches +prefetching preinstalled prelaunch preloads @@ -721,8 +758,8 @@ preresolve presentationml presently presistent -previewed prevgroup +previewed prikey primaries proactively @@ -741,6 +778,7 @@ pvr quant querier queriers +qzss racing radiuses rasterizer @@ -751,16 +789,19 @@ reallocate reassociate rebounds recalculated +reclaimed reconfiguration reconfirm +reconfirmed recovered recovering recovers recursions -reclaimed redefines redirections +reenter refill +refresher refusing rehandshake rejects @@ -777,6 +818,7 @@ repeates replacer reposition rerouting +resfile resizeable resmgr resourceschedule @@ -802,16 +844,21 @@ rmdir rotatable rscp rsrp +rtcp rtd rtt -rtcp ruim +ruleset rwt +resfile s5 sac sae sak +sandboxes +sar satellites +sbas sbc scdma scene @@ -843,8 +890,9 @@ sha1 shadertype sharedarraybuffer shenzhen -shrinks shortkey +showcounter +shrinks shuts sigalgs silenced @@ -852,11 +900,6 @@ singly skews slidable sliderstyle -statvfs -stk -str -strokes -structurally sm3 smil smpte @@ -887,12 +930,17 @@ srgb ssp stablization statfs +statvfs +stk stopcd storei storge +str strikethrough strm stroked +strokes +structurally stuffit subassembies subassemblies @@ -902,6 +950,7 @@ subframes subkeys subnode subpixel +subresource subscrbers subscribale subscribes @@ -914,6 +963,7 @@ subwindows superimposed suscriber suscribes +suspending suspends swanctl switchvideomode @@ -931,7 +981,7 @@ systemapp systembar systemsize systemui -showcounter +suspending tailoring talkback taskmanager @@ -954,6 +1004,7 @@ timeinterfaceimpl tlsv12 tlsv13 tnf +tones totalsize touchpad trackinfo @@ -977,10 +1028,12 @@ uarfcn ubset ucs udid +uids uint8 uint8arr uitest umalqura +unadjustable unapply unassigned unauth @@ -991,6 +1044,8 @@ unbond uncalibrated uncategorized uncatergorized +uncertainty +unchained unchangeable unclearable uncompress @@ -1028,7 +1083,9 @@ unmuted unmutes unobserve unperceivable +unpipe unpremultiplied +unprepare unpressed unregistered unregistering @@ -1039,8 +1096,8 @@ unrestricted unrevoked unsecure unsent -unspec unshare +unspec unsubscribes unsuccessfully unsupport @@ -1056,13 +1113,11 @@ utilized utimes uuids uwb -uids -unpipe v9 varyings -viewframe vibrates vibrating +viewframe vlr voicemail voidpf @@ -1124,43 +1179,6 @@ zfail zoffset zoomin zoomout -asr -aec zoomreset zooms zpass -tones -commonevent -clouddata -unadjustable -unprepare -unchained -sandboxes -avscreencapture -sar -adapts -followx -precomposited -refresher -irnss -beidou -qzss -glonass -sbas -uncertainty -geofences -gbk -ocsp -encipherment -reconfirmed -subresource -euc -ruleset -easylist -allowlist -disallowlist -adblock -enqueued -acquires -reenter -redefines