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

Method, storage medium, device and system for method invocation

A method of method invocation and method, applied in the direction of program control design, multi-programming device, instrument, etc., can solve problems such as coupling phenomenon, affecting user experience, program crash, etc., to avoid crash, convenient and quick invocation, and reduce details Effect

Active Publication Date: 2022-02-18
WUHAN DOUYU NETWORK TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] For the operating system of smart mobile devices, the conventional way to call methods is to call methods. Method is a common method call mode in iOS system. This mode is relatively simple, but there are disadvantages in this mode: when needed When the called method has not been implemented, the program will crash, and these crashes can easily affect the user experience; this method calling mode needs to obtain the caller and obtain the relevant information of the caller, and the relevant information of the caller Information does not need to be exposed to the outside world, and the exposure of these information that does not need to be exposed to the outside world can easily cause coupling phenomena

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
  • Method, storage medium, device and system for method invocation
  • Method, storage medium, device and system for method invocation

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] The present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments.

[0048] see figure 1 As shown, the embodiment of the present invention provides a method for invoking a method, which is used for invoking the method in the iOS system, and the iOS system is a mobile operating system developed by Apple Inc. The method for method calling in the embodiment of the present invention specifically includes the following steps:

[0049] S1: Create a protocol, and declare the method to be called as a method in the protocol. For example, the method to be called is the A method in the system controller, and the A method has been implemented in the controller. At this time, the outside world needs to call the A method, that is, use the method for method calling described in the embodiment of the present invention to call the A method. to make the call, so first create a protocol, declare the A method as a method inside ...

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 discloses a method, storage medium, equipment and system for method calling, and relates to the field of Internet mobile application development. The method includes creating a protocol and declaring the method to be called as a method in the protocol; in the system The controller internally obtains the header file of the protocol, and implements the function definition of the method to be called; creates an inline function, binds the protocol to the inline function; creates a new function calling method, and implements the protocol bound to the inline function Invocation of the method to be invoked. The inline function is a static class function; the inline function includes a parameter protocol and a parameter client, wherein the parameter client represents the object that calls the method to be called, and the parameter protocol represents the name of the protocol created, and the name of the protocol is based on the header of the protocol file acquisition. The invention can reduce the probability of coupling phenomenon and collapse phenomenon.

Description

technical field [0001] The invention relates to the field of Internet mobile application development, in particular to a method, storage medium, equipment and system for method calling. Background technique [0002] With the rapid development of communication technology, smart mobile devices are also developing rapidly, and there are more and more types of mobile applications. In daily life, when using smart mobile devices to run mobile applications for learning, office or entertainment When the mobile application is running, it is often necessary to call the method. For example, when using a live broadcast application, operations such as stopping video playback, switching rooms, and launching the live broadcast room need to call related methods in the background of the operating system. , to achieve this type of operation. [0003] For the operating system of smart mobile devices, the conventional way to call methods is to call methods. Method is a common method call mode ...

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 Patents(China)
IPC IPC(8): G06F9/48
CPCG06F9/4843G06F2209/481
Inventor 汪刚陈少杰张文明
Owner WUHAN DOUYU NETWORK 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