A user response method, system, storage medium, and terminal device

CN116466860BActive Publication Date: 2026-08-14TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-12
Publication Date
2026-08-14

AI Technical Summary

Technical Problem

[0004]但是现有技术中为了实现用户响应,通过创建基类的方式会导致改动量比较大,由于基类中重写的某些方法可能导致子类重载时逻辑被覆盖,因此影响范围无法评估

Benefits of technology

[0019]本发明实施例另一方面还提供一种终端设备,包括处理器和存储器;

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116466860B_ABST
    Figure CN116466860B_ABST
Patent Text Reader

Abstract

This invention discloses a user response method, system, storage medium, and terminal device, applicable to the field of information processing technology. When an application terminal receives a user operation event, it identifies at least one target response object. If the target response object's region adjustment flag indicates that its response region needs adjustment, the region adjustment interface is called to adjust the target response object's response region, resulting in the adjusted response region. The response operation is then performed based on the adjusted response region. This approach simplifies the process by requiring only the region adjustment flag and the region adjustment interface for the response object in the application interface. It avoids the need to create a custom view class based on the UIView class for the response object undergoing region adjustment, thus preventing issues arising from logic overriding during subclass overloading.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of information processing technology, and in particular to a user response method, system, storage medium, and terminal device. Background Technology

[0002] Existing terminal devices can be equipped with applications from various fields (such as healthcare, finance, credit reporting, banking, gaming, energy, or education) to achieve different types of functions and facilitate the promotion of products in these fields. Once these applications are installed on the terminal device, the device can display the application interface while the application is running, allowing users to interact with the device. The terminal device then responds accordingly to these user actions, thus enabling interaction between the device and the user.

[0003] In the prior art, in order to respond to user operation events on various application interfaces, a custom view class with the User Interface View (UIView) class as the base class can be created. When responding to user operation events of this class object in the application interface, its response area can be an irregular response area or a regular response area, and the first responder of the user operation event is found to respond to the user.

[0004] However, in the existing technology, creating a base class to achieve user responsiveness leads to a large amount of modification. Since some methods overridden in the base class may cause logic to be overridden when subclasses are overloaded, the scope of the impact cannot be assessed. Summary of the Invention

[0005] This invention provides a user response method, system, storage medium, and terminal device, which can simplify the adjustment of the response area during the user response process.

[0006] One embodiment of the present invention provides a user response method, including:

[0007] Retrieve user interaction events on the current application interface;

[0008] Determine a target response set corresponding to the user operation event, wherein the target response set includes at least one target response object;

[0009] Obtain the region adjustment marker of the target response object;

[0010] If the region adjustment flag is used to identify that the response region of the target response object is to be adjusted, the region adjustment interface is called, and the response region of the target response object is adjusted through the region adjustment interface to obtain the adjusted response region;

[0011] Perform a response operation based on the adjusted response area and the user operation event.

[0012] Another embodiment of the present invention provides a user response system, comprising:

[0013] The event acquisition unit is used to acquire user operation events on the current application interface.

[0014] A set determination unit is used to determine a target response set corresponding to the user operation event, wherein the target response set includes at least one target response object;

[0015] A marker acquisition unit is used to acquire the region adjustment marker of the target response object;

[0016] An adjustment unit is configured to, if the region adjustment mark is used to identify that the response region of the target response object is to be adjusted, call the region adjustment interface, adjust the response region of the target response object through the region adjustment interface, and obtain the adjusted response region;

[0017] The response unit is used to perform response operations based on the adjusted response area and the user operation event.

[0018] Another aspect of the present invention provides a computer-readable storage medium storing a plurality of computer programs adapted for loading by a processor and executing the user response method as described in one aspect of the present invention.

[0019] Another embodiment of the present invention provides a terminal device, including a processor and a memory;

[0020] The memory is used to store a plurality of computer programs, which are loaded by a processor and executed as a user response method as described in one aspect of an embodiment of the present invention; the processor is used to implement each of the plurality of computer programs.

