Pop-up display control method and device
By detecting pop-up display events and storing attribute data, and determining the target pop-up according to a preset sorting strategy, the problem of multiple pop-ups overlapping and being disordered is solved, ensuring the orderly display of pop-ups and a good user experience.
Patent Information
- Application Number
- CN202110946104.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-17
- Publication Date
- 2025-11-25
- Estimated Expiration
- 2041-08-17
AI Technical Summary
When users use the application, the triggering of multiple pop-ups can cause overlap and confusion, affecting the user experience.
By detecting pop-up display trigger events, the attribute data of application and system pop-ups are stored and arranged in the memory according to a preset sorting strategy to determine the target attribute data to ensure orderly display.
The pop-up windows are displayed in an orderly manner, avoiding overlap and misalignment, thus improving the user experience.
Smart Images

Figure CN115933920B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computers, and in particular to a control method and device for pop-up window display. BACKGROUND
[0002] With the rapid development of computer technology, various applications have emerged. In the process of using an application, the display of the application pop-up window of the application and the system pop-up window of the system in which the application is located can be triggered. When multiple pop-up windows are triggered, the pop-up windows can be overlapped and disordered, which can affect the display of the pop-up windows and the user experience. SUMMARY
[0003] Embodiments of the present application provide a control method and device for pop-up window display, an apparatus, and a storage medium, which can ensure the orderly display of pop-up windows and avoid the overlapping and disorder of pop-up windows.
[0004] In one aspect, the present application provides a control method for pop-up window display, comprising:
[0005] If a display triggering event for an application pop-up window is detected, attribute data of the application pop-up window is obtained, and the attribute data of the application pop-up window is stored in a first storage;
[0006] If a display triggering event for a system pop-up window is detected, attribute data of the system pop-up window is constructed, and the attribute data of the system pop-up window is stored in the first storage, wherein the attribute data stored in the first storage is arranged according to a preset sorting strategy;
[0007] Target attribute data is determined from first attribute data arranged in a preset position and at least one second attribute data arranged after the preset position in the first storage, wherein the target attribute data is attribute data of an application pop-up window or attribute data of a system pop-up window;
[0008] A target pop-up window corresponding to the target attribute data is displayed.
[0009] In one aspect, the present application provides a control device for pop-up window display, characterized in that the control device for pop-up window display comprises an obtaining unit and a processing unit, and the obtaining unit and the processing unit are used to execute the control method for pop-up window display.
[0010] In one aspect, the present application provides a terminal device, characterized in that the terminal device comprises an input interface and an output interface, and further comprises:
[0011] a processor adapted to implement one or more instructions; and
[0012] A computer storage medium storing one or more instructions adapted to be loaded and executed by the processor to perform the control method of the pop-up window display.
[0013] In an aspect, the embodiments of the present application provide a computer storage medium, characterized by storing computer program instructions, the computer program instructions being executed by a processor to perform the control method of the pop-up window display.
[0014] In an aspect, the embodiments of the present application provide a computer program product or a computer program, the computer program product or the computer program comprising computer instructions stored in a computer readable storage medium; a processor of a terminal device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, the computer instructions being executed by the processor to perform the control method of the pop-up window display.
[0015] In the embodiments of the present application, if the terminal device detects a display triggering event for an application pop-up window, the terminal device acquires attribute data of the application pop-up window and stores the attribute data of the application pop-up window in a first memory; if the terminal device detects a display triggering event for a system pop-up window, the terminal device constructs attribute data of the system pop-up window and stores the attribute data of the system pop-up window in the first memory, and the attribute data stored in the first memory is arranged according to a preset sorting strategy; the terminal device determines target attribute data from first attribute data arranged in a preset position and at least one second attribute data arranged after the preset position in the first memory, the target attribute data being attribute data of an application pop-up window or attribute data of a system pop-up window; and the terminal device displays a target pop-up window corresponding to the target attribute data. After detecting the display triggering event for the application pop-up window, the terminal device stores the attribute data of the application pop-up window in the first memory, and after detecting the display triggering event for the system pop-up window, the terminal device stores the attribute data of the system pop-up window in the first memory, and then determines the target attribute data based on the storage order of the attribute data of the application pop-up window and the attribute data of the system pop-up window in the first memory, and displays the target pop-up window corresponding to the target attribute data, which can ensure the ordered display of the pop-up windows and avoid pop-up window overlapping and display disorder. BRIEF DESCRIPTION OF DRAWINGS
[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description are only some of the embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor based on these drawings.
[0017] Figure 1is a schematic diagram of a pop-up window provided by an embodiment of the present application;
[0018] Figure 2 is a structural schematic diagram of a control system of pop-up window display provided by an embodiment of the present application;
[0019] Figure 3a is a schematic diagram of a mandatory upgrade pop-up window of a target application provided by an embodiment of the present application;
[0020] Figure 3b is a schematic diagram of a youth mode pop-up window of a target application provided by an embodiment of the present application;
[0021] Figure 4a is a permission setting pop-up window for setting a notification permission provided by an embodiment of the present application;
[0022] Figure 4b is a permission setting pop-up window for setting a camera permission provided by an embodiment of the present application;
[0023] Figure 5 is a flowchart of a control method of pop-up window display provided by an embodiment of the present application;
[0024] Figure 6 is a schematic diagram of storage attribute data provided by an embodiment of the present application;
[0025] Figure 7 is a flowchart of determining target attribute data provided by an embodiment of the present application;
[0026] Figure 8 is a schematic diagram of determining target attribute data provided by an embodiment of the present application;
[0027] Figure 9a is a schematic diagram of controlling a pop-up window to display provided by an embodiment of the present application;
[0028] Figure 9b is another schematic diagram of controlling a pop-up window to display provided by an embodiment of the present application;
[0029] Figure 10 is a structural schematic diagram of a control device of pop-up window display provided by an embodiment of the present application;
[0030] Figure 11 is a structural schematic diagram of a terminal device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0031] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0032] With the rapid development of computer technology, various applications have emerged. When a user uses an application, both the application's pop-ups and the system pop-ups may be triggered. When multiple pop-ups are triggered, they can overlap and become disorganized, resulting in incomplete display and negatively impacting the user experience. For example... Figure 1 The diagram shown is a schematic of a pop-up window overlay provided in an embodiment of this application. The pop-up window indicated by 101 is a system pop-up window, and the pop-up window indicated by 102 is an application pop-up window. Figure 1 As can be seen, at this time, the application pop-up window marked as 102 is covered by the system pop-up window marked as 101, causing the application pop-up window marked as 102 to not be fully displayed.
[0033] To ensure the orderly display of pop-ups and avoid pop-up overlap and display errors, this application provides a pop-up display control scheme. After detecting a display trigger event for an application pop-up, the attribute data of the application pop-up is stored in a first memory. After detecting a display trigger event for a system pop-up, the attribute data of the system pop-up is stored in the first memory. Then, based on the storage order of the attribute data of the application pop-up and the attribute data of the system pop-up in the first memory, the target attribute data is determined, and the target pop-up corresponding to the target attribute data is displayed.
[0034] Based on the above-described control scheme for pop-up window display, this application provides a control system for pop-up window display. See also... Figure 2 This is a schematic diagram of the structure of a pop-up display control system provided in an embodiment of this application. Figure 2The control system displayed in the pop-up window may include a terminal device 201 and a server 202. The terminal device 201 may include any one or more of smartphones, tablets, laptops, desktop computers, smart in-vehicle devices, and smart wearable devices. The server 202 may be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms. The terminal device 201 and the server 202 may communicate directly or indirectly via wired or wireless communication, which is not limited herein.
[0035] In one embodiment, the terminal device 201 may run a target application, which can be any application running on the terminal device 201, such as a social application, an electronic payment application, a music playback application, or a game application; the server 202 is the server corresponding to the target application, providing service support for the target application. For example, if the target application is a social application, then the server 202 is the server corresponding to the social application, providing service support for the social application; if the target application is an electronic payment application, then the server 202 is the server corresponding to the electronic payment application, providing service support for the electronic payment application.
[0036] In one embodiment, server 202 stores the pop-up content of the application pop-up of the target application. When the target application needs to display the application pop-up through terminal device 201, it can load the pop-up content of the application pop-up based on network loading. That is, it can obtain the pop-up content of the application pop-up from server 202 based on network loading. Specifically, the target application can send a pop-up content request to server 202 through terminal device 201. After receiving the pop-up content request, server 202 sends the pop-up content to the target application through terminal device 201. After receiving the pop-up content, the target application can display the application pop-up including the pop-up content through terminal device 201.
[0037] In one embodiment, an application pop-up refers to a pop-up window corresponding to a target application, which can be any application running on the terminal device. The application pop-up of a target application is typically associated with various services provided by that target application. For example, an application pop-up can be an advertising pop-up, a push notification pop-up, a login overlay, a password pop-up, etc. Application pop-ups can also be used for business traffic redirection. For example, an application pop-up can be a forced upgrade pop-up, a youth mode pop-up, etc. A forced upgrade pop-up prompts users to update the target application to increase the number of users of the new version. A youth mode pop-up redirects traffic to the youth mode of the target application to increase the number of users of that youth mode. Different application pop-ups have different pop-up content, for example... Figure 3a The image shown is a schematic diagram of a forced upgrade pop-up window for a target application provided in an embodiment of this application. Figure 3a The forced upgrade pop-up window shown may include descriptive information such as those marked 301, describing the features of the target application in the new version (e.g., "1. Fixed XXX bug in the old version; 2. Added XXXX feature"), upgrade confirmation items such as those marked 302 (e.g., "Upgrade Now"), and upgrade cancellation items such as those marked 303 (e.g., "Do Not Upgrade Now"). If the user triggers the upgrade confirmation item marked 302, the terminal device can update the target application. For example, as shown... Figure 3b The image shown is a schematic diagram of a youth mode pop-up window for a target application provided in an embodiment of this application. Figure 3b The pop-up content of the Youth Mode pop-up may include descriptive information for Youth Mode, as shown by mark 311 (e.g., it may specifically display "To protect the healthy growth of minors, a Youth Guardian Mode has been specially launched. In this mode, the usage time of the target application is limited, and users will be reminded to take a break."), a Youth Mode cancellation option, as shown by mark 312 (e.g., it may specifically display "I understand"), and a Youth Mode trigger option, as shown by mark 313 (e.g., it may specifically display "Enter Youth Mode"). If the user triggers the Youth Mode trigger option as shown by mark 313, the user will enter the Youth Mode of the target application, allowing the user to use the Youth Mode of the target application.
[0038] In one embodiment, a system pop-up refers to a pop-up corresponding to the system in which the target application resides. For example, it could be a permission settings pop-up, used to allow users to set permissions for the target application. This permission settings pop-up could include settings for notification permissions, camera permissions, photo album permissions, voice permissions, calendar permissions, contact permissions, location permissions, reminder permissions, and Bluetooth permissions. Different system pop-ups have different content. Figure 4a As shown, this is a permission setting pop-up window for setting notification permissions provided in an embodiment of this application, such as... Figure 4a The pop-up window for setting notification permissions, as shown, can include descriptive information describing the notification permissions, as indicated by the 401 label (e.g., it could specifically display "The target app wants to send you notifications, which may include alerts, sounds, and icon tags. These can be configured in Settings"). It can also include permission options to enable (e.g., "Allow") as indicated by the 402 label, and permission options to disable (e.g., "Disallow") as indicated by the 403 label. If the user selects the permission to enable (e.g., 402), the target app's notification permissions are enabled, and the target app can send notifications. If the user selects the permission to disable (e.g., 403), the target app's notification permissions are disabled, and the target app cannot send notifications. For example, as shown... Figure 4b As shown, this is a permission setting pop-up window for setting camera permissions provided in an embodiment of this application, such as... Figure 4b The pop-up window for setting camera permissions shown may include descriptive information for camera permissions as indicated by label 411 (e.g., it may specifically display as "Target application requests access to camera"), permission enable options as indicated by label 412 (e.g., it may specifically display as "Allow"), and permission disable options as indicated by label 413 (e.g., it may specifically display as "Disallow"). If the user selects the permission enable option as indicated by label 412, the target application's camera permission is enabled, and the target application can access the camera. If the user selects the permission disable option as indicated by label 413, the target application's camera permission is disabled, and the target application cannot access the camera.
[0039] Based on the above-described control scheme and control system for pop-up window display, this application provides a control method for pop-up window display. See also... Figure 5 This is a flowchart illustrating a pop-up display control method provided in an embodiment of this application. Figure 5 The control method shown in the pop-up window can be executed by the terminal device. Figure 5 The control method for the pop-up window shown may include the following steps:
[0040] S501, if a display trigger event for an application pop-up is detected, the attribute data of the application pop-up is obtained and stored in the first memory.
[0041] An application pop-up refers to a pop-up window corresponding to a target application, which can be any application running on the terminal device. The attribute data of an application pop-up describes its properties. These attributes may include: maximum total occurrences, maximum daily occurrences, display position, start time, end time, display priority, and address for retrieving the pop-up content. The maximum total occurrences describes the maximum number of times the pop-up will appear within the target application's installation period (from installation to uninstallation). The maximum daily occurrences describes the maximum number of times the pop-up will appear each day. The display position describes the location where the pop-up appears. The start and end times describe the start and end times, respectively. The display priority describes the pop-up's display priority. The address for retrieving the pop-up content describes the address where the pop-up content is retrieved. Different application pop-ups have different display priorities; technical personnel can configure these attributes according to different needs when designing application pop-ups.
[0042] In one embodiment, if the terminal device detects a display trigger event for an application pop-up, it obtains the attribute data of the application pop-up. This may include: if a display trigger event for an application pop-up is detected, obtaining the attribute data of the application pop-up through an attribute data acquisition interface (e.g., a popShow interface). For example, if the obtained attribute data of the application pop-up is:
[0043] {
[0044] "popAllCount":100,
[0045] "timesPerDay":5,
[0046] "showPosition":"home",
[0047] "bigenTime":"2021-03-01 22:03:53",
[0048] "endTime":"2021-03-01 22:03:53",
[0049] "priority":10,
[0050] "popDataInterface":"https: / / xxx"
[0051] }
[0052] The maximum number of times the application pop-up will appear is 100, represented by the `popAllCount` field. The maximum number of times it will appear per day is 5, represented by the `timesPerDay` field. The display location is "home", i.e., the target application's homepage, represented by the `showPosition` field. The display start time is "March 1, 2021, 22:03:53", represented by the `bigenTime` field. The display end time is "March 1, 2021, 22:03:53", represented by the `endTime` field. The display priority is 10, represented by the `priority` field. The address for obtaining the pop-up content is "https: / / xxx", represented by the `popDataInterface` field.
[0053] In one embodiment, the first memory is used to store attribute data of application pop-ups and attribute data of system pop-ups, for example, it can be a doubly linked circular list. The attribute data stored in the first memory is arranged according to a preset sorting strategy, that is, the terminal device can store the attribute data of application pop-ups in the first memory according to the preset sorting strategy. Taking the first memory including attribute data of at least one system pop-up and attribute data of at least one application pop-up as an example, the preset sorting strategy may refer to: the attribute data of any application pop-up in the attribute data of at least one application pop-up is arranged before the attribute data of at least one system pop-up; the attribute data of the application pop-up whose acquisition time is a first time point is arranged before the attribute data of the application pop-up whose acquisition time is a second time point, the first time point is earlier than the second time point; the attribute data of the system pop-up whose acquisition time is a third time point is arranged before the attribute data of the system pop-up whose acquisition time is a fourth time point, the third time point is earlier than the fourth time point. In other words, the attribute data of the application pop-up in the first memory is arranged before the attribute data of the system pop-up. If there is attribute data of multiple application pop-ups, the attribute data of each application pop-up is arranged from front to back according to the order in which the attribute data of each application pop-up is acquired. If there is attribute data of multiple system pop-ups, the attribute data of each application pop-up is arranged from front to back according to the order in which the attribute data of each system pop-up is acquired.
[0054] In one embodiment, the display priorities of different application pop-ups are different. Taking the first memory including attribute data of at least one system pop-up and attribute data of at least one application pop-up as an example, the preset sorting strategy may also refer to: the attribute data of any application pop-up in the attribute data of at least one application pop-up is arranged before the attribute data of at least one system pop-up; the attribute data of the application pop-up with the first priority in the attribute data of at least one application pop-up is arranged before the attribute data of the application pop-up with the second priority in the attribute data of at least one application pop-up, the first priority is higher than the second priority; the attribute data of the system pop-up whose acquisition time is at the third time point in the attribute data of at least one system pop-up is arranged before the attribute data of the system pop-up whose acquisition time is at the fourth time point, the third time point is earlier than the fourth time point. In other words, the attribute data of application pop-ups in the first memory is arranged before the attribute data of system pop-ups. If there is attribute data for multiple application pop-ups, the attribute data of each application pop-up is arranged from front to back according to its display priority from high to low. If there is attribute data for multiple system pop-ups, the attribute data of each application pop-up is arranged from front to back according to the order in which the attribute data of each system pop-up was acquired. For example, if the display priority of application pop-up A is 0, the display priority of application pop-up B is 1, the display priority of application pop-up C is 3, and the display priority of application pop-up D is 4, and if the display priority marked with 0 is the highest display priority, then in the first memory, the attribute data of each application pop-up can be arranged from front to back as follows: attribute data of application pop-up A, attribute data of application pop-up B, attribute data of application pop-up C, and attribute data of application pop-up D.
[0055] S502, if a display trigger event for a system pop-up is detected, the attribute data of the system pop-up is constructed and stored in the first memory.
[0056] The attribute data stored in the first memory is arranged according to a preset sorting strategy.
[0057] Here, a system pop-up refers to a pop-up window corresponding to the system in which the target application resides. The attribute data of a system pop-up describes its attributes. This attribute data may include: display priority and pop-up content retrieval address. Display priority describes the display priority of the system pop-up; pop-up content retrieval address describes the address where the pop-up content is retrieved. Optionally, the display trigger event for a system pop-up can refer to the initial trigger event when the system pop-up is first triggered. The initial trigger refers to the triggering of the system pop-up before the permissions corresponding to it are granted. For example, if a user triggers a system pop-up, and after the pop-up is displayed, the user does not grant the permissions requested by the pop-up, then the user's subsequent triggering of the pop-up can also be considered the initial triggering of the pop-up.
[0058] In one embodiment, if the terminal device detects a display trigger event for a system pop-up, it constructs attribute data for the system pop-up. This may include: if a display trigger event for a system pop-up is detected, pausing the call to the display function of the system pop-up and storing the call behavior data of the display function of the system pop-up in a second memory to obtain the storage address of the call behavior data corresponding to the system pop-up; constructing attribute data for the system pop-up based on the storage address of the call behavior data corresponding to the system pop-up, wherein the attribute data of the system pop-up includes the storage address of the call behavior data corresponding to the system pop-up, and the pop-up content retrieval address in the attribute data of the system pop-up is the storage address of the call behavior data corresponding to the system pop-up. The second storage can be a singleton object instantiated from a data storage class, such as a singleton object instantiated from the NSUserDefaults storage class. The system pop-up display function, also known as the system pop-up display method, is a system-provided method for displaying system pop-ups. The system pop-up can be displayed by calling the system pop-up display method. Table 1 shows the system-provided methods for displaying system pop-ups under different functions, along with the class names of the classes to which each method belongs:
[0059] Table 1
[0060]
[0061]
[0062] In other words, under existing methods, if a terminal device detects a display trigger event for a system pop-up, it calls the display function of that system pop-up to display it. However, in this embodiment, after detecting a display trigger event for a system pop-up, the terminal device pauses the call to the pop-up's display function and stores the call behavior data in a second memory. This allows the device to retrieve the call behavior data from the second memory at a later, appropriate time, and then execute the call to the pop-up's display function to display it. By storing the call behavior data of the pop-up's display function and executing the call at a later, appropriate time, the display timing of system pop-ups can be controlled, ensuring orderly display. Optionally, the existing method can be replaced with the method provided in this embodiment based on hook technology, specifically using method swizzling under hook technology.
[0063] Furthermore, the terminal device can store the attribute data of the system pop-up window in the first memory according to a preset arrangement strategy. The preset arrangement strategy has been described in step S501 above and will not be repeated here.
[0064] In one embodiment, the creation of an instance object can be used to obtain the attribute data of the application pop-up, replace existing methods with the method provided in this embodiment based on hook technology to construct the attribute data of the system pop-up, and store the attribute data of both the application pop-up and the system pop-up. The created instance object can be, for example, an instance object instantiated from the popControl class. Furthermore, the creation of this instance object can be completed after the target application starts. Figure 6 The diagram shown is a schematic of a method for storing attribute data according to an embodiment of this application. Based on an instance object instantiated from the popControl class, after detecting a display trigger event for an application pop-up, the attribute data of the application pop-up is obtained and stored in the first memory. After detecting a display trigger event for a system pop-up, a method replacement is performed based on a hook to construct the attribute data of the system pop-up and store the attribute data of the system pop-up in the first memory.
[0065] S503, determine target attribute data from first attribute data arranged in a preset position and at least one second attribute data arranged after the preset position in the first memory.
[0066] The target attribute data can be the attribute data of the application pop-up or the attribute data of the system pop-up.
[0067] The preset position is the first position in the first memory. If the first memory is a doubly linked circular list, the preset position is the head node in the doubly linked circular list. The attribute data arranged in the preset position in the first memory can be called the first attribute data, and the remaining attribute data other than the attribute data arranged in the preset position can be called the second attribute data.
[0068] In one embodiment, target attribute data can be determined from first attribute data arranged at a preset position and at least one second attribute data arranged after the preset position in the first memory according to preset rules. That is, the target attribute data can be determined from the attribute data included in the first memory according to preset rules, and then the target pop-up window corresponding to the target attribute data can be displayed. The preset rule is one that can orderly determine the various attribute data stored in the first memory as target attribute data, thereby enabling the orderly display of pop-ups corresponding to each attribute data stored in the first memory. For example, the preset rule can be: determining the first attribute data arranged at a preset position in the first memory as target attribute data and displaying the target pop-up corresponding to the target attribute data; after the display of the target pop-up corresponding to the target attribute data ends, determining the second attribute data at the first position after the preset position as target attribute data and displaying the target pop-up corresponding to the target attribute data; after the display of the target pop-up corresponding to the target attribute data ends, determining the second attribute data at the second position after the preset position as target attribute data and displaying the target pop-up corresponding to the target attribute data, and so on, until all pop-ups corresponding to all attribute data included in the first memory are displayed. If the first memory is a doubly linked circular list, the terminal device first displays the pop-up corresponding to the head node, and then displays the pop-ups corresponding to each node sequentially towards the successor node of the head node. For example, if the first memory stores the attribute data of application pop-up A, application pop-up B, application pop-up C, and system pop-up A in sequence from front to back, then the terminal device will display application pop-up A, application pop-up B, application pop-up C, and system pop-up A in sequence.
[0069] For example, the preset rule could be: First attribute data arranged at a preset position in the first memory is identified as target attribute data, and the target pop-up corresponding to the target attribute data is displayed, and the target attribute data is deleted from the first memory; after the target pop-up corresponding to the target attribute data is displayed, the first attribute data arranged at the preset position in the first memory is identified as target attribute data, and the target pop-up corresponding to the target attribute data is displayed, and the target attribute data is deleted from the first memory, and so on, until all pop-ups corresponding to all attribute data included in the first memory are displayed. If the first memory is a doubly linked circular list, then the pop-up corresponding to the head node is displayed first, then the head node is deleted, the successor node of the head node is used as the new head node, and then the pop-up corresponding to the new head node is displayed, until all pop-ups corresponding to all nodes are displayed. For example, if the first memory stores the attribute data of application pop-up A, application pop-up B, application pop-up C, and system pop-up A in sequence from front to back, then the terminal device first displays application pop-up A and deletes the attribute data of application pop-up A from the first memory. At this time, the first memory stores the attribute data of application pop-up B, application pop-up C, and system pop-up A in sequence from front to back. After application pop-up A is finished being displayed, application pop-up B is then displayed, and so on, until system pop-up A is displayed.
[0070] S504, displays the target pop-up window corresponding to the target attribute data.
[0071] In one embodiment, when the target attribute data is the attribute data of a system pop-up window, the terminal device displays the target pop-up window corresponding to the target attribute data. This may include: obtaining the storage address of the call behavior data of the target pop-up window corresponding to the target attribute data from the target attribute data; searching for the call behavior data of the target pop-up window in a second memory based on the storage address of the call behavior data of the target pop-up window; and executing a call to the display function of the target pop-up window based on the call behavior data of the target pop-up window to display the target pop-up window. Optionally, after the display function of the target pop-up window is successfully called, the call behavior data of the target pop-up window can be marked to indicate that the target pop-up window corresponding to the call behavior data of the target pop-up window has been displayed.
[0072] In one embodiment, when the target attribute data is the attribute data of an application pop-up, the terminal device displays the target pop-up corresponding to the target attribute data, which may include: obtaining the pop-up content retrieval address from the target attribute data; loading the pop-up content of the target pop-up based on the retrieval address of the pop-up content of the target pop-up; and displaying the target pop-up based on the pop-up content of the target pop-up.
[0073] In one embodiment, before displaying the target pop-up corresponding to the target attribute data, it is necessary to determine whether the pop-up display conditions are met, that is, whether there is a pop-up currently displayed on the current page of the target application. If there is a pop-up currently displayed on the current page of the target application, the target pop-up will be displayed only after the currently displayed pop-up has finished displaying.
[0074] In this embodiment, if the terminal device detects a display trigger event for an application pop-up, it acquires the attribute data of the application pop-up and stores the attribute data in a first memory. If it detects a display trigger event for a system pop-up, it constructs the attribute data of the system pop-up and stores the attribute data in the first memory. The attribute data stored in the first memory is arranged according to a preset sorting strategy. Target attribute data is determined from the first attribute data arranged at a preset position in the first memory and at least one second attribute data arranged after the preset position. The target attribute data is either the attribute data of the application pop-up or the attribute data of the system pop-up. The target pop-up corresponding to the target attribute data is then displayed. After detecting a display trigger event for an application pop-up, the terminal device stores the attribute data of the application pop-up in the first memory. After detecting a display trigger event for a system pop-up, it stores the attribute data of the system pop-up in the first memory. Based on the attribute data of the application pop-up and the storage order of the attribute data of the system pop-up in the first memory, the target attribute data is determined, and the target pop-up corresponding to the target attribute data is displayed. This ensures the orderly display of pop-ups and avoids pop-up overlap and display errors.
[0075] Based on system and method embodiments, this application describes the process by which a terminal device determines target attribute data from first attribute data arranged in a preset position and at least one second attribute data arranged after the preset position in a first memory. See also Figure 7 The following is a flowchart illustrating a process for determining target attribute data according to an embodiment of this application, which may include the following steps:
[0076] S701, a first method for obtaining the content of the first pop-up window corresponding to the first attribute data arranged in a preset position from the first memory.
[0077] In one embodiment, the preset position is the first position in the first memory. If the first memory is a doubly linked circular list, then the preset position is the head node in the doubly linked circular list. The attribute data arranged at the preset position in the first memory can be called the first attribute data, the pop-up content of the pop-up corresponding to the first attribute data can be called the first pop-up content, and the method of obtaining the first pop-up content can be called the first obtaining method. The remaining attribute data other than the attribute data arranged at the preset position can be called the second attribute data, the pop-up content of the pop-up corresponding to the second attribute data can be called the second pop-up content, and the method of obtaining the second pop-up content can be called the second obtaining method.
[0078] In a specific implementation, the first method for the terminal device to retrieve the first pop-up content corresponding to the first attribute data arranged in a preset position from the first memory may include: retrieving the first attribute data arranged in the preset position from the first memory; retrieving the pop-up content retrieval address from the first attribute data; and determining the first retrieval method based on the pop-up content retrieval address. That is, if the retrieved pop-up content retrieval address is a webpage address, the first retrieval method is determined to be a network loading method; if the retrieved pop-up content retrieval address is a local address, such as the storage address of call behavior data, the first retrieval method is determined to be a local loading method. Optionally, the attribute data of the pop-up may also include attribute data used to indicate the retrieval method of the pop-up content. In this case, the terminal device can retrieve the first attribute data arranged in the preset position from the first memory; and retrieve the first retrieval method of the first pop-up content corresponding to the first attribute data from the first attribute data.
[0079] S702, if the first acquisition method is network loading, then the first pop-up content is loaded based on the network loading method, and the second acquisition method of the second pop-up content corresponding to the second attribute data of the pop-up corresponding to the first position after the preset position is acquired.
[0080] S703, if the second acquisition method is the local acquisition method, then determine whether the content of the first pop-up window has been loaded.
[0081] S704, if the content of the first pop-up window has finished loading, then the first attribute data is determined as the target attribute data.
[0082] S705, if the content of the first pop-up window has not been fully loaded, the second attribute data in the first position after the preset position will be determined as the target attribute data.
[0083] For example, if the first memory stores the attribute data of application pop-up A and the attribute data of system pop-up A sequentially from front to back, and the content of application pop-up A is obtained by network loading while the content of system pop-up A is obtained by local loading, then if the content of application pop-up A is loaded, the attribute data of application pop-up A will be determined as the target attribute data; if the content of application pop-up A is not loaded, the attribute data of system pop-up A will be determined as the target attribute data.
[0084] S706, if the second acquisition method is network loading, then the second pop-up content is loaded based on the network loading method, and the second acquisition method of the second pop-up content corresponding to the second attribute data of the pop-up corresponding to the second position after the preset position is obtained, until the second attribute data corresponding to the second pop-up content of the second acquisition method is determined to be local acquisition method.
[0085] Among them, the second method for obtaining the content of the second pop-up window corresponding to the determined second attribute data is the local acquisition method.
[0086] S707, if the pop-up content corresponding to the first second attribute data arranged before the determined second attribute data has been loaded, then the first second attribute data arranged before the determined second attribute data is determined as the target attribute data.
[0087] S708, if the pop-up content corresponding to the first second attribute data arranged before the determined second attribute data has not been fully loaded, then the determined second attribute data will be determined as the target attribute data.
[0088] For example, if the first memory stores the attribute data of application pop-up A, application pop-up B, application pop-up C, and system pop-up A sequentially from front to back, and the pop-up content of application pop-ups A, B, and C are all loaded via network, while the pop-up content of system pop-up A is loaded locally, then the terminal device will first determine the loading method of application pop-up A's pop-up content. Since application pop-up A's pop-up content is loaded via network, the terminal device will load the pop-up content of application pop-up A and then determine the loading method of application pop-up B's pop-up content. Since application pop-up B's pop-up content is loaded via network, the terminal device... The system will load the content of application pop-up B and determine the acquisition method of the content of application pop-up C. Since the content of application pop-up C is acquired via network loading, the terminal device will load the content of application pop-up C and determine the acquisition method of the content of system pop-up A. Since the content of system pop-up A is acquired via local loading, the terminal device will determine whether the content of application pop-up C, which is located before the attribute data of system pop-up A, has been fully loaded. If the content of application pop-up C has been fully loaded, the attribute data of application pop-up C will be determined as the target attribute data. If the content of application pop-up C has not been fully loaded, the attribute data of system pop-up A will be determined as the target attribute data.
[0089] Furthermore, after the target pop-up corresponding to the target attribute data is displayed, the target attribute data is deleted from the first memory, and then the above process of determining the target attribute data is re-executed to determine the next target attribute data, that is, to determine the next target pop-up for display, until all the corresponding pop-ups in the first memory are displayed.
[0090] In one embodiment, if the second acquisition method is a network loading method, the terminal device loads the second pop-up content based on the network loading method and acquires the second acquisition method of the second pop-up content corresponding to the second attribute data of the pop-up corresponding to the second position after the preset position, until the second attribute data corresponding to the second pop-up content corresponding to the second acquisition method is determined to be a local acquisition method. If the second attribute data corresponding to the second pop-up content corresponding to the second acquisition method cannot be determined, that is, the acquisition method of the pop-up content of all attribute data corresponding to the pop-up in the first memory is the network loading method, then when the terminal device acquires the first acquisition method of the first pop-up content corresponding to the first attribute data of the pop-up in the preset position again, it stops acquiring the acquisition method of the pop-up content and determines the attribute data of the pop-up whose content has been loaded as the target attribute data, that is, the pop-up whose content has been loaded is displayed first. If the pop-up content of multiple pop-ups has been loaded at this time, the multiple pop-ups can be displayed randomly in sequence, or the pop-ups can be displayed in sequence according to the order of the time when the pop-up content is loaded, until all the pop-ups corresponding to the attribute data stored in the first memory are displayed.
[0091] In one implementation, if the first acquisition method is local loading, then the first attribute data can be determined as the target attribute data.
[0092] In one implementation, if the first memory is a doubly linked circular list, then when the first acquisition method is the local loading method, the first attribute data can be determined as the target attribute data; alternatively, it can also be determined whether the pop-up content of the pop-up window corresponding to the predecessor node (i.e., the last node in the doubly linked circular list) of the head node corresponding to the first attribute data has been loaded. If it has been loaded, then the attribute data of the last node in the doubly linked circular list is determined as the target attribute data; if it has not been loaded, then the first attribute data of the head node is determined as the target attribute data.
[0093] In one implementation, such as Figure 8The diagram illustrates a method for determining target attribute data according to an embodiment of this application. The terminal device retrieves a first acquisition method from a first memory for the content of a pop-up window corresponding to the first attribute data arranged at a preset position; determines whether the first acquisition method is a network loading method; if the first acquisition method is not a network loading method but a local loading method, the first attribute data is determined as the target attribute data; if the first acquisition method is a network loading method, the first pop-up content is loaded based on the network loading method, and a second acquisition method for the content of a second pop-up window corresponding to the second attribute data at the first position after the preset position is retrieved; determines whether the second acquisition method is a network loading method; if the second acquisition method is not a network loading method but a local loading method, determines whether the first pop-up content has been fully loaded; if the first pop-up content has been fully loaded, the first attribute data is determined as the target attribute. If the content of the first pop-up window has not been fully loaded, the second attribute data in the first position after the preset position is determined as the target attribute data. If the second acquisition method is network loading, the content of the second pop-up window is loaded based on the network loading method, and the second acquisition method of the second pop-up window content corresponding to the second attribute data in the second position after the preset position is obtained, until the second attribute data corresponding to the second pop-up window content in the second acquisition method is determined to be local acquisition. If the content of the pop-up window corresponding to the first second attribute data before the determined second attribute data is fully loaded, the first second attribute data before the determined second attribute data is determined as the target attribute data. If the content of the pop-up window corresponding to the first second attribute data before the determined second attribute data is not fully loaded, the determined second attribute data is determined as the target attribute data.
[0094] In one embodiment, when the first memory is a doubly linked circular list, the terminal device obtains the first acquisition method of the first pop-up content corresponding to the first attribute data of the head node from the doubly linked circular list; determines whether the first acquisition method is a network loading method; if the first acquisition method is not a network loading method but a local loading method, it determines whether the pop-up content corresponding to the predecessor node (i.e., the last node) of the head node in the doubly linked circular list has been loaded completely. If loaded completely, the attribute data of the last node in the doubly linked circular list is determined as the target attribute data; if not loaded completely, the first attribute data of the head node is determined as the target attribute data; if the first acquisition method is a network loading method, the first pop-up content is loaded based on the network loading method, and the second acquisition method of the second pop-up content corresponding to the second attribute data of the successor node of the head node is obtained; it determines whether the second acquisition method is a network loading method; if the second acquisition method is not a network loading method but a local loading method, Then determine whether the content of the first pop-up window has been fully loaded; if the content of the first pop-up window has been fully loaded, then the first attribute data is determined as the target attribute data; if the content of the first pop-up window has not been fully loaded, then the second attribute data of the successor node of the head node is determined as the target attribute data; if the second acquisition method is network loading, then the content of the second pop-up window is loaded based on the network loading method, and the second acquisition method of the second pop-up window content corresponding to the second attribute data of the second successor node of the head node is obtained, until the second attribute data corresponding to the second pop-up window content of the second pop-up window corresponding to the second acquisition method is determined to be local acquisition method; if the content of the pop-up window corresponding to the second attribute data of the predecessor node of the determined second attribute data has been fully loaded, then the first second attribute data before the determined second attribute data is determined as the target attribute data; if the content of the pop-up window corresponding to the first second attribute data before the determined second attribute data has not been fully loaded, then the determined second attribute data is determined as the target attribute data.
[0095] In this application, the terminal device can display a pop-up with content loaded locally when the content of a pop-up loaded via network loading has not been fully loaded, based on the method of obtaining the pop-up content. Since loading the content of a pop-up with network loading may be time-consuming, the time spent loading the content with network loading can be fully utilized, thereby enabling more pop-ups to be displayed within a certain period of time, and thus increasing revenue from traffic redirection for pop-up services.
[0096] In one embodiment, such as Figure 9aThe diagram illustrates a method for controlling the display of a pop-up window according to an embodiment of this application. If the terminal device detects a display trigger event for an application pop-up window, it acquires the attribute data of the application pop-up window and stores the attribute data in a first memory. If it detects a display trigger event for a system pop-up window, it constructs the attribute data of the system pop-up window and stores the attribute data in the first memory. Target attribute data is determined from first attribute data arranged at a preset position and at least one second attribute data arranged after the preset position in the first memory. If the pop-up window display conditions are met, the target pop-up window corresponding to the target attribute data is displayed. If the pop-up window display conditions are not met, the target pop-up window corresponding to the target attribute data is displayed after the currently displayed pop-up window ends, and the target attribute data is deleted from the first memory. The target pop-up window is closed, and the process of determining the target attribute data is repeated.
[0097] In one embodiment, such as Figure 9b The diagram illustrates another method for controlling the display of a pop-up window according to an embodiment of this application. If the terminal device detects a display trigger event for an application pop-up window, it acquires the attribute data of the application pop-up window and stores the attribute data in a first memory. If it detects a display trigger event for a system pop-up window, it constructs the attribute data of the system pop-up window and stores the attribute data in the first memory. If the pop-up display conditions are met, target attribute data is determined from the first attribute data arranged in a preset position and at least one second attribute data arranged after the preset position in the first memory, and the target pop-up window corresponding to the target attribute data is displayed. If the pop-up display conditions are not met, after the currently displayed pop-up window ends, target attribute data is determined from the first attribute data arranged in a preset position and at least one second attribute data arranged after the preset position in the first memory, the target pop-up window corresponding to the target attribute data is displayed, and the target attribute data is deleted from the first memory. The target pop-up window is closed, and it is determined whether the pop-up display conditions are met. If the pop-up display conditions are met, the process of determining whether the pop-up display conditions are met and determining the target attribute data is repeated.
[0098] Based on the above system and method embodiments, this application provides a control device for pop-up window display. See also... Figure 10 This is a schematic diagram of a control device for pop-up display provided in an embodiment of this application. The control device for pop-up display may include an acquisition unit 1001 and a processing unit 1002. Figure 10 The control device shown in the pop-up window can operate the following units:
[0099] The acquisition unit 1001 is used to acquire the attribute data of the application pop-up if a display trigger event for the application pop-up is detected, and to store the attribute data of the application pop-up in a first memory.
[0100] The processing unit 1002 is configured to, if a display trigger event for a system pop-up is detected, construct attribute data of the system pop-up and store the attribute data of the system pop-up in the first memory, wherein the attribute data stored in the first memory is arranged according to a preset sorting strategy.
[0101] The processing unit 1002 is configured to determine target attribute data from first attribute data arranged at a preset position in the first memory and at least one second attribute data arranged after the preset position, wherein the target attribute data is attribute data of an application pop-up or attribute data of a system pop-up.
[0102] The processing unit 1002 is used to display the target pop-up window corresponding to the target attribute data.
[0103] In one embodiment, when constructing the attribute data of the system pop-up window, the processing unit 1002 specifically performs the following operations:
[0104] Pause the call to the display function of the system pop-up window, and store the call behavior data of the display function of the system pop-up window in the second memory to obtain the storage address of the call behavior data corresponding to the system pop-up window;
[0105] The attribute data of the system pop-up is constructed based on the storage address of the call behavior data corresponding to the system pop-up. The attribute data of the system pop-up includes the storage address of the call behavior data corresponding to the system pop-up.
[0106] In one embodiment, the target attribute data is the attribute data of the system pop-up window;
[0107] When the processing unit 1002 displays the target pop-up window corresponding to the target attribute data, it specifically performs the following operations:
[0108] Obtain the storage address of the call behavior data of the target pop-up corresponding to the target attribute data from the target attribute data;
[0109] Based on the storage address of the target pop-up's call behavior data, the call behavior data of the target pop-up is retrieved from the second memory;
[0110] The display function of the target pop-up is called based on the call behavior data of the target pop-up to display the target pop-up.
[0111] In one embodiment, the first memory includes attribute data of at least one system pop-up and attribute data of at least one application pop-up.
[0112] The preset sorting strategy refers to the following: the attribute data of any application pop-up in the attribute data of the at least one application pop-up is arranged before the attribute data of the at least one system pop-up; the attribute data of the application pop-up whose acquisition time is a first time point is arranged before the attribute data of the application pop-up whose acquisition time is a second time point, where the first time point is earlier than the second time point; and the attribute data of the system pop-up whose acquisition time is a third time point is arranged before the attribute data of the system pop-up whose acquisition time is a fourth time point, where the third time point is earlier than the fourth time point.
[0113] In one embodiment, the first memory includes attribute data of at least one system pop-up and attribute data of at least one application pop-up, with different display priorities for different application pop-ups;
[0114] The preset sorting strategy refers to the following: the attribute data of any application pop-up in the attribute data of the at least one application pop-up is arranged before the attribute data of the at least one system pop-up; the attribute data of the application pop-up with the first priority in the attribute data of the at least one application pop-up is arranged before the attribute data of the application pop-up with the second priority in the attribute data of the application pop-up, where the first priority is higher than the second priority; and the attribute data of the system pop-up whose acquisition time is at the third time point in the attribute data of the at least one system pop-up is arranged before the attribute data of the system pop-up whose acquisition time is at the fourth time point, where the third time point is earlier than the fourth time point.
[0115] In one embodiment, when the processing unit 1002 determines the target attribute data from the first attribute data arranged at a preset position in the first memory and at least one second attribute data arranged after the preset position, it specifically performs the following operations:
[0116] A first method for obtaining the content of the first pop-up window corresponding to the first attribute data arranged at the preset position from the first memory;
[0117] If the first acquisition method is a network loading method, then the first pop-up content is loaded based on the network loading method, and the second acquisition method is used to acquire the second pop-up content of the pop-up corresponding to the second attribute data of the first position after the preset position;
[0118] If the second acquisition method is a local acquisition method, then determine whether the content of the first pop-up window has been fully loaded;
[0119] If the content of the first pop-up window is loaded, then the first attribute data is determined as the target attribute data.
[0120] In one embodiment, the processing unit 1002 is further configured to:
[0121] If the content of the first pop-up window has not been fully loaded, the second attribute data in the first position after the preset position will be determined as the target attribute data.
[0122] In one embodiment, after the processing unit 1002 obtains the second method for acquiring the second pop-up content of the pop-up corresponding to the second attribute data arranged in the first position after the preset position, it is further configured to:
[0123] If the second acquisition method is a network loading method, then the second pop-up content is loaded based on the network loading method, and the second acquisition method of the second pop-up content corresponding to the second attribute data of the pop-up corresponding to the second position arranged after the preset position is obtained, until the second attribute data corresponding to the second pop-up content of the second acquisition method is determined to be a local acquisition method;
[0124] If the pop-up content corresponding to the first second attribute data arranged before the determined second attribute data is loaded, then the first second attribute data arranged before the determined second attribute data is determined as the target attribute data, and the second acquisition method of the second pop-up content corresponding to the determined second attribute data is the local acquisition method.
[0125] In one embodiment, after determining the second attribute data corresponding to the second pop-up content whose second acquisition method is local acquisition, the processing unit 1002 is further configured to:
[0126] If the pop-up content corresponding to the first second attribute data arranged before the determined second attribute data has not been fully loaded, then the determined second attribute data will be determined as the target attribute data.
[0127] According to one embodiment of this application, Figure 5 as well as Figure 7 The steps involved in the control method for the pop-up window shown can be determined by... Figure 10 The pop-up window shown is executed by the various units in the control device. For example, Figure 5 The step S501 shown can be performed by Figure 10 The pop-up window shown indicates that the acquisition unit 1001 in the control device is used to execute the command. Figure 5 Steps S502 to S504 shown can be derived from... Figure 10The pop-up window shown is executed by the processing unit 1002 in the control device. For example, Figure 7 Steps S701 to S708 shown can be derived from... Figure 10 The pop-up window shown is executed by the processing unit 1002 in the control device.
[0128] According to another embodiment of this application, Figure 10 The control device with pop-up display shown can be composed of individual or combined units into one or more other units, or some of the units can be further divided into multiple functionally smaller units. This achieves the same operation without affecting the technical effect of the embodiments of this application. The above units are based on logical function division. In practical applications, the function of one unit can be implemented by multiple units, or the function of multiple units can be implemented by one unit. In other embodiments of this application, the control device with pop-up display based on logical function division can also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented collaboratively by multiple units.
[0129] According to another embodiment of this application, the following can be achieved by running on a general-purpose computing device, such as a computer, which includes processing elements and storage elements such as a central processing unit (CPU), random access memory (RAM), and read-only memory (ROM), a device capable of performing operations such as... Figure 5 as well as Figure 7 The computer program (including program code) for each step involved in the corresponding method shown, to construct such... Figure 10 The diagram illustrates a control device for displaying a pop-up window, and a control method for implementing the pop-up window display in the embodiments of this application. The computer program may be recorded on, for example, a computer-readable storage medium, loaded onto the aforementioned computing device via the computer-readable storage medium, and run therein.
[0130] In this embodiment, if the acquisition unit 1001 detects a display trigger event for an application pop-up, it acquires the attribute data of the application pop-up and stores the attribute data of the application pop-up in a first memory; if the processing unit 1002 detects a display trigger event for a system pop-up, it constructs the attribute data of the system pop-up and stores the attribute data of the system pop-up in a first memory, wherein the attribute data stored in the first memory is arranged according to a preset sorting strategy; target attribute data is determined from the first attribute data arranged at a preset position and at least one second attribute data arranged after the preset position in the first memory, wherein the target attribute data is the attribute data of the application pop-up or the attribute data of the system pop-up; and the target pop-up corresponding to the target attribute data is displayed. After detecting a display trigger event for an application pop-up, the attribute data of the application pop-up is stored in the first memory. After detecting a display trigger event for a system pop-up, the attribute data of the system pop-up is stored in the first memory. Based on the storage order of the attribute data of the application pop-up and the attribute data of the system pop-up in the first memory, the target attribute data is determined and the target pop-up corresponding to the target attribute data is displayed. This ensures the orderly display of pop-ups and avoids pop-up overlap and display errors.
[0131] Based on the above system embodiments, method embodiments, and device embodiments, this application also provides a terminal device. See also... Figure 11 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application. Figure 11 The terminal device shown may include at least a processor 1101, an input interface 1102, an output interface 1103, and a computer storage medium 1104. The processor 1101, the input interface 1102, the output interface 1103, and the computer storage medium 1104 may be connected via a bus or other means.
[0132] The computer storage medium 1104 can be stored in the memory of the terminal device. The computer storage medium 1104 is used to store computer programs, which include program instructions. The processor 1101 is used to execute the program instructions stored in the computer storage medium 1104. The processor 1101 (or CPU (Central Processing Unit)) is the computing and control core of the terminal device. It is suitable for implementing one or more instructions, specifically for loading and executing one or more instructions to realize the control method flow or corresponding function of the pop-up window display mentioned above.
[0133] This application embodiment also provides a computer storage medium (Memory), which is a memory device in a terminal device used to store programs and data. It is understood that the computer storage medium here can include the built-in storage medium in the terminal, or it can include extended storage media supported by the terminal. The computer storage medium provides storage space, which stores the terminal's operating system. Furthermore, the storage space also stores one or more instructions suitable for loading and execution by the processor 1101. These instructions can be one or more computer programs (including program code). It should be noted that the computer storage medium here can be a high-speed random access memory (RAM), or it can be non-volatile memory, such as at least one disk storage device; optionally, it can also be at least one computer storage medium located remotely from the aforementioned processor.
[0134] In one embodiment, the processor 1101 and the input interface 1102 may load and execute one or more instructions stored in the computer storage medium to achieve the aforementioned related... Figure 5 as well as Figure 7 In the implementation of the control method embodiment for the pop-up window display, one or more instructions in the computer storage medium are loaded and executed by the processor 1101 and the input interface 1102 as follows:
[0135] Input interface 1102 is used to obtain the attribute data of the application pop-up if a display trigger event for the application pop-up is detected;
[0136] Processor 1101 is used to store the attribute data of the application pop-up in a first memory;
[0137] The processor 1101 is configured to, if a display trigger event for a system pop-up is detected, construct attribute data of the system pop-up and store the attribute data of the system pop-up in the first memory, wherein the attribute data stored in the first memory is arranged according to a preset sorting strategy.
[0138] The processor 1101 is further configured to determine target attribute data from first attribute data arranged at a preset position in the first memory and at least one second attribute data arranged after the preset position, wherein the target attribute data is attribute data of an application pop-up or attribute data of a system pop-up.
[0139] The processor 1101 is also used to display a target pop-up window corresponding to the target attribute data.
[0140] In one embodiment, when constructing the attribute data of the system pop-up window, the processor 1101 specifically performs the following operations:
[0141] Pause the call to the display function of the system pop-up window, and store the call behavior data of the display function of the system pop-up window in the second memory to obtain the storage address of the call behavior data corresponding to the system pop-up window;
[0142] The attribute data of the system pop-up is constructed based on the storage address of the call behavior data corresponding to the system pop-up. The attribute data of the system pop-up includes the storage address of the call behavior data corresponding to the system pop-up.
[0143] In one embodiment, the target attribute data is the attribute data of the system pop-up window;
[0144] When the processor 1101 displays the target pop-up window corresponding to the target attribute data, it specifically performs the following operations:
[0145] Obtain the storage address of the call behavior data of the target pop-up corresponding to the target attribute data from the target attribute data;
[0146] Based on the storage address of the target pop-up's call behavior data, the call behavior data of the target pop-up is retrieved from the second memory;
[0147] The display function of the target pop-up is called based on the call behavior data of the target pop-up to display the target pop-up.
[0148] In one embodiment, the first memory includes attribute data of at least one system pop-up and attribute data of at least one application pop-up.
[0149] The preset sorting strategy refers to the following: the attribute data of any application pop-up in the attribute data of the at least one application pop-up is arranged before the attribute data of the at least one system pop-up; the attribute data of the application pop-up whose acquisition time is a first time point is arranged before the attribute data of the application pop-up whose acquisition time is a second time point, where the first time point is earlier than the second time point; and the attribute data of the system pop-up whose acquisition time is a third time point is arranged before the attribute data of the system pop-up whose acquisition time is a fourth time point, where the third time point is earlier than the fourth time point.
[0150] In one embodiment, the first memory includes attribute data of at least one system pop-up and attribute data of at least one application pop-up, with different display priorities for different application pop-ups;
[0151] The preset sorting strategy refers to the following: the attribute data of any application pop-up in the attribute data of the at least one application pop-up is arranged before the attribute data of the at least one system pop-up; the attribute data of the application pop-up with the first priority in the attribute data of the at least one application pop-up is arranged before the attribute data of the application pop-up with the second priority in the attribute data of the application pop-up, where the first priority is higher than the second priority; and the attribute data of the system pop-up whose acquisition time is at the third time point in the attribute data of the at least one system pop-up is arranged before the attribute data of the system pop-up whose acquisition time is at the fourth time point, where the third time point is earlier than the fourth time point.
[0152] In one embodiment, when the processor 1101 determines the target attribute data from first attribute data arranged at a preset position and at least one second attribute data arranged after the preset position in the first memory, it specifically performs the following operations:
[0153] A first method for obtaining the content of the first pop-up window corresponding to the first attribute data arranged at the preset position from the first memory;
[0154] If the first acquisition method is a network loading method, then the first pop-up content is loaded based on the network loading method, and the second acquisition method is used to acquire the second pop-up content of the pop-up corresponding to the second attribute data of the first position after the preset position;
[0155] If the second acquisition method is a local acquisition method, then determine whether the content of the first pop-up window has been fully loaded;
[0156] If the content of the first pop-up window is loaded, then the first attribute data is determined as the target attribute data.
[0157] In one embodiment, the processor 1101 is further configured to:
[0158] If the content of the first pop-up window has not been fully loaded, the second attribute data in the first position after the preset position will be determined as the target attribute data.
[0159] In one embodiment, after the processor 1101 obtains the second method for acquiring the second pop-up content of the pop-up corresponding to the second attribute data arranged at the first position after the preset position, it is further configured to:
[0160] If the second acquisition method is a network loading method, then the second pop-up content is loaded based on the network loading method, and the second acquisition method of the second pop-up content corresponding to the second attribute data of the pop-up corresponding to the second position arranged after the preset position is obtained, until the second attribute data corresponding to the second pop-up content of the second acquisition method is determined to be a local acquisition method;
[0161] If the pop-up content corresponding to the first second attribute data arranged before the determined second attribute data is loaded, then the first second attribute data arranged before the determined second attribute data is determined as the target attribute data, and the second acquisition method of the second pop-up content corresponding to the determined second attribute data is the local acquisition method.
[0162] In one embodiment, after determining the second attribute data corresponding to the second pop-up content whose second acquisition method is local acquisition, the processor 1101 is further configured to:
[0163] If the pop-up content corresponding to the first second attribute data arranged before the determined second attribute data has not been fully loaded, then the determined second attribute data will be determined as the target attribute data.
[0164] This application provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a terminal device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the terminal device to perform the aforementioned actions. Figure 5 or Figure 7 The method embodiment shown. The computer-readable storage medium may be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0165] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for controlling pop-up window display, characterized in that, include: If a display trigger event for an application pop-up is detected, the attribute data of the application pop-up is obtained and stored in the first memory. If a display trigger event for a system pop-up is detected, the attribute data of the system pop-up is constructed and stored in the first memory. The attribute data stored in the first memory is arranged according to a preset sorting strategy. The method for constructing the attribute data of the system pop-up includes: pausing the call to the display function of the system pop-up and storing the call behavior data of the display function of the system pop-up in a second memory to obtain the storage address of the call behavior data corresponding to the system pop-up; constructing the attribute data of the system pop-up based on the storage address of the call behavior data corresponding to the system pop-up, wherein the attribute data of the system pop-up includes the storage address of the call behavior data corresponding to the system pop-up. Target attribute data is determined from first attribute data arranged at a preset position in the first memory and at least one second attribute data arranged after the preset position, wherein the target attribute data is attribute data of an application pop-up or attribute data of a system pop-up. Display the target pop-up window corresponding to the target attribute data.
2. The method as described in claim 1, characterized in that, The target attribute data is the attribute data from the system pop-up window; The target pop-up window displaying the target attribute data includes: Obtain the storage address of the call behavior data of the target pop-up corresponding to the target attribute data from the target attribute data; Based on the storage address of the target pop-up's call behavior data, the call behavior data of the target pop-up is retrieved from the second memory; The display function of the target pop-up is called based on the call behavior data of the target pop-up to display the target pop-up.
3. The method as described in claim 1, characterized in that, The first memory includes attribute data of at least one system pop-up and attribute data of at least one application pop-up; The preset sorting strategy refers to the following: the attribute data of any application pop-up in the attribute data of the at least one application pop-up is arranged before the attribute data of the at least one system pop-up; the attribute data of the application pop-up whose acquisition time is a first time point is arranged before the attribute data of the application pop-up whose acquisition time is a second time point, where the first time point is earlier than the second time point; and the attribute data of the system pop-up whose acquisition time is a third time point is arranged before the attribute data of the system pop-up whose acquisition time is a fourth time point, where the third time point is earlier than the fourth time point.
4. The method as described in claim 1, characterized in that, The first memory includes attribute data of at least one system pop-up and attribute data of at least one application pop-up, with different display priorities for different application pop-ups; The preset sorting strategy refers to the following: the attribute data of any application pop-up in the attribute data of the at least one application pop-up is arranged before the attribute data of the at least one system pop-up; the attribute data of the application pop-up with the first priority in the attribute data of the at least one application pop-up is arranged before the attribute data of the application pop-up with the second priority in the attribute data of the application pop-up, where the first priority is higher than the second priority; and the attribute data of the system pop-up whose acquisition time is at the third time point in the attribute data of the at least one system pop-up is arranged before the attribute data of the system pop-up whose acquisition time is at the fourth time point, where the third time point is earlier than the fourth time point.
5. The method according to any one of claims 1-4, characterized in that, Determining target attribute data from first attribute data arranged at a preset position in the first memory and at least one second attribute data arranged after the preset position includes: A first method for obtaining the content of the first pop-up window corresponding to the first attribute data arranged at the preset position from the first memory; If the first acquisition method is a network loading method, then the first pop-up content is loaded based on the network loading method, and the second acquisition method is used to acquire the second pop-up content of the pop-up corresponding to the second attribute data of the first position after the preset position; If the second acquisition method is a local acquisition method, then determine whether the content of the first pop-up window has been fully loaded; If the content of the first pop-up window is loaded, then the first attribute data is determined as the target attribute data.
6. The method as described in claim 5, characterized in that, The method further includes: If the content of the first pop-up window has not been fully loaded, the second attribute data in the first position after the preset position will be determined as the target attribute data.
7. The method as described in claim 5, characterized in that, Following the second method of obtaining the content of the second pop-up window corresponding to the second attribute data of the pop-up window arranged in the first position after the preset position, it also includes: If the second acquisition method is a network loading method, then the second pop-up content is loaded based on the network loading method, and the second acquisition method of the second pop-up content corresponding to the second attribute data of the pop-up corresponding to the second position arranged after the preset position is obtained, until the second attribute data corresponding to the second pop-up content of the second acquisition method is determined to be a local acquisition method; If the pop-up content corresponding to the first second attribute data arranged before the determined second attribute data is loaded, then the first second attribute data arranged before the determined second attribute data is determined as the target attribute data, and the second acquisition method of the second pop-up content corresponding to the determined second attribute data is the local acquisition method.
8. The method as described in claim 7, characterized in that, After determining the second attribute data corresponding to the second pop-up content whose second acquisition method is local acquisition, the process further includes: If the pop-up content corresponding to the first second attribute data arranged before the determined second attribute data has not been fully loaded, then the determined second attribute data will be determined as the target attribute data.
9. A control device for displaying a pop-up window, characterized in that, The control device for pop-up display includes an acquisition unit and a processing unit, wherein the acquisition unit and the processing unit are used to execute the control method for pop-up display as described in any one of claims 1-8.
10. A terminal device, characterized in that, The terminal device includes an input interface and an output interface, and further includes: A processor, adapted to implement one or more instructions; and, A computer storage medium storing one or more instructions, said one or more instructions being adapted to be loaded by the processor and executed by the control method for pop-up display as described in any one of claims 1-8.
11. A computer storage medium, characterized in that, The computer storage medium stores computer program instructions, which, when executed by a processor, are used to perform the pop-up display control method as described in any one of claims 1-8.
12. A computer program product, characterized in that, The computer program product includes computer instructions that are executed by a processor to implement the pop-up display control method as described in any one of claims 1-8.
Citation Information
Patent Citations
Popup window information display method and device and electronic equipment
CN111949347A
Popup window display method and device, computer equipment and storage medium
CN112947830A