Unlock instant, AI-driven research and patent intelligence for your innovation.

WebView deep customization method and device, and electronic equipment

A deep, interface-level technology, applied in the direction of version control, program code conversion, software deployment, etc., can solve the interface layer interface definition and implementation can not be added or modified, can not achieve personalized customization, complex operation and other problems, to avoid mutual Effects of Conflict and Pollution

Pending Publication Date: 2021-11-19
视若飞信息科技(上海)有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0011] In view of the above-mentioned defects of the prior art, the technical problem to be solved by the present invention is that the interface definition and implementation of the existing interface layer of AndroidWebView cannot be added or modified, and the System WebView APK cannot be upgraded or modified. When the interface definition of System WebView When the level is relatively low, more Coding configurations need to be done before use, the operation is complicated, and personalized customization cannot be realized

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0078] The embodiment of the present invention provides a method for deeply customizing WebView. On the basis of the System WebView channel, a Custom WebView channel completely parallel to the System WebView channel is set. The Custom WebView channel includes an independent Custom WebView interface layer and an independent Custom WebView The implementation layer, the Custom WebView interface layer is provided to application developers in the form of an independent jar package, the Custom WebView implementation layer is compiled and generated independently from Chromium, and the interface layer invokes the core module of the browser through reflection. The Custom WebView interface layer is provided to application developers in the form of an independent jar package (the package name is custom.webkit.WebView). The Custom WebView implementation layer is provided in the form of an independent APK (Custom WebView APk). The Custom WebView interface layer calls the Glue layer of the C...

Embodiment 2

[0135]In a preferred embodiment of the present invention, the present invention provides a device for deeply customizing WebView. On the basis of the System WebView channel, the Custom WebView interface layer and the Custom WebView implementation layer are customized, and a system completely parallel to the System WebView channel is set. The Custom WebView channel, the Custom WebView channel includes an independent Custom WebView interface layer and an independent Custom WebView implementation layer. The Custom WebView interface layer is provided to application developers in the form of an independent jar package. The Custom WebView implementation layer is independently compiled and generated outside Chromium. The interface The layer calls the core Blink module through reflection.

[0136] Furthermore, the Custom WebView channel is set to be constructed based on the System WebView channel using the quick transformation method.

[0137] Further, the rapid transformation method ...

Embodiment 3

[0165] This embodiment provides an electronic device, including a memory, a processor, and a computer program stored in the memory and operable on the processor. When the processor executes the program, any one of the methods above is implemented. This embodiment provides a computer device, including a memory, a processor, and a computer program stored in the memory and operable on the processor. When the processor executes the program, any one of the methods above is implemented.

[0166] The computer device in this embodiment includes: a processor, a memory, and a computer program stored in the memory and operable on the processor, for example, a deeply customized WebView program. When the processor executes the computer program, the steps in the foregoing embodiments of the data synchronization method are implemented. Alternatively, when the processor executes the computer program, the functions of the modules / units in the above device embodiments are implemented.

[0167]...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a WebView deep customization method. The method is characterized in that: on the basis of a System WebView channel, a Custom WebView channel which is completely parallel to the System WebView channel is arranged; the Custom WebView channel comprises an independent Custom WebView interface layer and an independent Custom WebView implementation layer; the Custom WebView interface layer is provided for an application developer in the form of an independent jar package; the Custom WebView implementation layer is independently compiled and generated by the outside of Chromium; the interface layer calls a Blink module of a core through reflection. According to the WebView deep customization method and device, and the electronic equipment, on the basis of an original System WebView channel, a Custom WebView channel which is completely parallel to the System WebView is opened up, and the Custom WebView and the System WebView are isolated, conflicts and pollution between the Custom WebView and the System WebView can be avoided to the maximum extent, and the scheme that the WebView can be freely and deeply customized and Chromium is independently evolved is achieved, so that application developers can freely modify and customize functions of the Custom WebView interface layer and the implementation layer, the special requirements of applications are met, and the defects of the System WebView are overcome.

Description

technical field [0001] The invention relates to the field of computer browsers, in particular to a method, device and electronic equipment for deeply customizing a WebView. Background technique [0002] Android WebView is an Embed View component provided by the FrameWork layer of the Android platform, which is used to embed a View area in the Android App to display web page content. [0003] The overall architecture of Android WebView adopts the interface and implementation separation architecture, which is mainly divided into WebView HostAPK and System WebView APK. [0004] The application calls the WebView interface provided by the Android FWK layer to generate the WebView Host APK. At the same time, the interface layer will reflect and call the System WebView APK. The real web page loading, parsing and rendering logic is all in the System WebView APK. [0005] System WebView APK is compiled and generated independently from Chromium, and is pre-installed in the Android sy...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F8/41G06F8/61G06F8/71G06F8/72
CPCG06F8/41G06F8/61G06F8/71G06F8/72
Inventor 王晔顾怀建
Owner 视若飞信息科技(上海)有限公司