[0021] As can be seen, in the method of this embodiment, when the application terminal receives a user operation event, it determines at least one target response object. If the region adjustment flag of the target response object indicates that the response region of the target response object needs to be adjusted, the region adjustment interface is called to adjust the response region of the target response object, obtaining the adjusted response region, and then the response operation is performed based on the adjusted response region. In this way, only the region adjustment flag and the region adjustment interface of the response object in the application interface need to be set to realize the adjustment of the response region during the user response process. The implementation is relatively simple, and there is no need to create a custom view class based on the UIView class for the response object whose response region is adjusted, so as not to be affected by logic overriding when subclass overloading occurs. Attached Figure Description

[0022] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0023] Figure 1 This is a schematic diagram of a user response method provided in an embodiment of the present invention;

[0024] Figure 2 This is a flowchart of a user response method provided in one embodiment of the present invention;

[0025] Figure 3 This is a schematic diagram of the current application interface displayed on the application terminal in one embodiment of the present invention;

[0026] Figure 4 This is a flowchart of a method for adjusting the response region in one embodiment of the present invention;

[0027] Figure 5 This is a schematic diagram illustrating the determination of a set of point objects in one embodiment of the present invention;

[0028] Figure 6 This is a schematic diagram of an application terminal in one application embodiment of the present invention;

[0029] Figure 7 This is a flowchart of a user response method in one application embodiment of the present invention;

[0030] Figure 8 This is a schematic diagram of a distributed system in which the user response method is applied in another application embodiment of the present invention;

[0031] Figure 9 This is a schematic diagram of the block structure in another application embodiment of the present invention;

[0032] Figure 10 This is a schematic diagram of the logical structure of a user response system provided in an embodiment of the present invention;

[0033] Figure 11 This is a schematic diagram of the logical structure of a terminal device provided in an embodiment of the present invention. Detailed Implementation

[0034] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0035] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented, for example, in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0036] This invention provides a user response method, which can be applied to any application terminal, such as... Figure 1 As shown, the user response method in this embodiment of the invention may include:

[0037] Obtain user operation events on the current application interface; determine the target response set corresponding to the user operation events, the target response set including at least one target response object; obtain the region adjustment mark of the target response object; if the region adjustment mark is used to identify the adjustment of the response region of the target response object, call the region adjustment interface, adjust the response region of the target response object through the region adjustment interface, and obtain the adjusted response region; perform response operations according to the adjusted response region and the user operation events.

[0038] In practical applications, the application terminal can be, but is not limited to, mobile phones, computers, smart voice interaction devices, smart home appliances, and in-vehicle terminals that have applications based on user response methods installed.

[0039] Among them, the vehicle-mounted terminal can be a terminal based on the Intelligent Traffic System (ITS). Here, the Intelligent Traffic System (ITS), also known as the Intelligent Transportation System, effectively integrates advanced science and technology (information technology, computer technology, data communication technology, sensor technology, electronic control technology, automatic control theory, operations research, artificial intelligence, etc.) into transportation, service control, and vehicle manufacturing, strengthening the connection between vehicles, roads, and users, thereby forming a comprehensive transportation system that ensures safety, improves efficiency, improves the environment, and saves energy.

[0040] In this way, by simply setting the region adjustment flag and region adjustment interface of the response object in the application interface, the response area can be adjusted during the user response process. The implementation is relatively simple, and there is no need to create a custom view class based on the UIView class for the response object that performs the response area adjustment. Therefore, it will not be affected by logic overriding when subclasses are overloaded.

[0041] This invention provides a user response method, mainly executed by an application terminal, as shown in the flowchart below. Figure 2 As shown, it includes:

[0042] Step 101: Obtain user operation events on the current application interface.

[0043] It is understandable that after launching an application, the application terminal can display the application interface (such as the current application interface). The application interface will include one or more objects that the user interacts with. When the user operates on these objects, the application terminal will respond accordingly.

[0044] These objects that interact with the user are called response objects, and each response object corresponds to a response area, which is a specific area on the current application interface. When a user interacts with the response area of ​​a response object on the current application interface, the application terminal can determine that the user has interacted with that response object and then perform a certain response operation. When the user interacts with the current application interface, the application terminal will detect the user operation event, which can include the type of user operation (such as click, long press, hard press, double click, pinch, etc.) and the area of ​​user interaction.

