web组件仓颉封装层
Access rate limit exceeded. Please log in to continue.
arkweb_cangjie_wrapper
Introduction
The Web Cangjie Interface is a Cangjie API encapsulated on OpenHarmony based on ArkWeb capabilities. It provides the capabilities of Web component control, Cookie management, and historical information list. The currently open ArkWeb Cangjie api only supports standard devices.
Architecture
Figure 1 Architecture of the web subsystem

As shown in the architecture:
- BackForwardList: Provides the capability to obtain information about the historical record item at a specified index in the historical list.
- WebCookieManager: Provides the capability to control various behaviors of cookies in Web components.
- WebviewController: Provides the capability to control various behaviors of Web components (including behaviors such as page navigation, lifecycle status, and JavaScript interaction).
- Cangjie ArkWeb FFI Interface: Based on cross-language interoperability via C interfaces to implement ArkWeb Cangjie API.
- webview: Responsible for providing basic webview functions, and encapsulates C interfaces for Cangjie to conduct interoperation.
Directory Structure
base/web/arkweb_cangjie_wrapper
├── figures # architecture pictures
├── kit # Cangjie ArkWeb kit code
│ └── ArkWeb
├── ohos # Cangjie ArkWeb code
│ └── web
└── test # Cangjie ArkWeb test cases
Usage Guidelines
The following features are provided:
- BackForwardList:list of historical information
- WebCookieManager:Cookie Management
- WebviewController:Web Component Controller
The following features are not provided yet:
- AdsBlockManager:Ad Blocking Configuration
- BackForwardCacheOptions:Forward/Backward Cache Configuration
- BackForwardCacheSupportedFeatures:Forward/Backward Cache Feature Configuration
- GeolocationPermissions: Geolocation Permission Configuration
- JsMessageExt: Result of Executing JavaScript Scripts
- MediaSourceInfo: Media Source Information Configuration
- NativeMediaPlayerSurfaceInfo: Rendering Information When the App Takes Over Media Playback
- PdfData: Generated PDF Output Data
- ProxyConfig: Network Proxy Configuration
- ProxyController: Network Proxy Controller
- WebDataBase: Web Database Management
- WebDownloadDelegate: Download Task Status Events
- WebDownloadItem: Download Task
- WebDownloadManager: Download Task Management
- WebHttpBodyStream: HTTP Request Body
- WebMessageExt: Data Object for Communication Between Frontend and App
- WebResourceHandler: Resource Loading Control
- WebSchemeHandler: Request Interceptor for Specified Scheme
- WebSchemeHandlerRequest: Request Intercepted by the Interceptor
- WebSchemeHandlerResponse: Custom Response Created for the Intercepted Request
- WebStorageOrigin: Web Component Storage Operation Interface
- NativeMediaPlayerBridge: Hosted Web Page Media Player Bridging Interface
- NativeMediaPlayerHandler: Event Interface for Hosted Web Page Media Player
- WebMessagePort: Message Port Between Web Frontend and App
For ArkWeb-related APIs, please refer to ohos.web.webview. For relevant guidance, please refer to ArkWeb Development Guide.
Repositories Involved
arkcompiler_cangjie_ark_interop
multimedia_multimedia_cangjie_wrapper
Code Contribution
Developers are welcome to contribute code, documentation, etc. For specific contribution processes and methods, please refer to Code Contribution.