Calling method and device for native capability of application program and electronic equipment

An application program and program invocation technology, applied in program code conversion, software engineering design, electrical and digital data processing, etc., can solve problems such as long time consumption, disadvantageous js invocation, and complex native capabilities on the native side. Simple process effect

Inactive Publication Date: 2020-04-03
BEIJING BYTEDANCE NETWORK TECH CO LTD
View PDF6 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In view of this, the embodiment of the present invention proposes a calling method, device and electronic equipment for native application capabilities to solve the following problems in the prior art: as the number of jsbridge methods increases day by day, the things that BridgeObject relies on become more and more The more, the process of js calling the native capabilities of the native side will become more and more complicated and time-consuming, which is not conducive to js calling

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
  • Calling method and device for native capability of application program and electronic equipment
  • Calling method and device for native capability of application program and electronic equipment
  • Calling method and device for native capability of application program and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, the technical solutions of the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings of the embodiments of the present invention. Apparently, the described embodiments are some, not all, embodiments of the present invention. Based on the described embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0019] Unless otherwise defined, the technical terms or scientific terms used in the present invention shall have the usual meanings understood by those skilled in the art to which the present invention belongs. "First", "second" and similar words used in the present invention do not indicate any order, quantity or importance, but are only used to d...

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 a calling method and device for the native capability of an application program and electronic equipment, and the method comprises the steps: analyzing parameters from a first preset language program, and creating a first context for the first preset language program to call the native capability; determining the name of the native method corresponding tothe native capability to be called according to the analyzed parameters, and judging whether the first predetermined language program has the calling permission of the native method or not through thefirst context; under the condition that the first preset language program has the calling permission, calling the instance of the native method to obtain an execution result, and creating a second context for converting the execution result; and converting the execution result into a first predetermined language code executable by the first predetermined language program according to the second context. The calling process is simple, no matter how the jsbridge method is increased, the native end calls the native method according to the simple process, and the consumed time is short.

Description

technical field [0001] The present invention relates to the field of software, in particular to a method, device and electronic equipment for invoking native capabilities of application programs. Background technique [0002] With the development of the mobile Internet, App (application program) development for mobile terminals has gradually flourished. App development generally has a long cycle and relies on releases, which cannot meet the needs of rapid iteration of Internet products. Faced with this problem, the common practice of developers is to adopt a mode combining web (eg, html, css, javascript) and native (native) development (that is, hybrid development mode) in App to meet the demand. This requires the web to call the native capabilities of the app (such as taking pictures, storing, paying, etc.). [0003] The existing approach is to provide a set of jsbridge, that is, the native side of the app provides a method to call the native capability, and the web side c...

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/41
CPCG06F8/427
Inventor 朱慧元
Owner BEIJING BYTEDANCE NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products