[0045] It should be noted that, in order to implement the user response method of this embodiment, the application terminal can load the category of user interface response (UIResponder) when starting the application. In this embodiment, the loaded UIResponder category adds the area adjustment mark and area adjustment interface information of the response object in each application interface corresponding to the application.

[0046] Each response object corresponds to a region adjustment flag, which indicates whether the response region of the response object should be adjusted, such as by expanding or shrinking the response region. If the region adjustment flag indicates that the response region should be adjusted, then the preset response region needs to be adjusted; if the region adjustment flag indicates that the response region should not be adjusted, then the preset response region does not need to be adjusted. The region adjustment interface refers to the calling interface that implements the response region adjustment function. By calling this region adjustment interface, the adjustment of a specific response region can be achieved.

[0047] Furthermore, the information in the region adjustment interface refers to the information in the interface of the region adjustment method. The region adjustment method can be implemented using a third-party system or by adding corresponding code to the application, which has a small impact on the original application.

[0048] For example Figure 3 The current application interface shown includes explanatory text for the Youth Protection Mode, and two response objects: the "I understand" button and the "Set Youth Protection Mode" button. The corresponding response actions are to close the current application interface and display the settings interface of the Youth Protection Mode, respectively. The preset response area for each response object is the area of ​​the box where each button is located.

[0049] Normally, users do not set up "Youth Protection Mode". For easier operation, the response area of ​​the "I understand" response needs to be adjusted and the area of ​​the box containing the "I understand" button needs to be expanded. In this way, even if the user clicks on an area outside the box containing the "I understand" button, as long as it is within the expanded area, the application terminal can still perform certain response operations according to the "I understand" response.

[0050] Step 102: Determine the target response set corresponding to the user operation event. The target response set includes at least one target response object.

[0051] It should be noted that when the application terminal is displaying the current application interface, it generally determines the first response set corresponding to the current application interface when loading the current application interface. The first response set includes at least one first response object. Therefore, when the application terminal initiates the process of this embodiment after displaying the current application interface, it can first select the target response object corresponding to the user operation event from the first response set when determining the target response set.

[0052] Specifically, when selecting a target response object, the first response objects in the first response set can be traversed, and their relevant information can be compared with the user operation event. The comparison result determines whether the first response object is the target response object. Specifically, if the comparison result includes the user operation area in the user operation event being within a certain range centered on the box containing the first response object, then the first response object is the target response object; otherwise, the first response object is not the target response object.

[0053] Furthermore, if none of the first response objects in the first response set are the target response object (i.e., no target response object is selected from the first response set), the target response object corresponding to the user operation event needs to be selected from all response objects in the current application interface, excluding the first response objects in the first response set. The method for selecting the target response object from other response objects is similar to the method for selecting the target response object from the first response set, and will not be elaborated here.

[0054] The first response object refers to one or more of the response objects corresponding to the current application interface. Generally, these are the response objects that most users are accustomed to using, while those response objects that users do not use frequently are referred to as other response objects.

[0055] Step 103: Obtain the region adjustment markers for each of the above target response objects.

[0056] Since the application terminal has already loaded the region adjustment tags of each response object when the application starts, after the application starts, when the application terminal obtains the user operation event and initiates the process of this embodiment, the application terminal can directly find the region adjustment tag of the target response object from the loaded region adjustment tags.

[0057] Step 104: If the region adjustment flag is used to identify the adjustment of the response region of the target response object, call the region adjustment interface, adjust the response region of the target response object through the region adjustment interface, and obtain the adjusted response region.

[0058] If the region adjustment flag is used to indicate that the response region of the target response object will not be adjusted, the application terminal will not execute step 105 below, but will instead perform the response operation according to the preset response region and user operation event.

[0059] Specifically, such as Figure 4 As shown, when adjusting the response area of ​​a target response object, the application terminal can achieve the following steps:

[0060] A. Determine the view layer of the adjusted response area and obtain the preset area adjustment parameters.

[0061] It should be noted that each response object on the current application interface displayed on the application terminal corresponds to a view layer, which is the view layer of the box where the response object is located (i.e., the preset response area). In this embodiment, it is necessary to first determine the view layer of the adjusted response area. Specifically, the view layer of the target response object can be directly determined as the view layer of the adjusted response area.

