Supercharge Your Innovation With Domain-Expert AI Agents!

A pop-up window output method, device and terminal

An output method and pop-up window technology, which is applied in the field of computer communication, can solve problems such as difficulty in implementing pop-up window logic, affecting user experience, and increasing the complexity of business code, so as to improve user experience, meet business needs, and facilitate UI operations.

Active Publication Date: 2020-09-25
TENCENT TECH (SHENZHEN) CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] (1) Not suitable for programming environments that do not support multiple inheritance: There are various pop-up windows. In a programming environment that does not support multiple inheritance, it is difficult to uniformly manage a pop-up window queue with the idea of ​​a public abstract base class. Therefore, this It is difficult to meet the diverse needs of pop-up window display methods, thus affecting user experience
[0004] (2) For modules that are inconvenient to obtain the implementation class of the pop-up window (the implementation class of the pop-up window is the class that realizes the display function of the pop-up window), when the pop-up window needs to be processed, it can only rely on complex callbacks to achieve the same The business logic related to the pop-up window increases the complexity of the business code
[0005] (3) It is difficult to implement complex display logic. For example, the following pop-up window logic is difficult to implement: A pop-up window can only be output on page B. If page B is hidden, it needs to be delayed until page B returns to the foreground; or , when the A pop-up window is outputting, if other pop-up windows are currently being output, the A pop-up window shall not be output during this startup cycle

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A pop-up window output method, device and terminal
  • A pop-up window output method, device and terminal
  • A pop-up window output method, device and terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0057] A pop-up window output method, such as figure 1 As shown, the method includes:

[0058] S101. Detect an activation command,

[0059] There are at least two ways to implement the detection activation command:

[0060] (1) The pop-up window task manager provides an interface for other threads, functions or modules to call, thereby activating the pop-up window task manager.

[0061](2) The pop-up window task manager monitors notification messages sent by other threads, functions or modules, and when the notification message is detected, the pop-up window task manager is activated.

[0062] S102. If the activation instruction is received,

[0063] S103. Determine whether there is a pop-up task in the pop-up task manager.

[0064] S104. If so, obtain the top pop-up window task, hand over the disposition right of the display function in the pop-up window task to the output page of the pop-up window, control the output of the pop-up window by the output page, and transfer ...

Embodiment 2

[0093] A method for outputting a pop-up window, the method comprising:

[0094] S201. Detect an activation instruction, and if the activation instruction is received, determine whether there is a pop-up task in the pop-up task manager.

[0095] S202. If so, obtain the top pop-up window task, hand over the disposition right of the display function in the pop-up window task to the output page of the pop-up window, control the output of the pop-up window by the output page, and transfer the The pop-up window task is deleted from the pop-up window task manager; the display function includes a callback function for displaying the pop-up window.

[0096] Specifically, the management method of the pop-up window task manager is as follows: Figure 4 shown, including:

[0097] A2. Sort the pop-up tasks corresponding to the pop-up windows in descending order of the priority of the pop-up windows.

[0098] B2. Detecting an activation instruction, and if the activation instruction is r...

Embodiment 3

[0119] A pop-up window output device, such as Figure 5 shown, including:

[0120] An activation instruction detection module 301, configured to detect an activation instruction;

[0121] Judging module 302, for judging whether there is a pop-up window task in the pop-up window task manager;

[0122] The pop-up window task processing module 303 is used to obtain the top pop-up window task, hand over the disposal right of the display function in the pop-up window task to the output page of the pop-up window, and transfer the pop-up window task from the pop-up window to the output page of the pop-up window. Windows Task Manager to delete;

[0123] Page output module 304, used for the output of the output page control pop-up window;

[0124] The pop-up window task manager 305 is configured to manage pop-up window tasks. The pop-up window task includes a display function of the pop-up window and the priority of the pop-up window, and the pop-up window task manager sorts the po...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an output method, device and terminal for a popup window. A popup task manager carries out unified management on popup tasks, each popup task comprises a display function, and each display function comprises a way of a callback function realized by a implementation class of the popup window, so that the demand for diversity of popup window display can be met and a purpose of complicated display logic can be realized. The invention provides a popup window output frame, parameters in the popup tasks are designed and the parameters are assigned according to the related service of a specific popup window under the frame, so that the popup window display opportunity can be controlled, and thus the conflict of simultaneous display of a plurality of popup windows is solved and the disturbance to a user is reduced when the popup window is displayed. Meanwhile, many output pages which are inconvenient to obtain instances of the implementation class of the popup window can also carry out the relative operations of the popup window conveniently, so that some common abnormalities are effectively avoided.

Description

technical field [0001] The invention relates to the technical field of computer communication, in particular to a pop-up window output method, device and terminal. Background technique [0002] A pop-up window refers to a window that pops up automatically when a web page, software, mobile app, etc. is opened. It is usually triggered by some logic. The floating layer, prompt box, and control that cover the screen page are called pop-up windows. The conventional output method of pop-up windows is: build an abstract base class of pop-up windows, let the pop-up windows in the application inherit from this abstract base class, and maintain a pop-up window queue at the same time, when multiple pop-up windows are output simultaneously The order in which pop-up windows are output, however, has the following problems: [0003] (1) Not suitable for programming environments that do not support multiple inheritance: There are various pop-up windows. In a programming environment that do...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/48
CPCG06F9/4881
Inventor 钟壮驰
Owner TENCENT TECH (SHENZHEN) CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More