Interface calling method and device, equipment and medium
A technology of interface calling and interface, which is applied in the computer field, can solve the problems that affect the functions of non-system applications, and non-system applications cannot call non-SDK interfaces, so as to ensure safe and stable operation and normal functions.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] figure 1 This is a flowchart of an interface calling method provided in Embodiment 1 of the present invention. This embodiment can be applied to a non-system application program installed in an electronic device to invoke an interface provided in an operating system of the electronic device, thereby realizing a non-system application program In the case of corresponding functions, the method can be executed by an interface invocation device, which can be implemented in the form of hardware and / or software, and the interface invocation device can be configured in a non-system application program. Non-system applications are installed in electronic devices. like figure 1 As shown, the method includes:
[0029] Step 101: Determine the interface type of the interface to be called according to the interface information of the interface to be called.
[0030] Optionally, the interface to be called is an interface provided in the operating system of the electronic device th...
Embodiment 2
[0056] figure 2 This is a flowchart of an interface invocation method provided in Embodiment 2 of the present invention. This embodiment of the present invention may be combined with each optional solution in one or more of the foregoing embodiments. like figure 2 As shown, the method includes:
[0057] Step 201: Determine the interface type of the interface to be called according to the interface information of the interface to be called.
[0058] Step 202 , in the information associated with the non-system application program in the system, determine the interface restriction flag information corresponding to the non-system application program in the system.
[0059] Wherein, the interface restriction flag information is used to control whether the system enables the mechanism of restricting the non-system application from calling each non-SDK interface in the system.
[0060] Optionally, the system is an operating system of the electronic device. An interface restrict...
Embodiment 3
[0068] image 3 This is a schematic structural diagram of an interface invocation apparatus provided in Embodiment 3 of the present invention. The apparatus may be configured in an electronic device. like image 3 As shown, the apparatus includes: an interface type determination module 301 , a reflection class acquisition module 302 and an interface invocation module 303 .
[0069] The interface type determination module 301 is used to determine the interface type of the interface to be called according to the interface information of the interface to be called; the reflection class acquisition module 302 is used to determine the interface type of the interface to be called if the interface type of the interface to be called is a non-SDK interface, Then, obtain the reflection class corresponding to the interface to be called in the interface information of the interface to be called; wherein, the reflection class is used to call the interface to be called by reflection; the ...
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