[0062] The preset region adjustment parameters are mainly parameters involved in adjusting the response region. In this embodiment, they may specifically include at least one function representing a curve. These region adjustment parameters can be obtained during the loading of the current application interface on the application terminal and cached in advance in the application terminal's memory.

[0063] B. Divide the view layer determined in step A above into multiple sub-regions.

[0064] Generally, the view layer can be divided into four sub-regions: top left, bottom left, top right, and bottom right.

[0065] C. Based on the region adjustment parameters, draw curves in each sub-region to obtain the drawn curves, and determine the point object set based on the drawn curves.

[0066] Specifically, the application terminal can first draw multiple curves in a sub-region based on the functional representation relationship of multiple curves, obtain the intersection points and tangent points of multiple curves, and then determine a drawing area based on the connection between the intersection points and tangent points, and determine the point objects included in the drawing area as the point object set corresponding to the sub-region.

[0067] For example Figure 5 As shown, four curves (represented by solid lines) are drawn on a sub-region. The intersection points of the four curves are a, b, c, and d, and the tangent points of each curve are 1, 2, 3, and 4. Connecting these intersection points and tangent points will give a drawing region (represented by dashed lines in the figure). The point objects within this drawing region are the set of point objects corresponding to the sub-region.

[0068] D. Form the adjusted response area based on the point objects in the set of point objects corresponding to multiple sub-regions.

[0069] It should be noted that when adjusting the response area through steps A to D above, the drawn curve may exceed the boundary of the parent view layer of the target response object. To avoid this, the application terminal can use, but is not limited to, the following two methods to draw the curve:

[0070] (1) When the application terminal determines the view layer of the adjusted response area in step A above, it first creates a temporary user interface view object, includes the temporary view layer of the temporary user interface view object in the parent view layer of the target response object, and determines the temporary view layer as the view layer of the adjusted response area.

[0071] In this context, the parent view layer of the target response object refers to the view layer corresponding to the current application interface where the target response object is located. This method draws the curve directly on the temporary view layer, ensuring that the drawn curve does not exceed the boundaries of the parent view layer.

[0072] (2) When the application terminal determines the view layer of the adjusted response area in step A above, it determines the view layer of the target response object as the view layer of the adjusted response area. Then, when determining the point object set in step C above, it can first draw curves in each sub-region according to the region adjustment parameters, determine the initial point object set according to the drawn curves, and create a temporary user interface view object. The temporary view layer of the temporary user interface view object is included in the parent view layer of the target response object. Then, the initial point object set is converted into the temporary view layer to obtain the converted point object set.

[0073] Furthermore, when performing step D above, the main task is to form an adjusted response region based on the point objects in the transformed point object set.

[0074] This method involves drawing a curve to obtain an initial set of point objects, then transferring the initial set of point objects to a temporary view layer, ensuring that each point object does not exceed the range of the parent view layer.

[0075] Step 105: Perform response operations based on the adjusted response area and user operation events.

[0076] Specifically, if the user operation area included in the user operation event is within a certain adjusted response area, and the adjusted response area corresponds to a target response object, then the application terminal needs to perform a response operation based on the target response object, such as jumping to another application interface or closing the current application interface.

[0077] As can be seen, in the method of this embodiment, when the application terminal receives a user operation event, it determines at least one target response object. If the region adjustment flag of the target response object indicates that the response region of the target response object needs to be adjusted, the region adjustment interface is called to adjust the response region of the target response object, obtaining the adjusted response region, and then the response operation is performed based on the adjusted response region. In this way, only the region adjustment flag and the region adjustment interface of the response object in the application interface need to be set to realize the adjustment of the response region during the user response process. The implementation is relatively simple, and there is no need to create a custom view class based on the UIView class for the response object whose response region is adjusted, so as not to be affected by logic overriding when subclass overloading occurs.

[0078] The following is a specific application example to illustrate the user response method of the present invention. The method in this embodiment mainly includes the following stages:

[0079] (1) When the application terminal starts the application.

