harmony 鸿蒙Introduction to ArkWeb
Introduction to ArkWeb
When to Use
ArkWeb provides Web components to display web page content in applications. You can use the components in the following scenarios: - Web page integration: Applications can use Web components to embed web page content to reduce development costs and improve development and operation efficiency.
Web browsing: Browser applications can use Web components to open third-party web pages, browse web pages in traceless mode, and set advertisement blocking.
Applet: Host applications of applets can use Web components to render the pages of the applets.
Available Capabilities
The Web component provides various capabilities for you to control web pages, including:
Web page loading: declarative loading and off-screen loading of web pages.
Lifecycle management: component lifecycle status change and web page loading status change notification.
Common attributes and events: management of user agent, cookie and storage, font and dark mode, and permission.
Interaction with the application UI: The custom text selection menu, context menu, and file upload page can interact with the application UI.
Interaction between applications and web pages through JavaScriptProxy.
Security and privacy: traceless browsing mode, advertisement blocking, and Secure Shield mode.
Maintenance and debugging capability: DevTools for debugging, crashpad for collecting crash information of the Web component.
Other advanced capabilities: same-layer rendering with native components, network and media playback takeover, and custom input method for Web component text boxes .
Constraints
- Web kernel version: ArkWeb is developed based on Chromium M114.
Samples
The following samples are provided to help you better understand how to develop Web components:
你可能感兴趣的鸿蒙文章
harmony 鸿蒙Taking Over the Media Playback on Web Pages
harmony 鸿蒙Mutual Invoking Between the Application and the Frontend Page (C/C++)
harmony 鸿蒙Establishing a Data Channel Between the Application and the Frontend Page (C/C++)
harmony 鸿蒙Enabling Ads Blocking
harmony 鸿蒙Establishing a Data Channel Between the Application and the Frontend Page
harmony 鸿蒙Migrating Web Components Between Different Windows
harmony 鸿蒙Implementing Content Scrolling
harmony 鸿蒙Managing Cookies and Data Storage
harmony 鸿蒙Using Crashpad to Collect Web Component Crash Information
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