Module Description
This module provides the web control capability. For details about the web page display capability, see Components.
NOTE
The initial APIs of this module are supported since API version 9. Updates will be marked with a superscript to indicate their earliest API version.
The sample effect is subject to the actual device.
Static methods must be used on the user interface (UI) thread.
This module provides the following common functionalities for web control:
- AdsBlockManager: Ad filtering configuration.
- BackForwardCacheOptions: Forward and backward cache configuration.
- BackForwardCacheSupportedFeatures: Forward and backward cache feature configuration.
- GeolocationPermissions: Geolocation permission configuration.
- JsMessageExt: JavaScript execution result.
- MediaSourceInfo: Media source information configuration.
- NativeMediaPlayerSurfaceInfo: Rendering information when the application takes over media playback.
- PdfData: Generated PDF output data.
- ProxyConfig: Network proxy configuration.
- ProxyController: Network proxy controller.
- WebviewController: Web component controller.
- WebCookieManager: Cookie management.
- WebDataBase: Database management.
- WebDownloadDelegate: Download task status event.
- WebDownloadItem: Download task.
- WebDownloadManager: Download task management.
- WebHttpBodyStream: HTTP request body.
- WebMessageExt: Data object for communication between the frontend and application.
- WebResourceHandler: Resource loading control.
- WebSchemeHandler: Request interceptor of a specified scheme.
- WebSchemeHandlerRequest: Request intercepted by the interceptor.
- WebSchemeHandlerResponse: Custom responses for intercepted requests.
- WebStorage: Storage operation API of the Web component.
- BackForwardList: History information list.
- NativeMediaPlayerBridge: Bridge API for taking over web media players.
- NativeMediaPlayerHandler: Event API for taking over web media players.
- WebMessagePort: Message port between the web page and application.
Required Permissions
ohos.permission.INTERNET, required for accessing online web pages. For details about how to apply for a permission, see Declaring Permissions.
Modules to Import
import { webview } from '@kit.ArkWeb';
System capability: SystemCapability.Web.Webview.Core