[0080] When the application terminal launches the application, it can load the category of user interface response, namely the UIResponder category. This category adds a region adjustment flag for the response object corresponding to the application, along with information about the region adjustment interface. Specifically, the region adjustment flag is a flag used to indicate whether the response area should be adjusted, such as expanded. The region adjustment interface information is specifically the interface of the extendArea method.

[0081] Thus, as Figure 6 As shown, after the application terminal starts the application, in order to achieve user response, it can include a response region capture module 10, a response object caching module 11, and a response region calculation module 12, wherein:

[0082] The response area capture module 10 is used to acquire user operation events in any application interface; the response object caching module 11 is used to determine the first response set of any application interface; the response area calculation module 12 is used to adjust the response area of ​​the response object and calculate the information of the adjusted response area.

[0083] (2) The application terminal displays the current application interface.

[0084] When the application terminal is displaying any application interface (such as the current application interface), it will start the controller of the current application interface. The controller will control all the responders of the current application interface and obtain the preset area adjustment parameters.

[0085] At this point, the response object caching module 11 in the application terminal will traverse all response objects corresponding to the controller of the current application interface, determine the first response set M, and cache it in memory. The response object caching module 11 can obtain the first response set M by calling the "become First Responder" interface.

[0086] (3) Figure 7 As shown, after the application terminal displays the current application interface, the application terminal can achieve user response through the following steps:

[0087] Step 201: When the user performs an operation on the current application interface, the response area capture module 10 can start a thread. This thread uses RunLoop to obtain user operation events and encapsulates the user operation events as input sources.

[0088] RunLoop is a runtime loop mechanism, an event-handling loop used to continuously schedule work and process input events. The purpose of using RunLoop is to ensure that the threads started by the response area capture module 10 are busy working when there is work to be done, and in a sleep state when there is no work to be done, in order to avoid resource consumption.

[0089] Step 202: The application terminal determines the target response set corresponding to the user operation event based on the first response set M cached in memory by the response object caching module 11. The target response set includes at least one target response object.

[0090] In this embodiment, the application terminal first traverses the first response object in the first response set M, and then traverses all response objects corresponding to the current application interface except for the first response object, and determines whether the first response object or other response objects belong to the target response object. If yes, then for the target response object, step 203 is executed; if not, the first response object or other response objects are traversed.

[0091] Step 203: Obtain the flag of the target response object, i.e., the region adjustment flag.

[0092] Step 204: If the flag indicates that the response area of ​​the target response object needs to be adjusted, and the specific adjustment needs to be extended, the application terminal will call the interface of the extendArea method, i.e. the area adjustment interface, and the response area calculation module 12 will first determine the view layer of the adjusted response area.

[0093] In this embodiment, a temporary user interface view (UIView) object can be created first, such that the temporary view layer of the temporary UIView object is contained in the parent view layer of the target response object, and the temporary view layer is determined as the view layer of the adjusted response area.

[0094] Step 205: The response area calculation module 12 divides the view layer determined in step 204 into multiple sub-regions, specifically four sub-regions of the same size.

[0095] Step 206: The response region calculation module 12 draws curves in each sub-region according to the region adjustment parameters, determines the point object set according to the drawn curves, and forms the adjusted response region according to the point objects in the corresponding point object set of each sub-region.

[0096] Specifically, when the response area calculation module 12 draws a curve in any sub-region to determine the set of point objects, it can first determine the length of the drawing interval (i.e., the length of the sub-region) and the functional representation relationship of each curve. For example, in the interval 0 <= x < 2pi, the curve y = 2e-0.5*sin(2pix) is drawn. The sub-region of the temporary UIView object is used as the canvas, the graphics context stack is opened, each curve is drawn, and the intersection points and tangent points of the curves are obtained. Based on the connection between the intersection points and the tangent points, a drawing area is determined, and the point objects included in the drawing area are determined as the set of point objects corresponding to the sub-region.

[0097] The tangent point of the curve is the point on the curve obtained by differentiating the curve.

[0098] Step 207: The application terminal obtains the adjusted response area through the response area calculation module 12, and uses the interface of calling the insidePoints method to determine whether the area operated by the user in the user operation event is within the adjusted response area. If it is, MethodSwizzling can be used to hook the logical or arithmetic operation process generated by the response object to the view layer corresponding to the point object set.

