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

Interface mapping method and device

A mapping method and interface technology, applied in the computer field, can solve the problems of high requirements for native interface documents and unknown native interface capabilities, and achieve the effect of improving development efficiency and reducing error rate.

Pending Publication Date: 2020-12-01
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0011] In view of this, the embodiment of the present invention provides an interface mapping method and device, which can at least solve the problems in the prior art that the requirements for Native interface documents are relatively high, and H5 is completely unknown to Native interface capabilities.

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Interface mapping method and device
  • Interface mapping method and device
  • Interface mapping method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0054]Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0055] It should be noted that the current mainstream programming codes of the operating system are Object-C (iOS system) and Java (android system). The solution for the interaction between H5 and Native is mainly applicable to these two systems. The present invention mainly uses the iOS system as the example to illustrate.

[0056] For the words involved in the present in...

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 an interface mapping method and device and relates to the technical field of computers. The method comprises the following steps of a native end receiving an interface identifier transmitted by a webpage end, acquiring the interface information corresponding to the interface identifier and registering the interface information to obtain the registered interface information;wherein the interface information comprises a native class and a method; and transmitting the registration interface information to a webpage end so as to map a native class and a method in the registration interface information into a format object and a method at the webpage end, and establishing an interface mapping relationship between the native end and the webpage end. According to the method, in the initial process of the WebApp, the native interface capability is automatically mapped into the JS of the H5, so the capability of the Native open interface is integrated with the JS, and interface mapping between the Native end and the WebApp is realized, in addition, a worker does not need to manually input an interface protocol, an error rate of calling the Native protocol by the WebApp is effectively reduced, the workload of the worker is reduced, development efficiency of a developer is improved, and front-end development is more convenient and efficient.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to an interface mapping method and device. Background technique [0002] When integrating H5 pages into APP applications, there are usually some logic / functions of H5 pages that need to rely on the interface provided by Native (that is, the interface for Java to call non-Java code), so H5 needs to interact with Native to realize the call. [0003] The existing H5 and Native interaction methods are mainly bridged by JSBridge and DSBridge technologies: [0004] 1) Native calls JS by using evaluate JavaScript to inject JS statements into JS to achieve interaction; [0005] 2) When JS calls Native, it intercepts in Native with the Scheme: / / xxx / xxxx protocol, parses the URL (Uniform Resource Locator, Uniform Resource Locator) that conforms to Scheme, and parses the path and param Etc. are used to represent the conversion of classes, methods, parameters, etc. in the program into execu...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/30
CPCG06F8/30
Inventor 李健
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD