Interface calling method and device

A technology for calling interfaces and calling interfaces, applied in the direction of program control devices, etc., can solve the problems of inconvenient code modification and inconvenience of sensitive information on mobile phones.

Inactive Publication Date: 2018-01-23
SHENZHEN AUDAQUE DATA TECH
View PDF6 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the present invention is to provide an interface calling method and device, aiming to solve the problems

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 calling method and device
  • Interface calling method and device

Examples

Experimental program
Comparison scheme
Effect test

specific Embodiment 1

[0029] Such as figure 1 As shown, the embodiment of the present invention provides an interface calling method, including:

[0030] Defining step S101, pre-defining the interface calling rules in the configuration file;

[0031] Write in step S102, write the name and parameters of the application program that needs to call the interface into the configuration file;

[0032] Step S103 is called to automatically load the configuration file when the application program is running, read the information in the configuration file, execute the interface calling rules in the configuration file, and realize the interface calling.

[0033] The embodiment of the present invention provides a framework under the mixed development environment, defines the interface call rules in the configuration file in advance, and the developer does not need to write fixed codes, as long as the name and parameters of the application program that needs to call the interface are written into the configura...

specific Embodiment 2

[0041] Such as figure 2 As shown, the embodiment of the present invention provides an interface calling device, including:

[0042] The definition module 201 is used to pre-define the interface calling rules in the configuration file;

[0043] Write module 202, for writing the name and parameters of the application program that needs to call the interface into the configuration file;

[0044] The calling module 203 is configured to automatically load the configuration file when the application program is running, read the information in the configuration file, execute the interface calling rules in the configuration file, and realize the interface calling.

[0045]In the embodiment of the present invention, in the mixed development environment, the interface calling rules are defined in the configuration file in advance, and then the name and parameters of the application program that needs to call the interface are written into the configuration file, so that the configurat...

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 provides an interface calling method and device. An interface calling rule is defined in a configuration file in advance in a mixed development environment, and development personnel does not need to write fixed code and only needs to write the name and parameters of an application needing interface calling into the configuration file, so that the configuration file can be loaded automatically during running of the application; information in the configuration file can be read; the interface calling rule in the configuration file can be executed; and interface calling is realized. Through adoption of the interface calling method, the problem that mobile phone sensitive information is called in the mixed development environment is solved; and spending of a lot of time on codemodification during updating of react-native in a fast react-native and Android development environment is avoided. Furthermore, through definition of an interface calling rule between an RN page anda native page, the mobile phone sensitive information can be called on the RN page through the native page.

Description

technical field [0001] The invention relates to the technical field of application program development, in particular to an interface calling method and device. Background technique [0002] React-native is a framework launched by Facebook. It can use JS scripting language to develop APP applications. It is a popular development method now, but RN facilitates the development work of developers and brings some new problems. [0003] Since JS cannot call sensitive information of the mobile phone, such as the camera module, if the APP needs to call system parameters / functions, it still needs to go through the native page. Therefore, an APP may be developed in a mixed development environment, that is, native pages, RN pages, and H5 pages coexist. [0004] On the other hand, in the environment of rapid react-native and android development, due to the different versions of react-native, there are certain changes in the interaction implementation and integration of react-native an...

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): G06F9/44
Inventor 许松贾西贝
Owner SHENZHEN AUDAQUE DATA TECH
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