[0099] MethodSwizzling is a hooking technique that dynamically generates classes and objects at runtime to replace method implementations.

[0100] As can be seen, in this embodiment, to adjust, for example, expand, the response area of ​​the response object in the user response, it is only necessary to set the area adjustment flag (flag) and the area adjustment interface (the interface of the extendArea method) of the response object in the application interface. In specific implementation, it mainly involves adding the category of user interface response (the category of UIResponder), which is relatively simple to implement. Furthermore, the extendArea method can be implemented through a third-party system; or it can be directly added to the application, but the connection between it and the code of other functions in the original application is relatively small. Thus, in order to implement the user response method of this embodiment in the original application, the modification to the original application is relatively small, that is, the intrusion into the application is relatively small.

[0101] The following uses another specific application example to illustrate the user response method in this invention. The user response system in this embodiment is mainly a distributed system 100. The distributed system may include a client 300 and multiple nodes 200 (any form of computing device in the network, such as a server or user terminal). The client 300 and the nodes 200 are connected through network communication.

[0102] Taking a distributed system as an example, see blockchain system. Figure 8 This is an optional structural diagram of the distributed system 100 provided in this embodiment of the invention applied to a blockchain system. It consists of multiple nodes 200 (any form of computing device connected to the network, such as servers or user terminals) and clients 300. The nodes form a peer-to-peer (P2P) network. The P2P protocol is an application layer protocol running on top of the Transmission Control Protocol (TCP). In the distributed system, any machine, such as a server or terminal, can join and become a node. A node includes a hardware layer, a middleware layer, an operating system layer, and an application layer.

[0103] See Figure 8 The functions of each node in the blockchain system shown include:

[0104] 1) Routing: A basic function of nodes used to support communication between nodes.

[0105] In addition to routing capabilities, nodes can also have the following functions:

[0106] 2) Applications are deployed in the blockchain to implement specific business needs. They record data related to the implementation of functions to form record data, carry digital signatures in the record data to indicate the source of the task data, and send the record data to other nodes in the blockchain system. When other nodes successfully verify the source and integrity of the record data, they add the record data to the temporary block.

[0107] For example, the application's business logic includes code that implements user response functionality, which mainly includes:

[0108] Obtain user operation events on the current application interface; determine the target response set corresponding to the user operation events, the target response set including at least one target response object; obtain the region adjustment mark of the target response object; if the region adjustment mark is used to identify the adjustment of the response region of the target response object, call the region adjustment interface, adjust the response region of the target response object through the region adjustment interface, and obtain the adjusted response region; perform response operations according to the adjusted response region and the user operation events.

[0109] 3) A blockchain consists of a series of blocks that are sequentially generated. Once a new block is added to the blockchain, it will not be removed. The blocks contain the data submitted by the nodes in the blockchain system.

[0110] See Figure 9 This is an optional schematic diagram of the block structure provided in an embodiment of the present invention. Each block includes the hash value of the transaction records stored in this block (the hash value of this block) and the hash value of the previous block. The blocks are connected through their hash values ​​to form a blockchain. Additionally, the block may include information such as a timestamp when it was generated. A blockchain is essentially a decentralized database, a chain of data blocks linked together using cryptographic methods. Each data block contains relevant information used to verify the validity of the information (anti-counterfeiting) and to generate the next block.

[0111] This invention also provides a user response system, such as the application terminal described above, the structural diagram of which is shown below. Figure 10 As shown, it can specifically include:

[0112] Event acquisition unit 20 is used to acquire user operation events on the current application interface.

[0113] The set determination unit 21 is used to determine the target response set corresponding to the user operation event acquired by the event acquisition unit 20, wherein the target response set includes at least one target response object.

[0114] The tag acquisition unit 22 is used to acquire the region adjustment tag of the target response object determined by the set determination unit 21.

[0115] The adjustment unit 23 is used to call the region adjustment interface if the region adjustment mark obtained by the mark acquisition unit 22 is used to identify the adjustment of the response region of the target response object, and adjust the response region of the target response object through the region adjustment interface to obtain the adjusted response region.

