Interface calling method and device and computer-readable storage medium for hybrid application
A kind of interface calling and hybrid technology, applied in the computer field, can solve problems such as unusable, poor compatibility and user experience, and hybrid application cannot be completed, so as to improve efficiency, ensure safety, and ensure normal use.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] Please refer to figure 1 , shows the specific steps of the method for invoking the interface of the hybrid application, the hybrid application includes both native and JavaScript script files, and the native and JavaScript script files call each other to realize the functions of the entire hybrid application. Among them, the native is developed based on the development tools and languages supported by the hardware platform, which is installed on a computer device based on this type of hardware platform and can call the hardware functions of the computer device (such as speakers, acceleration sensors and cameras, etc.), for example, native It can be developed based on Xcode or Objective-c supported by the IOS platform and installed on a computer device based on the IOS platform, or natively developed based on Eclipse or Java supported by the Android platform and installed on a computer device based on the Android platform. JavaScript script files are developed based on...
Embodiment 2
[0038] Please refer to figure 2 , which shows the specific steps when the hybrid application is allowed to call the target API during the interface call process, that is, the steps of the specific implementation method of step 140 in the first embodiment above, including:
[0039] Step 141, if the target API is included in the native API, it means that the current JavaScript script file matches the current native version, and this call can be completed, then execute the call to the target API through the current JavaScript script file, and generate the corresponding Callback ID. The callback ID is used to identify the callback function of this call. The generation method is usually: Obtain the call trigger parameters through the current JavaScript script file. The call trigger parameters are the parameters of the call trigger operation. The call trigger parameters include but Not limited to receiving the timestamp information of the call trigger operation, the number of times...
Embodiment 3
[0048] Please refer to image 3 , shows a hybrid application interface call device 300, the device is divided into one or more program modules, each program module can be further divided into one or more program sub-modules and program units, the one or more program modules A plurality of program modules are stored in a storage medium and executed by one or more processors to implement the present invention. The program module, program sub-module and program unit in the present invention refer to a series of computer program instruction segments capable of completing specific functions, which are more suitable than the program itself to describe the execution process of the interface calling device in the storage medium. The following description will introduce in detail Functions such as each module, submodule and unit of the present embodiment:
[0049] A version determination module 310, configured to determine the version number of the hybrid application when the hybrid a...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com