Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Application interface implementation method and device in host platform layer, equipment and medium

An implementation method and platform layer technology, applied in the computer field, can solve a large number of frequent code maintenance problems, achieve clear division of labor, avoid management confusion, and reduce manual maintenance costs

Active Publication Date: 2020-07-03
BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF9 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the problem in the existing technology is that when the applet calls the NA-side capability through the JS layer, it will involve the communication between the JS layer and the API of the NA-side capability
As a result, the JS layer needs a large number of frequent code maintenance for various APIs to ensure that the small program can correctly call the terminal 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
  • Application interface implementation method and device in host platform layer, equipment and medium
  • Application interface implementation method and device in host platform layer, equipment and medium
  • Application interface implementation method and device in host platform layer, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0071] figure 1 It is a flowchart of a method for implementing an application interface in the host platform layer according to the first embodiment of the present application. This embodiment can be applied to the host platform layer to generate a platform layer interface for small programs to realize calling by calling the platform layer interface. In the case of a terminal capability interface, the method can be executed by an application interface implementation device in the host platform layer, the device is implemented in the form of software and / or hardware, and is preferably configured in an electronic device, such as a smart phone, a smart watch, a tablet computer and notebook computers and other electronic equipment. like figure 1 As shown, this method is executed by the host platform layer, specifically as follows:

[0072] S110. Obtain the description data of the capability interface of the terminal.

[0073] In the specific embodiment of the present applicatio...

no. 2 example

[0094] figure 2 It is a flowchart of a method for implementing an application interface in the host platform layer according to the second embodiment of the present application. On the basis of the above-mentioned embodiments, this embodiment further configures the host platform layer according to the communication mode and configures the corresponding processor and The concept mapping relationship is explained, which can realize the configuration of the concept mapping relationship between the terminal capability interface and the platform layer interface, such as the interface name, incoming parameters and outgoing parameters and their array types, communication bridge or communication function and processor name, and Implement the configuration of the processor according to the processor name. The technical details of this embodiment that are the same as those of the foregoing embodiment will not be repeated. like figure 2 As shown, this method is executed by the host p...

no. 3 example

[0112] Figure 3a It is a flow chart of a small program running method based on the host platform according to the third embodiment of the present application. This embodiment is applicable to the case where the small program implements the caller capability interface by calling the platform layer interface. This method can be implemented by the host platform based The small program running device is implemented by means of software and / or hardware, and is preferably configured in electronic devices such as smart phones, smart watches, tablet computers, and notebook computers. like Figure 3a As shown, this method is executed by the host platform layer, specifically as follows:

[0113] S310. Obtain a call request of the applet running on the host platform layer to the platform layer interface.

[0114] In a specific embodiment of the present application, the platform layer interface may be pre-encapsulated and formed by the host platform layer according to the implementatio...

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 embodiment of the invention discloses an application interface implementation method and device in a host platform layer, equipment and a storage medium, and relates to the technical field of computers. The specific implementation scheme is as follows: a host platform layer acquires description data of an end capability interface; analyzing the communication mode of the obtaining end capability interface according to the description data; and configuring a corresponding processor and / or concept mapping relationship according to the communication mode so as to package a platform layer interface for forming an end capability interface, the platform layer interface being used for processing communication interaction data in a process of calling the end capability interface by the applet through the host platform layer. Therefore, the host platform layer automatically generates the platform layer interface according to the description data of the end capability interface, a large amount of frequent host platform layer interface code maintenance caused by differences of terminal hardware, operating system versions and the like is avoided, and the manual maintenance cost of the hostplatform layer interface is reduced.

Description

technical field [0001] The embodiments of the present application relate to the field of computer technology, and in particular to computer applet technology. Background technique [0002] Applets are a technical form that integrates NA (Native, native program) and WEB. Small programs generally run on a host program as a platform, and the host program is usually a general APP software running in an operating system environment of a terminal. [0003] The host program is generally implemented through JavaScript, which can also be called the JS layer, that is, the host platform layer. During the running of the applet, it needs to call the software and hardware capabilities of the terminal where it is located through the JS layer, also known as the terminal capability. The terminal capability of the terminal is realized through a native program (Native program). The JS platform exposes the API (Application Programming Interface) for invoking NA-side capabilities to applets fo...

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): G06F9/48G06F9/54H04L29/08
CPCG06F9/4843G06F9/547H04L67/02G06F9/545H04L69/24
Inventor 董睿孙微李佳陈都
Owner BEIJING BAIDU NETCOM SCI & TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products