[0116] The adjustment unit 23 is specifically used to determine the view layer of the adjusted response area and obtain preset area adjustment parameters; divide the view layer into multiple sub-regions; draw curves in each sub-region according to the area adjustment parameters to obtain the drawn curves; determine the point object set according to the drawn curves; and form the adjusted response area according to the point objects in the point object set corresponding to the multiple sub-regions.

[0117] Specifically, when determining the view layer of the adjusted response region, the adjustment unit 23 is used to determine the view layer of the target response object as the view layer of the adjusted response region. In this case, when the adjustment unit 23 draws curves in each sub-region according to the region adjustment parameters and determines the point object set based on the drawn curves, it is specifically used to draw curves in each sub-region according to the region adjustment parameters, determine the initial point object set based on the drawn curves, create a temporary user interface view object, include the temporary view layer of the temporary user interface view object in the parent view layer of the target response object, and convert the initial point object set into the temporary view layer to obtain the converted point object set.

[0118] Alternatively, when determining the view layer of the adjusted response area, the adjustment unit 23 may specifically create a temporary user interface view object, include the temporary view layer of the temporary user interface view object in the parent view layer of the target response object, and determine the temporary view layer as the view layer of the adjusted response area.

[0119] Furthermore, if the region adjustment parameters include: the functional representation relationship of multiple curves, when the adjustment unit 23 draws curves in each sub-region according to the region adjustment parameters and determines the point object set according to the drawn curves, it is specifically used to draw the multiple curves in the sub-region according to the functional representation relationship of the multiple curves, obtain the intersection points of the multiple curves and the tangent points of the multiple curves; determine a drawing region according to the line connecting the intersection points and the tangent points; and determine the point objects included in the drawing region as the point object set corresponding to the sub-region.

[0120] The response unit 24 is used to perform a response operation based on the adjusted response area obtained by the adjustment unit 23 and the user operation event.

[0121] Furthermore, the system in this embodiment may also include: a loading unit 25, used to load a classification of user interface responses when the application is launched, wherein the classification of user interface responses includes a region adjustment mark corresponding to the response object of the application and information of the region adjustment interface.

[0122] The loading unit 25 is further configured to determine a first response set corresponding to the current application interface when loading the current application interface, wherein the first response set includes at least one first response object; then the set determination unit 21 is specifically configured to select target response objects corresponding to the user operation event from the first response set when determining the target response set corresponding to the user operation event.

[0123] In this embodiment, the set determination unit 21 determines at least one target response object upon receiving a user operation event. If the region adjustment flag of the target response object indicates that the response region of the target response object needs to be adjusted, the adjustment unit 23 calls the region adjustment interface to adjust the response region of the target response object, obtaining the adjusted response region. Then, the response unit 24 performs a response operation based on the adjusted response region. In this way, only the region adjustment flag and region adjustment interface of the response object in the application interface need to be set to realize the adjustment of the response region during the user response process. The implementation is relatively simple, and there is no need to create a custom view class based on the UIView class for the response object whose response region is adjusted, so as not to be affected by logic overriding when subclass overloading occurs.

[0124] This invention also provides a terminal device, the structural schematic of which is shown below. Figure 11 As shown, the terminal device can vary significantly due to differences in configuration or performance. It may include one or more central processing units (CPUs) 30 (e.g., one or more processors) and memory 31, and one or more storage media 32 (e.g., one or more mass storage devices) for storing application programs 321 or data 322. The memory 31 and storage media 32 can be temporary or persistent storage. The program stored in the storage media 32 may include one or more modules (not shown in the figure), each module including a series of instruction operations on the terminal device. Furthermore, the CPU 30 may be configured to communicate with the storage media 32 and execute the series of instruction operations in the storage media 32 on the terminal device.

[0125] Specifically, the application program 321 stored in the storage medium 32 includes a user-response application program, which may include the event acquisition unit 20, set determination unit 21, tag acquisition unit 22, adjustment unit 23, response unit 24, and loading unit 25 in the user-response system described above, which will not be elaborated here. Furthermore, the central processing unit 30 may be configured to communicate with the storage medium 32 and execute a series of operations corresponding to the list processing application stored in the storage medium 32 on the terminal device.

[0126] The terminal device may also include one or more power supplies 33, one or more wired or wireless network interfaces 34, one or more input / output interfaces 35, and / or one or more operating systems 323, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.

[0127] The steps performed by the user response system described in the above method embodiments can be based on this. Figure 11 The structure of the terminal device shown is illustrated.

[0128] Furthermore, in another aspect, embodiments of the present invention also provide a computer-readable storage medium storing a plurality of computer programs adapted to be loaded by a processor and executed as described above in the user response system.

[0129] Another embodiment of the present invention provides a terminal device, including a processor and a memory;

[0130] The memory is used to store multiple computer programs, which are loaded by a processor and executed as user response methods performed by the user response system described above; the processor is used to implement each of the multiple computer programs.

[0131] Additionally, according to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the user response methods provided in the various optional implementations described above.

[0132] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, which may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0133] The foregoing has provided a detailed description of a user response method, system, storage medium, and terminal device provided by embodiments of the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A user response method, characterized in that, include: Retrieve user interaction events on the current application interface; Determine a target response set corresponding to the user operation event, wherein the target response set includes at least one target response object; Obtain the region adjustment marker of the target response object; If the region adjustment flag is used to identify adjustments to the response region of the target response object, the region adjustment interface is invoked; Create a temporary user interface view object, and include the temporary view layer of the temporary user interface view object in the parent view layer of the target response object; The temporary view layer is determined as the view layer of the adjusted response area; Obtain preset area adjustment parameters, which include the functional representation relationship of multiple curves; The view layer is divided into multiple sub-regions; Based on the functional representation relationship of the multiple curves, the multiple curves are plotted in the sub-region to obtain the intersection points of the multiple curves and the tangent points of the multiple curves; A drawing area is determined based on the line connecting the intersection point and the tangent point; The point objects included within the drawing area are defined as the set of point objects corresponding to the sub-region; The adjusted response region is formed based on the point objects in the set of point objects corresponding to the multiple sub-regions; Perform a response operation based on the adjusted response area and the user operation event.

2. The method as described in claim 1, characterized in that, Before obtaining user operation events on the current application interface, the method further includes: When the application is launched, a category of user interface responses is loaded, which includes the region adjustment flag corresponding to the response object of the application and information about the region adjustment interface.

3. The method as described in claim 1, characterized in that, Before obtaining user operation events on the current application interface, the method further includes: When loading the current application interface, a first response set corresponding to the current application interface is determined, and the first response set includes at least one first response object; The determination of the target response set corresponding to the user operation event specifically includes: Select the target response object corresponding to the user operation event from the first response set.

4. A user response system, characterized in that, include: The event acquisition unit is used to acquire user operation events on the current application interface. A set determination unit is used to determine a target response set corresponding to the user operation event, wherein the target response set includes at least one target response object; A marker acquisition unit is used to acquire the region adjustment marker of the target response object; The adjustment unit is used to call the region adjustment interface if the region adjustment mark is used to identify the adjustment of the response region of the target response object, create a temporary user interface view object, and include the temporary view layer of the temporary user interface view object in the parent view layer of the target response object. The temporary view layer is determined as the view layer of the adjusted response area; preset area adjustment parameters are obtained, including the functional representation relationship of multiple curves; the view layer is divided into multiple sub-regions; according to the functional representation relationship of the multiple curves, the multiple curves are drawn in the sub-regions to obtain the intersection points and tangent points of the multiple curves; a drawing area is determined based on the lines connecting the intersection points and tangent points; the point objects included in the drawing area are determined as the point object set corresponding to the sub-region; the adjusted response area is formed based on the point objects in the point object set corresponding to the multiple sub-regions. The response unit is used to perform response operations based on the adjusted response area and the user operation event.

5. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a plurality of computer programs adapted to be loaded by a processor and executed as described in any one of claims 1 to 3.

6. A terminal device, characterized in that, Including processor and memory; The memory is used to store a plurality of computer programs, the computer programs being loaded by a processor and executed as described in any one of claims 1 to 3; the processor is used to implement each of the plurality of computer programs.

Citation Information

Patent Citations

  • Adjusting method and device for response area

    CN104657048A

  • Event response method, event response device and storage medium

    CN108829473A

  • Interface display method and device, terminal and storage medium

    CN113786607A