WO2016000586A1 - Method and apparatus for displaying popup box message - Google Patents

Method and apparatus for displaying popup box message Download PDF

Info

Publication number
WO2016000586A1
WO2016000586A1 PCT/CN2015/082640 CN2015082640W WO2016000586A1 WO 2016000586 A1 WO2016000586 A1 WO 2016000586A1 CN 2015082640 W CN2015082640 W CN 2015082640W WO 2016000586 A1 WO2016000586 A1 WO 2016000586A1
Authority
WO
WIPO (PCT)
Prior art keywords
popup box
message
displayed
popup
priority level
Prior art date
Application number
PCT/CN2015/082640
Other languages
French (fr)
Inventor
Yulong Wang
Original Assignee
Tencent Technology (Shenzhen) Company Limited
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology (Shenzhen) Company Limited filed Critical Tencent Technology (Shenzhen) Company Limited
Publication of WO2016000586A1 publication Critical patent/WO2016000586A1/en
Priority to US15/229,963 priority Critical patent/US10379696B2/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/224Monitoring or handling of messages providing notification on incoming messages, e.g. pushed notifications of received messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/226Delivery according to priorities

Definitions

  • the present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for displaying a popup box message.
  • a popup box is a user interface (UI) component that is often used during development and application, which displays a popup box message in a popup manner and performs an interactive operation with a user. For example, when a user closes a file, a mobile terminal pops up a popup box.
  • a popup box message displayed by the popup box includes a prompt message "Do you want to close this file” , an "OK” button, and a "Cancel” button. The user can click a button to close the file or cancel closing the file.
  • a mobile terminal When there is a popup box message on a mobile terminal, the mobile terminal needs to display the popup box message to a user, for the user to view the popup box message and perform an interactive operation. As a mobile terminal has a small screen size, the mobile terminal can only display one popup box message each time.
  • a mobile terminal may display a popup box message through the following methods. Specifically, a mobile terminal receives a popup box message sent by a server, or a mobile terminal receives a command that triggers a popup box message, and inserts the popup box message to the tail of a message queue for waiting.
  • the message queue is a first-in-first-out queue.
  • a popup box message at the head of the queue has waited for a longest period of time. The mobile terminal dequeues the popup box message at the head of the message queue, creates a popup box, loads the dequeued popup box message into the created popup box, and displays the popup box to a user
  • a popup box message is displayed according to a waiting time of the popup box message, and a popup box message that has waited for a longest period time is displayed first.
  • some popup box messages are relatively important. For example, a popup box message such as an award prompt may be automatically destroyed after being displayed for a short time. If these popup box messages have waited for a short period of time, these important popup box messages with strong time effectiveness cannot be displayed in time, leading to loss of these important popup box messages.
  • a method for displaying a popup box message includes:
  • An apparatus for displaying a popup box message includes:
  • an acquisition module configured to acquire a trigger condition of each popup box message that is not displayed
  • a setting module configured to separately set, according to the trigger condition of each popup box message that is not displayed, a priority level of each popup box message that is not displayed;
  • a display module configured to load a popup box message with a highest priority level into a popup box, and display the popup box.
  • FIG. 1 is a flowchart of a method for displaying a popup box message according to Embodiment 1 of the present invention
  • FIG. 2-1 is a flowchart of a method for displaying a popup box message according to Embodiment 2 of the present invention
  • FIG. 2-2 is a schematic diagram of an interface for displaying a popup box message according to Embodiment 2 of the present invention
  • FIG. 3 is a schematic structural diagram of an apparatus for displaying a popup box message according to Embodiment 3 of the present invention.
  • FIG. 4 is a schematic structural diagram of a terminal according to Embodiment 4 of the present invention.
  • this embodiment of the present invention provides a method for displaying a popup box message, including:
  • Step 101 Acquire a trigger condition of each popup box message that is not displayed.
  • Step 102 Separately set, according to the trigger condition of each popup box message that is not displayed, a priority level of each popup box message that is not displayed.
  • Step 103 Load a popup box message with a highest priority level into a popup box, and display the popup box.
  • a priority level of each popup box message that is not displayed includes:
  • the acquiring, according to the trigger condition of each popup box message that is not displayed, at least one type parameter corresponding to each popup box message that is not displayed includes:
  • the separately setting, according to the at least one type parameter corresponding to each popup box message that is not displayed, a priority level of each popup box message that is not displayed includes:
  • the first popup box message being any popup box message among the popup box messages that are not displayed;
  • the loading a popup box message with a highest priority level into a popup box, and displaying the popup box includes:
  • the method further includes:
  • the method further includes:
  • a trigger condition of each popup box message that is not displayed is acquired; a priority level of each popup box message that is not displayed is set separately according to the trigger condition of each popup box message that is not displayed; and a popup box message with a highest priority level is loaded into a popup box, and the popup box is displayed. Because a priority level of each popup box message that is not displayed is set according to a trigger condition of each popup box message, it is ensured that a more important popup box message has a higher priority level. Then, a popup box message with a highest priority level is displayed, so that one most important popup box message may be selected from popup box messages that are not displayed, and the most important popup box message is displayed preferentially.
  • This embodiment of the present invention provides a method for displaying a popup box message.
  • the terminal Before a popup box currently displayed on a terminal is destroyed, each time the terminal receives a popup box message, the terminal inserts the popup box message into a message queue.
  • the terminal may select one most important popup box message from the message queue according to the method provided by this embodiment of the present invention, and display the most important popup box message.
  • the method specifically includes:
  • Step 201 Receive a popup box message sent by a server, or receive a click command of a user and generate a popup box message, and insert the popup box message into a message queue.
  • Popup box messages may be classified into popup box messages triggered by the foreground and popup box messages sent by the background, according to different sources of the popup box messages.
  • the popup box message triggered by the foreground is a popup box message that is generated when a terminal receives a command triggered by a user clicking an interface on a page.
  • the terminal receives the click command triggered by the user, and then generates a popup box message.
  • the terminal uses the received click command as a trigger condition of the popup box message, and stores the trigger condition of the popup box message and the popup box message into a correspondence between trigger conditions and popup box messages.
  • a terminal when a terminal receives a close command triggered by a user clicking a close button on a page, the terminal generates a popup box message "Do you want to close it? " , uses the received click command "close command” as a trigger condition of the popup box message "Do you want to close it? " , and stores the click command "close command” and the popup box message "Do you want to close it? " into a correspondence between trigger conditions and popup box messages as shown in Table 1.
  • the popup box message sent by the background is a popup box message that is sent by a server.
  • a user submits a request to the terminal through some interfaces, and the terminal receives the request submitted by the user and sends information to the server.
  • the server generates a popup box message according to the information sent by the terminal, and sends the popup box message to the terminal.
  • the terminal receives the popup box message sent by the server, uses the request submitted by the user through some interfaces as a trigger condition of the popup box message, and stores the trigger condition of the popup box message and the popup box message into a correspondence between trigger conditions and popup box messages.
  • a terminal receives an order submission request that is triggered by a user clicking an order submission button, sends order information to a server, and receives a popup box message "confirm the order” that is returned by the server according to the order information, uses the order submission request as a trigger condition of the popup box message, and stores the order submission request and the popup box message "confirm the order" into the correspondence between trigger conditions and popup box messages as shown in Table 1.
  • a server may further actively push a popup box message to a terminal.
  • the server allocates a message identifier to the popup box message, and attaches the allocated message identifier to the popup box message.
  • the terminal receives the popup box message that is pushed by the server, acquires a message identifier of the popup box message from the popup box message, uses the acquired message identifier as a trigger condition of the popup box message, and stores the trigger condition of the popup box message and the popup box message into a correspondence between trigger conditions and popup box messages.
  • a terminal receives a popup box message "notification message” that is pushed by a server, acquires a message identifier "notification” from the popup box message “notification message” , uses the acquired message identifier "notification” as a trigger condition of the popup box message, and stores the message identifier "notification” and the popup box message "notification message” into the correspondence between trigger conditions and popup box messages as shown in Table 1.
  • the terminal When the terminal receives a popup box message that is sent by the server or generates a popup box message according to a click command received from a user, the terminal inserts the popup box message to the tail of the message queue for waiting.
  • the message queue is a first-in-first-out queue, and a popup box message located at the head of the queue has waited for a longest period of time.
  • a terminal when a terminal receives a submission command triggered by a user clicking an order submission button, the terminal sends order information to a server.
  • the terminal receives a popup box message "confirm the order” that is returned according to the order information by the server, and inserts the popup box message "confirm the order” to the tail of a queue 1 shown below.
  • a terminal receives a popup box message "notification message” pushed by a server, and inserts the popup box message "notification message” to the tail of a queue 2 shown below.
  • a terminal receives a close command triggered by a user clicking a close button, generates a popup box message "Do you want to close it? " , and inserts the popup box message "Do you want to close it? " to the tail of a queue 3 shown below.
  • a priority level is set, through the following steps 202 to 204, for each popup box message that is not displayed in the message queue.
  • Step 202 Acquire a trigger condition of each popup box message that is not displayed.
  • a popup box message that is not displayed and located at the head of the message queue is dequeued, and a trigger condition of the popup box message that is not displayed is acquired from a stored correspondence between popup box messages and trigger conditions and according to the popup box message that is not displayed.
  • a trigger condition thereof is acquired according to the above operation with respect to the popup box message.
  • the popup box message "confirm the order” located at the head of the message queue shown in the queue 3 is dequeued.
  • a trigger condition of the popup box message “confirm the order” that is not displayed is acquired from the stored correspondence between popup box messages and trigger conditions as shown in Table 1.
  • the trigger condition is "order submission request” .
  • a message queue after the popup box message "confirm the order” is dequeued is as shown in a queue 4.
  • the popup box message "notification message” located at the head of the message queue as shown in the queue 4 is dequeued.
  • a trigger condition of the popup box message "notification message” that is not displayed is acquired from the stored correspondence between popup box messages and trigger conditions as shown in Table 1.
  • the trigger condition is "notification” .
  • a message queue after the popup box message "notification message” is dequeued is as shown in a queue 5.
  • the popup box message "Do you want to close it?” located at the head of the message queue as shown in the queue 5 is dequeued.
  • a trigger condition of the popup box message "Do you want to close it? " that is not displayed is acquired from the stored correspondence between popup box messages and trigger conditions as shown in Table 1.
  • the trigger condition is "close command” .
  • a message queue after the popup box message "Do you want to close it? " is dequeued is as shown in a queue 6.
  • Step 203 Acquire, according to the trigger condition of each popup box message that is not displayed, at least one type parameter corresponding to each popup box message that is not displayed.
  • Popup box messages may be classified into different categories according to different classification standards.
  • the popup box messages may be classified into two categories, that is, modal popup boxes and non-modal popup boxes, according to display forms of popup box messages, or popup boxes triggered by the foreground and popup boxes sent by the background according to sources of popup box messages, or popup boxes with time effectiveness and popup boxes without time effectiveness according to whether popup box messages have a valid time or not.
  • a type parameter is used for indicating a category of a popup box message, which may include modality, non-modality, foreground-triggered, background-sent, time effectiveness or non-time effectiveness, and the like.
  • a popup box message with time effectiveness may be automatically destroyed after being displayed for a preset time.
  • a skilled person sets at least one type parameter that corresponds to a different trigger condition in an installation package of an application.
  • a correspondence between trigger conditions and type parameters as shown in Table 2 is stored when the application is installed in the terminal.
  • This step is specifically as follows: acquiring, according to the acquired trigger condition of each popup box message that is not displayed, a type parameter corresponding to each popup box message that is not displayed from a stored correspondence between trigger conditions and type parameters.
  • type parameters "non-modality, background-sent and non-time-effectiveness” corresponding to the popup box message “confirm the order” are acquired from the stored correspondence between trigger conditions and type parameters as shown in Table 2.
  • type parameters "non-modality, background-sent and time effectiveness" corresponding to the popup box message "notification message” are acquired from the stored correspondence between trigger conditions and type parameters as shown in Table 2.
  • type parameters “modality, foreground-triggered and non-time-effectiveness” corresponding to the popup box message "Do you want to close it” are acquired from the stored correspondence between trigger conditions and type parameters as shown in Table 2.
  • Step 204 Separately set, according to the at least one type parameter corresponding to each popup box message that is not displayed, a priority level of each popup box message that is not displayed.
  • a skilled person specifies a priority level that corresponds to each type parameter in advance, and sets a correspondence between type parameters and priority levels in an installation package of an application.
  • the correspondence between type parameters and priority levels is stored when the application is installed in a terminal.
  • a popup box message with time effectiveness is more important than a popup box message without time effectiveness
  • a modal popup box is more important than a non-modal popup box. Therefore, when a skilled person specifies a priority level that corresponds to each type parameter, a high priority level is set for an important type parameter, so as to ensure that a more important popup box message has a higher priority level.
  • This step is specifically as follows: assuming that a first popup box message is any popup box message among the popup box messages that are not displayed, acquiring a priority level corresponding to each type parameter in the at least one type parameter from a stored correspondence between type parameters and priority levels and according to at least one type parameter that corresponds to the first popup box message, and calculating a priority level of the first popup box message by using a preset calculation method and according to the acquired priority level that corresponds to each type parameter.
  • the preset calculation method may be adding or multiplying the acquired priority levels that correspond to the type parameters.
  • a priority level thereof is set according to the above operation with respect to the first popup box message.
  • a terminal has stored in advance a correspondence between type parameters and priority levels as shown in Table 3, according to type parameters "non-modality, background-sent, and non-time-effectiveness" that correspond to the popup box message "confirm the order" , a priority level 2 corresponding to the type parameter "non-modality” , a priority level 2 corresponding to the type parameter "background-sent” and a priority level 2 corresponding to the type parameter "non-time-effectiveness" are acquired from the correspondence between type parameters and priority levels as shown in Table 3.
  • the acquired priority level 2 corresponding to the type parameter "non-modality” Assuming that a preset calculation method is adding priority levels that correspond to acquired type parameters, the acquired priority level 2 corresponding to the type parameter "non-modality” , the acquired priority level 2 corresponding to the type parameter “background-sent” and the acquired priority level 2 corresponding to the type parameter “non-time-effectiveness” are added up, to obtain a priority level 6 of the popup box message "confirm the order” .
  • Non-modality 2 Foreground-triggered 1 Background-sent 2 > ...
  • a priority level 2 corresponding to the type parameter "non-modality” a priority level 2 corresponding to the type parameter "background-sent” and a priority level 1 corresponding to the type parameter "time effectiveness” are acquired from the correspondence between type parameters and priority levels as shown in Table 3.
  • the acquired priority level 2 corresponding to the type parameter "non-modality” , the acquired priority level 2 corresponding to the type parameter "background-sent” , and the acquired priority level 1 corresponding to the type parameter "time effectiveness” are added up, to obtain a priority level 5 of the popup box message "notification message” .
  • a priority level 1 corresponding to the type parameter "modality” a priority level 1 corresponding to the type parameter "foreground-triggered” and a priority level 2 corresponding to the type parameter "non-time-effectiveness" are acquired from the correspondence between type parameters and priority levels as shown in Table 3.
  • the acquired priority level 1 corresponding to the type parameter "modality” , the acquired priority level 1 corresponding to the type parameter “foreground-triggered” , and the acquired priority level 2 corresponding to the type parameter “non-time effectiveness” are added up, to obtain a priority level 4 of the popup box message "Do you want to close it? "
  • the terminal Each time the terminal receives a popup box message that is sent by the server or generates a popup box message according to a click command received from a user, the terminal sets a priority level for the popup box message according to operations in the foregoing steps 201 to 204.
  • a most important popup box message is selected by means of an operation in the following step 205, and the popup box message is displayed.
  • Step 205 Load a popup box message with a highest priority level into a popup box, and display the popup box.
  • the popup box message with the highest priority level is the most important.
  • This step is specifically as follows: comparing priority levels of the popup box messages that are not displayed, acquiring a popup box message with a highest priority level among the popup box messages that are not displayed, and acquiring a display level relationship between the popup box message with the highest priority level and a currently displayed interface; creating a popup box; loading the popup box message with the highest priority level into the created popup box; and displaying the popup box according to the display level relationship between the popup box message with the highest priority level and the currently displayed interface.
  • the display level relationship represents an arrangement sequence of interfaces that are currently displayed on the terminal. It may be specified that, if a value of a display level of an interface is larger, the interface is arranged at a more front position. Alternatively, it may be specified that, if a value of a display level of an interface is smaller, the interface is arranged at a more front position.
  • a skilled person sets a display level relationship between display interfaces in the application.
  • the acquired display level relationship is that a display level of the popup box message "Do you want to close it? " is 1, and a display level of the currently displayed interface is 2.
  • the popup box message "Do you want to close it? " shall be arranged in front of the currently displayed interface.
  • a popup box is created, and the popup box message "Do you want to close it? " with the highest priority level is loaded into the created popup box.
  • the popup box is displayed according to the display level 1 of the popup box message "Do you want to close it? " and the display level 2 of the currently displayed interface. As shown in FIG. 2-2, the popup box is located in front of the currently displayed interface.
  • popup boxes may be classified into two types, that is, modal popup boxes and non-modal popup boxes.
  • modal popup boxes when a user intends to perform operation on an application program outside the popup box, the user needs to respond to the popup box first, for example, click a button such as "OK" or "Cancel" to close the popup box. Therefore, during display of popup boxes, only one modal popup box can be displayed each time, while one or more non-modal popup boxes can be displayed each time.
  • a display state of the displayed popup box message further needs to be recorded by means of operations in the following step 206, to help another process inquire the display state of the popup box message.
  • Step 206 Record a display state of the popup box, monitor the displayed popup box in real time, and update the display state of the popup box when the state of the popup box changes.
  • a display state of the popup box is recorded, and a popup box message displayed in the popup box and the display state of the popup box are stored in a correspondence between popup box messages and display states.
  • the displayed popup box is monitored, and when the state of the popup box changes, the display state corresponding to the popup box in the correspondence between popup box messages and display states is updated.
  • a display state "being displayed” of the popup box is recorded, and a popup box message "Do you want to close it? " displayed by the popup box and the display state "being displayed” of the popup box are stored in a correspondence between popup box messages and display states as shown in Table 4.
  • the displayed popup box is monitored, and when the state of the popup box changes, for example, when the popup box is being destroyed, the display state corresponding to the popup box in the correspondence between popup box messages and display states as shown in Table 4 is updated to "being destroyed” .
  • An updated correspondence between popup box messages and display states is as shown in Table 5.
  • some processes may need to communicate with a process of the popup box, input data to the process of the popup box, or acquire data from the process of the popup box.
  • a process of saving page data needs to access the process of the popup box message "Do you want to close it? "
  • information on saved page data is acquired from the process of the popup box message "Do you want to close it? "
  • the page data is saved according to the acquired information.
  • the terminal When a process that communicates with the popup box submits a request for accessing the popup box to the terminal, the terminal receives the request, and determines whether to allow the process to access the popup box by means of operations in the following step 207.
  • Step 207 View a display state of the popup box when a request, which is submitted by a process communicating with the popup box, for accessing the popup box is received, and determine, according to the display state of the popup box, whether to allow the process to access the popup box.
  • a corresponding display state is acquired from a correspondence between popup box messages and display states and according to a popup box message displayed in the popup box. If the acquired display state is "being displayed” , the process is allowed to access the popup box. If the acquired display state is "being destroyed” or “already destroyed” , the request submitted by the process for accessing the popup box is rejected.
  • the process communicating with the popup box is a process of saving page data.
  • a request which is submitted by the process of saving page data, for accessing the popup box is received
  • a corresponding display state is acquired from the correspondence between popup box messages and display states as shown in Table 4 and according to a popup box message "Do you want to close it? " displayed in the popup box. If it is found that the display state of the popup box is "being displayed” , the process of saving page data is allowed to access the popup box.
  • a display state of a currently displayed popup box message is "already destroyed”
  • a most important popup box message is further acquired from the popup box messages that are not displayed according to operations in the foregoing steps 205 and 206.
  • the most important popup box message is displayed, and a display state of the popup box message is recorded.
  • a trigger condition of each popup box message that is not displayed is acquired; a priority level of each popup box message that is not displayed is set separately according to the trigger condition of each popup box message that is not displayed; and a popup box message with a highest priority level is loaded into a popup box, and the popup box is displayed. Because a priority level of each popup box message that is not displayed is set according to a trigger condition of each popup box message, it is ensured that a more important popup box message has a higher priority level. Then, a popup box message with a highest priority level is displayed, so that one most important popup box message may be selected from popup box messages that are not displayed, and the most important popup box message is displayed preferentially.
  • this embodiment of the present invention provides an apparatus for displaying a popup box message, including:
  • an acquisition module 301 configured to acquire a trigger condition of each popup box message that is not displayed
  • a setting module 302 configured to separately set, according to the trigger condition of each popup box message that is not displayed, a priority level of each popup box message that is not displayed;
  • a display module 303 configured to load a popup box message with a highest priority level into a popup box, and display the popup box.
  • the setting module 302 includes:
  • a first acquisition unit configured to acquire, according to the trigger condition of each popup box message that is not displayed, at least one type parameter corresponding to each popup box message that is not displayed;
  • a setting unit configured to separately set, according to the at least one type parameter corresponding to each popup box message that is not displayed, a priority level of each popup box message that is not displayed.
  • the first acquisition unit is configured to acquire, from a correspondence between trigger conditions and type parameters and according to the trigger condition of each popup box message that is not displayed, at least one type parameter corresponding to each popup box message that is not displayed.
  • the setting unit includes:
  • an acquisition subunit configured to acquire a corresponding priority level from a correspondence between type parameters and priority levels and according to at least one type parameter that corresponds to a first popup box message, the first popup box message being any popup box message among the popup box messages that are not displayed;
  • a setting subunit configured to set the acquired priority level as a priority level of the first popup box message.
  • the display module 303 includes:
  • a second acquisition unit configured to acquire a popup box message with a highest priority level, and a display level relationship between the popup box message with the highest priority level and a currently displayed interface
  • a creation and loading unit configured to create a popup box, and load the popup box message into the created popup box
  • a display unit configured to display the popup box according to the display level relationship between the popup box message with the highest priority level and the currently displayed interface.
  • the display module 303 further includes:
  • a receiving unit configured to receive a request for accessing the popup box, the request being sent by a process communicating with the popup box;
  • a viewing unit configured to view a display state of the popup box
  • a determining unit configured to determine, according to the display state of the popup box, whether to allow the process to access the popup box.
  • the display module 303 further includes:
  • a recording unit configured to record a display state of the popup box
  • an updating unit configured to monitor the popup box in real time, and update the display state of the popup box when it is detected that the state of the popup box changes.
  • a trigger condition of each popup box message that is not displayed is acquired; a priority level of each popup box message that is not displayed is set separately according to the trigger condition of each popup box message that is not displayed; and a popup box message with a highest priority level is loaded into a popup box, and the popup box is displayed. Because a priority level of each popup box message that is not displayed is set according to a trigger condition of each popup box message, it is ensured that a more important popup box message has a higher priority level. Then, a popup box message with a highest priority level is displayed, so that one most important popup box message may be selected from popup box messages that are not displayed, and the most important popup box message is displayed preferentially.
  • FIG. 4 shows a schematic structural diagram of a terminal with a touch-sensitive surface involved in this embodiment of the present invention.
  • the terminal may be configured to implement a method for displaying a popup box message according to the foregoing embodiments. Specifically:
  • the terminal 900 may include a radio frequency (RF) circuit 110, a memory 120 having one or more computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a wireless fidelity (WiFi) module 170, a processor 180 including one or more processing cores, a power supply 190, and the like.
  • RF radio frequency
  • the terminal may include more components or fewer components than those shown in the figure, or some components may be combined, or a different component deployment may be used.
  • the RF circuit 110 may be configured to receive and send signals during an information receiving and sending process, or a call process. Particularly, the RF circuit 110 receives downlink information from a base station, then delivers the information to the processor 180 including one or more processing cores for processing, and sends related uplink data to the base station.
  • the RF circuit 110 includes but is not limited to an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM) card, a transceiver, a coupler, a low noise amplifier (LNA) , a duplexer, and the like.
  • SIM subscriber identity module
  • LNA low noise amplifier
  • the RF circuit 110 may also communicate with a network and another device by wireless communications.
  • the wireless communications may use any communications standard or protocol, which includes but is not limited to: Global System of Mobile Communication (GSM) , General Packet Radio Service (GPRS) , Code Division Multiple Access (CDMA) , Wideband Code Division Multiple Access (WCDMA) , Long Term Evolution (LTE) , Email, Short Messaging Service (SMS) , and the like.
  • GSM Global System of Mobile Communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • Email Short Messaging Service
  • the memory 120 may be configured to store a software program and module.
  • the processor 180 runs the software program and module stored in the memory 120, to implement various functional applications and data processing.
  • the memory 120 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, and an image display function) , and the like.
  • the data storage area may store data (such as audio data, and an address book) created according to use of the terminal 900, and the like.
  • the memory 120 may include a high speed random access memory, and may also include a non-volatile memory such as at least one magnetic disk storage device, a flash memory, or another volatile solid-state storage device. Accordingly, the memory 120 may further include a memory controller, so as to provide access to the memory 120 for the processor 180 and the input unit 130.
  • the input unit 130 may be configured to receive input digit or character information, and generate an input of a keyboard signal, a mouse signal, a joystick signal, an optical signal, or a track ball signal related to the user setting and function control.
  • the input unit 130 may include a touch-sensitive surface 131 and another input device 132.
  • the touch-sensitive surface 131 which may also be referred to as a touch screen or touch panel, may be configured to collect a touch operation of a user on or near the touch-sensitive surface (such as an operation of a user on or near the touch-sensitive surface 131 by using any suitable object or accessory, such as a finger or a stylus) , and drive a corresponding connection apparatus according to a preset program.
  • the touch-sensitive surface 131 may include two parts: a touch detection apparatus and a touch controller.
  • the touch detection apparatus detects the touch position of a user, detects a signal generated by the touch operation, and transmits the signal to the touch controller.
  • the touch controller receives the touch information from the touch detection apparatus, converts the signal into touch point coordinates, and sends the touch point coordinates to the processor 180.
  • the touch controller may receive and execute a command sent from the processor 180.
  • the touch-sensitive surface 131 may be a resistive, capacitive, infrared, or surface sound wave type touch-sensitive surface.
  • the input unit 130 may further include the another input device 132.
  • the another input device 132 may include, but is not limited to, one or more of a physical keyboard, a functional key (such as a volume control key and a switch key) , a track ball, a mouse, and a joystick.
  • the display unit 140 may be configured to display information input by a user or provided for a user, and various graphic user interfaces of the terminal 900.
  • the graphic user interfaces may consist of a graph, a text, an icon, a video and any combination thereof.
  • the display unit 140 may include a display panel 141.
  • the display panel 141 may be configured by using a liquid crystal display (LCD) , an organic light-emitting diode (OLED) , or the like.
  • the touch-sensitive surface 131 may cover the display panel 141. After detecting a touch operation on or near the touch-sensitive surface 131, the touch-sensitive surface 131 transmits the touch operation to the processor 180, so as to determine the type of the touch event.
  • the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event.
  • the touch-sensitive surface 131 and the display panel 141 are used as two separate components to implement input and output functions, in some embodiments, the touch-sensitive surface 131 and the display panel 141 may be integrated to implement the input and output functions.
  • the terminal 900 may further include at least one sensor 150, for example, an optical sensor, a motion sensor, and other sensors.
  • the optical sensor may include an ambient light sensor and a proximity sensor.
  • the ambient light sensor may adjust luminance of the display panel 141 according to brightness of the ambient light.
  • the proximity sensor may switch off the display panel 141 and/or backlight when the terminal 900 is moved to the ear.
  • a gravitational acceleration sensor may detect magnitude of accelerations in various directions (generally on three axes) , may detect magnitude and a direction of the gravity when static, and may be applied to an application that recognizes the attitude of the mobile phone (for example, switching between landscape orientation and portrait orientation, a related game, and magnetometer attitude calibration) , a function related to vibration recognition (such as a pedometer and a knock) , and the like.
  • Other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be configured in the terminal 900, are not further described herein.
  • the audio circuit 160, a loudspeaker 161, and a microphone 162 may provide audio interfaces between the user and the terminal 900.
  • the audio circuit 160 may convert received audio data into an electric signal and transmit the electric signal to the loudspeaker 161.
  • the loudspeaker 161 converts the electric signal into a sound signal for output.
  • the microphone 162 converts a collected sound signal into an electric signal.
  • the audio circuit 160 receives the electric signal and converts the electric signal into audio data, and outputs the audio data to the processor 180 for processing. Then, the processor 180 sends the audio data to, for example, another terminal by using the RF circuit 110, or outputs the audio data to the memory 120 for further processing.
  • the audio circuit 160 may further include an earplug jack, to provide communication between a peripheral earphone and the terminal 900.
  • WiFi is a short distance wireless transmission technology.
  • the terminal 900 may help, by using the WiFi module 170, a user to receive and send e-mails, browse a web page, access streaming media, and so on, which provides wireless broadband Internet access for the user.
  • FIG. 4 shows the WiFi module 170, it may be understood that the WiFi module is not a necessary component of the terminal 900, and when required, the WiFi module may be omitted as long as the scope of the essence of the present disclosure is not changed.
  • the processor 180 is the control center of the terminal 900, and is connected to various parts of the mobile phone by using various interfaces and lines. By running or executing the software program and/or module stored in the memory 120, and invoking data stored in the memory 120, the processor 180 performs various functions and data processing of the terminal 900, thereby performing overall monitoring on the mobile phone.
  • the processor 180 may include one or more processing cores.
  • the processor 180 may integrate an application processor and a modem.
  • the application processor mainly processes an operating system, a user interface, an application program, and the like.
  • the modem mainly processes wireless communications. It may be understood that the foregoing modem may also not be integrated into the processor 180.
  • the terminal 900 further includes the power supply 190 (such as a battery) for supplying power to the components.
  • the power supply may be logically connected to the processor 180 by using a power management system, thereby implementing functions such as charging, discharging and power consumption management by using the power management system.
  • the power supply 190 may further include one or more direct current or alternating current power supplies, a recharging system, a power failure detection circuit, a power adapter or an inverter, a power status indicator, and any other component.
  • the terminal 900 may further include a camera, a Bluetooth module, and the like, which are not further described herein.
  • a display unit of the terminal 900 is a touch-screen display, and the terminal 900 further includes a memory and one or more programs.
  • the one or more programs are stored in the memory, and are configured to be executed by one or more processors.
  • the one or more programs include instructions used for performing the following operations:
  • a priority level of each popup box message that is not displayed includes:
  • the acquiring, according to the trigger condition of each popup box message that is not displayed, at least one type parameter corresponding to each popup box message that is not displayed includes:
  • the separately setting, according to the at least one type parameter corresponding to each popup box message that is not displayed, a priority level of each popup box message that is not displayed includes:
  • the first popup box message being any popup box message among the popup box messages that are not displayed;
  • the loading a popup box message with a highest priority level into a popup box, and displaying the popup box includes:
  • the loading a popup box message with a highest priority level into a popup box, and displaying the popup box further includes:
  • the loading a popup box message with a highest priority level into a popup box, and displaying the popup box further includes:
  • a trigger condition of each popup box message that is not displayed is acquired; a priority level of each popup box message that is not displayed is set separately according to the trigger condition of each popup box message that is not displayed; and a popup box message with a highest priority level is loaded into a popup box, and the popup box is displayed. Because a priority level of each popup box message that is not displayed is set according to a trigger condition of each popup box message, it is ensured that a more important popup box message has a higher priority level. Then, a popup box message with a highest priority level is displayed, so that one most important popup box message may be selected from popup box messages that are not displayed, and the most important popup box message is displayed preferentially.
  • the program may be stored in a computer-readable storage medium.
  • the storage medium may be a read-only memory, a magnetic disk, an optical disc, or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A method for displaying a popup box message includes: acquiring a trigger condition of each popup box message that is not displayed; separately setting, according to the trigger condition of each popup box message that is not displayed, a priority level of each popup box message that is not displayed; and loading a popup box message with a highest priority level into a popup box, and displaying the popup box.

Description

METHOD AND APPARATUS FOR DISPLAYING POPUP BOX MESSAGE
FIELD OF THE TECHNOLOGY
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for displaying a popup box message.
BACKGROUND OF THE DISCLOSURE
A popup box is a user interface (UI) component that is often used during development and application, which displays a popup box message in a popup manner and performs an interactive operation with a user. For example, when a user closes a file, a mobile terminal pops up a popup box. A popup box message displayed by the popup box includes a prompt message "Do you want to close this file" , an "OK" button, and a "Cancel" button. The user can click a button to close the file or cancel closing the file.
When there is a popup box message on a mobile terminal, the mobile terminal needs to display the popup box message to a user, for the user to view the popup box message and perform an interactive operation. As a mobile terminal has a small screen size, the mobile terminal can only display one popup box message each time. Currently, a mobile terminal may display a popup box message through the following methods. Specifically, a mobile terminal receives a popup box message sent by a server, or a mobile terminal receives a command that triggers a popup box message, and inserts the popup box message to the tail of a message queue for waiting. The message queue is a first-in-first-out queue. A popup box message at the head of the queue has waited for a longest period of time. The mobile terminal dequeues the popup box message at the head of the message queue, creates a popup box, loads the dequeued popup box message into the created popup box, and displays the popup box to a user.
During the implementation process of the present disclosure, the inventor found that the existing technology has at least the following problems:
A popup box message is displayed according to a waiting time of the popup box message, and a popup box message that has waited for a longest period time is displayed first. However, some popup box messages are relatively important. For example, a popup box message such as an award prompt may be automatically destroyed after being displayed for a short time. If these popup box messages have waited for a short period of time, these important popup box  messages with strong time effectiveness cannot be displayed in time, leading to loss of these important popup box messages.
SUMMARY
A method for displaying a popup box message includes:
acquiring a trigger condition of each popup box message that is not displayed;
separately setting, according to the trigger condition of each popup box message that is not displayed, a priority level of each popup box message that is not displayed; and
loading a popup box message with a highest priority level into a popup box, and displaying the popup box.
An apparatus for displaying a popup box message includes:
an acquisition module, configured to acquire a trigger condition of each popup box message that is not displayed;
a setting module, configured to separately set, according to the trigger condition of each popup box message that is not displayed, a priority level of each popup box message that is not displayed; and
a display module, configured to load a popup box message with a highest priority level into a popup box, and display the popup box.
BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a flowchart of a method for displaying a popup box message according to Embodiment 1 of the present invention;
FIG. 2-1 is a flowchart of a method for displaying a popup box message according to Embodiment 2 of the present invention;
FIG. 2-2 is a schematic diagram of an interface for displaying a popup box message according to Embodiment 2 of the present invention;
FIG. 3 is a schematic structural diagram of an apparatus for displaying a popup box message according to Embodiment 3 of the present invention; and
FIG. 4 is a schematic structural diagram of a terminal according to Embodiment 4 of the present invention.
DESCRIPTION OF EMBODIMENTS
To make the objectives, technical solutions and advantages of the present disclosure clearer, the following describes implementation manners of the present disclosure in further detail with reference to accompanying drawings.
Embodiment 1
Referring to FIG. 1, this embodiment of the present invention provides a method for displaying a popup box message, including:
Step 101: Acquire a trigger condition of each popup box message that is not displayed.
Step 102: Separately set, according to the trigger condition of each popup box message that is not displayed, a priority level of each popup box message that is not displayed.
Step 103: Load a popup box message with a highest priority level into a popup box, and display the popup box.
Preferably, the separately setting, according to the trigger condition of each popup box message that is not displayed, a priority level of each popup box message that is not displayed includes:
acquiring, according to the trigger condition of each popup box message that is not displayed, at least one type parameter corresponding to each popup box message that is not displayed; and
separately setting, according to the at least one type parameter corresponding to each popup box message that is not displayed, a priority level of each popup box message that is not displayed.
Preferably, the acquiring, according to the trigger condition of each popup box message that is not displayed, at least one type parameter corresponding to each popup box message that is not displayed includes:
acquiring, from a correspondence between trigger conditions and type parameters and according to the trigger condition of each popup box message that is not displayed, at least one type parameter corresponding to each popup box message that is not displayed.
Preferably, the separately setting, according to the at least one type parameter corresponding to each popup box message that is not displayed, a priority level of each popup box message that is not displayed includes:
acquiring a corresponding priority level from a correspondence between type parameters and priority levels and according to at least one type parameter that corresponds to a first popup box message, the first popup box message being any popup box message among the popup box messages that are not displayed; and
setting the acquired priority level as a priority level of the first popup box message.
Preferably, the loading a popup box message with a highest priority level into a popup box, and displaying the popup box includes:
acquiring a popup box message with a highest priority level, and a display level relationship between the popup box message with the highest priority level and a currently displayed interface;
creating a popup box, and loading the popup box message into the created popup box; and
displaying the popup box according to the display level relationship between the popup box message with the highest priority level and the currently displayed interface.
Further, after the loading a popup box message with a highest priority level into a popup box, and displaying the popup box, the method further includes:
receiving a request for accessing the popup box, the request being sent by a process communicating with the popup box;
viewing a display state of the popup box; and
determining, according to the display state of the popup box, whether to allow the process to access the popup box.
Further, after the loading a popup box message with a highest priority level into a popup box, and displaying the popup box, the method further includes:
recording a display state of the popup box; and
monitoring the popup box in real time, and updating the display state of the popup box when it is detected that the state of the popup box changes.
In this embodiment of the present invention, a trigger condition of each popup box message that is not displayed is acquired; a priority level of each popup box message that is not displayed is set separately according to the trigger condition of each popup box message that is not displayed; and a popup box message with a highest priority level is loaded into a popup box, and  the popup box is displayed. Because a priority level of each popup box message that is not displayed is set according to a trigger condition of each popup box message, it is ensured that a more important popup box message has a higher priority level. Then, a popup box message with a highest priority level is displayed, so that one most important popup box message may be selected from popup box messages that are not displayed, and the most important popup box message is displayed preferentially.
Embodiment 2
This embodiment of the present invention provides a method for displaying a popup box message.
Before a popup box currently displayed on a terminal is destroyed, each time the terminal receives a popup box message, the terminal inserts the popup box message into a message queue. When the terminal needs to display a popup box message, the terminal may select one most important popup box message from the message queue according to the method provided by this embodiment of the present invention, and display the most important popup box message.
Referring to FIG. 2-1, the method specifically includes:
Step 201: Receive a popup box message sent by a server, or receive a click command of a user and generate a popup box message, and insert the popup box message into a message queue.
Popup box messages may be classified into popup box messages triggered by the foreground and popup box messages sent by the background, according to different sources of the popup box messages.
The popup box message triggered by the foreground is a popup box message that is generated when a terminal receives a command triggered by a user clicking an interface on a page. When the user clicks some interfaces on a page to trigger a click command, the terminal receives the click command triggered by the user, and then generates a popup box message. The terminal uses the received click command as a trigger condition of the popup box message, and stores the trigger condition of the popup box message and the popup box message into a correspondence between trigger conditions and popup box messages. For example, when a terminal receives a close command triggered by a user clicking a close button on a page, the terminal generates a popup box message "Do you want to close it? " , uses the received click command "close command" as a trigger condition of the popup box message "Do you want to close it? " , and stores the click command  "close command" and the popup box message "Do you want to close it? " into a correspondence between trigger conditions and popup box messages as shown in Table 1.
Table 1
Trigger condition Popup box message
Submit an order request Confirm the order
Notification Notification message
Close command Do you want to close it?
…… ……
The popup box message sent by the background is a popup box message that is sent by a server. During communication between a terminal and a server, a user submits a request to the terminal through some interfaces, and the terminal receives the request submitted by the user and sends information to the server. The server generates a popup box message according to the information sent by the terminal, and sends the popup box message to the terminal. The terminal receives the popup box message sent by the server, uses the request submitted by the user through some interfaces as a trigger condition of the popup box message, and stores the trigger condition of the popup box message and the popup box message into a correspondence between trigger conditions and popup box messages. For example, a terminal receives an order submission request that is triggered by a user clicking an order submission button, sends order information to a server, and receives a popup box message "confirm the order" that is returned by the server according to the order information, uses the order submission request as a trigger condition of the popup box message, and stores the order submission request and the popup box message "confirm the order" into the correspondence between trigger conditions and popup box messages as shown in Table 1.
In addition, a server may further actively push a popup box message to a terminal. Before a server pushes a popup box message, the server allocates a message identifier to the popup box message, and attaches the allocated message identifier to the popup box message. The terminal receives the popup box message that is pushed by the server, acquires a message identifier of the popup box message from the popup box message, uses the acquired message identifier as a trigger condition of the popup box message, and stores the trigger condition of the popup box message and the popup box message into a correspondence between trigger conditions and popup box messages. For example, a terminal receives a popup box message "notification message" that is pushed by a server, acquires a message identifier "notification" from the popup box message "notification message" , uses the acquired message identifier "notification" as a trigger condition of the popup box message, and stores the message identifier "notification" and the popup box message  "notification message" into the correspondence between trigger conditions and popup box messages as shown in Table 1.
When the terminal receives a popup box message that is sent by the server or generates a popup box message according to a click command received from a user, the terminal inserts the popup box message to the tail of the message queue for waiting. The message queue is a first-in-first-out queue, and a popup box message located at the head of the queue has waited for a longest period of time.
For example, when a terminal receives a submission command triggered by a user clicking an order submission button, the terminal sends order information to a server. The terminal receives a popup box message "confirm the order" that is returned according to the order information by the server, and inserts the popup box message "confirm the order" to the tail of a queue 1 shown below.
Queue 1
Figure PCTCN2015082640-appb-000001
For another example, a terminal receives a popup box message "notification message" pushed by a server, and inserts the popup box message "notification message" to the tail of a queue 2 shown below.
Queue 2
Figure PCTCN2015082640-appb-000002
For still another example, a terminal receives a close command triggered by a user clicking a close button, generates a popup box message "Do you want to close it? " , and inserts the popup box message "Do you want to close it? " to the tail of a queue 3 shown below.
Queue 3
Figure PCTCN2015082640-appb-000003
After the received or generated popup box message is inserted into the message queue through the above step 201, a priority level is set, through the following steps 202 to 204, for each popup box message that is not displayed in the message queue.
Step 202: Acquire a trigger condition of each popup box message that is not displayed.
Specifically, a popup box message that is not displayed and located at the head of the message queue is dequeued, and a trigger condition of the popup box message that is not displayed is acquired from a stored correspondence between popup box messages and trigger conditions and according to the popup box message that is not displayed.
For each remaining popup box message that is not displayed in the message queue, a trigger condition thereof is acquired according to the above operation with respect to the popup box message.
For example, the popup box message "confirm the order" located at the head of the message queue shown in the queue 3 is dequeued. According to the popup box message "confirm the order" that is not displayed, a trigger condition of the popup box message "confirm the order" that is not displayed is acquired from the stored correspondence between popup box messages and trigger conditions as shown in Table 1. The trigger condition is "order submission request" . A message queue after the popup box message "confirm the order" is dequeued is as shown in a queue 4.
Queue 4
Figure PCTCN2015082640-appb-000004
For another example, the popup box message "notification message" located at the head of the message queue as shown in the queue 4 is dequeued. According to the popup box message "notification message" that is not displayed, a trigger condition of the popup box message "notification message" that is not displayed is acquired from the stored correspondence between popup box messages and trigger conditions as shown in Table 1. The trigger condition is "notification" . A message queue after the popup box message "notification message" is dequeued is as shown in a queue 5.
Queue 5
Figure PCTCN2015082640-appb-000005
For another example, the popup box message "Do you want to close it? " located at the head of the message queue as shown in the queue 5 is dequeued. According to the popup box  message "Do you want to close it? " that is not displayed, a trigger condition of the popup box message "Do you want to close it? " that is not displayed is acquired from the stored correspondence between popup box messages and trigger conditions as shown in Table 1. The trigger condition is "close command" . A message queue after the popup box message "Do you want to close it? " is dequeued is as shown in a queue 6.
Queue 6
     
Step 203: Acquire, according to the trigger condition of each popup box message that is not displayed, at least one type parameter corresponding to each popup box message that is not displayed.
Popup box messages may be classified into different categories according to different classification standards. For example, the popup box messages may be classified into two categories, that is, modal popup boxes and non-modal popup boxes, according to display forms of popup box messages, or popup boxes triggered by the foreground and popup boxes sent by the background according to sources of popup box messages, or popup boxes with time effectiveness and popup boxes without time effectiveness according to whether popup box messages have a valid time or not. A type parameter is used for indicating a category of a popup box message, which may include modality, non-modality, foreground-triggered, background-sent, time effectiveness or non-time effectiveness, and the like.
A popup box message with time effectiveness may be automatically destroyed after being displayed for a preset time.
A skilled person sets at least one type parameter that corresponds to a different trigger condition in an installation package of an application. A correspondence between trigger conditions and type parameters as shown in Table 2 is stored when the application is installed in the terminal.
Table 2
Figure PCTCN2015082640-appb-000006
Figure PCTCN2015082640-appb-000007
This step is specifically as follows: acquiring, according to the acquired trigger condition of each popup box message that is not displayed, a type parameter corresponding to each popup box message that is not displayed from a stored correspondence between trigger conditions and type parameters.
For example, according to the acquired trigger condition "order submission request" of the popup box message "confirm the order" , type parameters "non-modality, background-sent and non-time-effectiveness" corresponding to the popup box message "confirm the order" are acquired from the stored correspondence between trigger conditions and type parameters as shown in Table 2.
For another example, according to the acquired trigger condition "notification" of the popup box message "notification message" , type parameters "non-modality, background-sent and time effectiveness" corresponding to the popup box message "notification message" are acquired from the stored correspondence between trigger conditions and type parameters as shown in Table 2.
For still another example, according to the acquired trigger condition "click a close button" of the popup box message "Do you want to close it? " , type parameters "modality, foreground-triggered and non-time-effectiveness" corresponding to the popup box message "Do you want to close it" are acquired from the stored correspondence between trigger conditions and type parameters as shown in Table 2.
Step 204: Separately set, according to the at least one type parameter corresponding to each popup box message that is not displayed, a priority level of each popup box message that is not displayed.
A skilled person specifies a priority level that corresponds to each type parameter in advance, and sets a correspondence between type parameters and priority levels in an installation package of an application. The correspondence between type parameters and priority levels is stored when the application is installed in a terminal.
Different type parameters have different importance degrees. For example, a popup box message with time effectiveness is more important than a popup box message without time effectiveness, and a modal popup box is more important than a non-modal popup box. Therefore, when a skilled person specifies a priority level that corresponds to each type parameter, a high  priority level is set for an important type parameter, so as to ensure that a more important popup box message has a higher priority level.
It may be specified in advance that, if a value of a priority level is larger, the priority level is higher; or if a value of a priority level is smaller, the priority level is higher.
This step is specifically as follows: assuming that a first popup box message is any popup box message among the popup box messages that are not displayed, acquiring a priority level corresponding to each type parameter in the at least one type parameter from a stored correspondence between type parameters and priority levels and according to at least one type parameter that corresponds to the first popup box message, and calculating a priority level of the first popup box message by using a preset calculation method and according to the acquired priority level that corresponds to each type parameter.
The preset calculation method may be adding or multiplying the acquired priority levels that correspond to the type parameters.
For each remaining popup box message that is not displayed, a priority level thereof is set according to the above operation with respect to the first popup box message.
For example, assuming that a terminal has stored in advance a correspondence between type parameters and priority levels as shown in Table 3, according to type parameters "non-modality, background-sent, and non-time-effectiveness" that correspond to the popup box message "confirm the order" , a priority level 2 corresponding to the type parameter "non-modality" , a priority level 2 corresponding to the type parameter "background-sent" and a priority level 2 corresponding to the type parameter "non-time-effectiveness" are acquired from the correspondence between type parameters and priority levels as shown in Table 3. Assuming that a preset calculation method is adding priority levels that correspond to acquired type parameters, the acquired priority level 2 corresponding to the type parameter "non-modality" , the acquired priority level 2 corresponding to the type parameter "background-sent" and the acquired priority level 2 corresponding to the type parameter "non-time-effectiveness" are added up, to obtain a priority level 6 of the popup box message "confirm the order" .
Table 3
Type parameter Priority level
Time effectiveness 1
Non-time-effectiveness 2
Modality 1
Non-modality 2
Foreground-triggered 1
Background-sent 2
…… ……
For another example, according to type parameters "non-modality, background-sent, and time effectiveness" that correspond to the popup box message "notification message" , a priority level 2 corresponding to the type parameter "non-modality" , a priority level 2 corresponding to the type parameter "background-sent" and a priority level 1 corresponding to the type parameter "time effectiveness" are acquired from the correspondence between type parameters and priority levels as shown in Table 3. The acquired priority level 2 corresponding to the type parameter "non-modality" , the acquired priority level 2 corresponding to the type parameter "background-sent" , and the acquired priority level 1 corresponding to the type parameter "time effectiveness" are added up, to obtain a priority level 5 of the popup box message "notification message" .
For still another example, according to type parameters "modality, foreground-triggered, and non-time-effectiveness" that correspond to the popup box message "Do you want to close it? " , a priority level 1 corresponding to the type parameter "modality" , a priority level 1 corresponding to the type parameter "foreground-triggered" and a priority level 2 corresponding to the type parameter "non-time-effectiveness" are acquired from the correspondence between type parameters and priority levels as shown in Table 3. The acquired priority level 1 corresponding to the type parameter "modality" , the acquired priority level 1 corresponding to the type parameter "foreground-triggered" , and the acquired priority level 2 corresponding to the type parameter "non-time effectiveness" are added up, to obtain a priority level 4 of the popup box message "Do you want to close it? "
Each time the terminal receives a popup box message that is sent by the server or generates a popup box message according to a click command received from a user, the terminal sets a priority level for the popup box message according to operations in the foregoing steps 201 to 204.
After a priority level is set for each popup box message that is not displayed by means of operations in the foregoing steps 201 to 204, a most important popup box message is selected by means of an operation in the following step 205, and the popup box message is displayed.
Step 205: Load a popup box message with a highest priority level into a popup box, and display the popup box.
The popup box message with the highest priority level is the most important.
This step is specifically as follows: comparing priority levels of the popup box messages that are not displayed, acquiring a popup box message with a highest priority level among the popup box messages that are not displayed, and acquiring a display level relationship between the popup box message with the highest priority level and a currently displayed interface; creating a popup box; loading the popup box message with the highest priority level into the created popup box; and displaying the popup box according to the display level relationship between the popup box message with the highest priority level and the currently displayed interface.
The display level relationship represents an arrangement sequence of interfaces that are currently displayed on the terminal. It may be specified that, if a value of a display level of an interface is larger, the interface is arranged at a more front position. Alternatively, it may be specified that, if a value of a display level of an interface is smaller, the interface is arranged at a more front position. During development of an application, a skilled person sets a display level relationship between display interfaces in the application.
For example, it is specified that a smaller value of a priority level indicates a higher priority level. Comparison is performed on the priority level 6 of the popup box message "confirm the order" , the priority level 5 of the popup box message "notification message" and the priority level 4 of the popup box message "Do you want to close it? " , to acquire the popup box message "Do you want to close it? " with the highest priority level among the popup box messages "confirm the order" , "notification message" and "Do you want to close it? " that are not displayed. A display level relationship between the popup box message "Do you want to close it? " with the highest priority level and a currently displayed interface is acquired. It is assumed that the acquired display level relationship is that a display level of the popup box message "Do you want to close it? " is 1, and a display level of the currently displayed interface is 2. Assuming that it is specified that an interface is arranged at a more front position if a value of a display level of the interface is smaller, the popup box message "Do you want to close it? " shall be arranged in front of the currently displayed interface. A popup box is created, and the popup box message "Do you want to close it? " with the highest priority level is loaded into the created popup box. The popup box is displayed according to the display level 1 of the popup box message "Do you want to close it? " and the display level 2 of the currently displayed interface. As shown in FIG. 2-2, the popup box is located in front of the currently displayed interface.
According to different display forms, popup boxes may be classified into two types, that is, modal popup boxes and non-modal popup boxes. For a modal popup box, when a user  intends to perform operation on an application program outside the popup box, the user needs to respond to the popup box first, for example, click a button such as "OK" or "Cancel" to close the popup box. Therefore, during display of popup boxes, only one modal popup box can be displayed each time, while one or more non-modal popup boxes can be displayed each time.
After the popup box message is displayed by means of operations in the foregoing steps 201 to 205, a display state of the displayed popup box message further needs to be recorded by means of operations in the following step 206, to help another process inquire the display state of the popup box message.
Step 206: Record a display state of the popup box, monitor the displayed popup box in real time, and update the display state of the popup box when the state of the popup box changes.
Specifically, a display state of the popup box is recorded, and a popup box message displayed in the popup box and the display state of the popup box are stored in a correspondence between popup box messages and display states. The displayed popup box is monitored, and when the state of the popup box changes, the display state corresponding to the popup box in the correspondence between popup box messages and display states is updated.
For example, a display state "being displayed" of the popup box is recorded, and a popup box message "Do you want to close it? " displayed by the popup box and the display state "being displayed" of the popup box are stored in a correspondence between popup box messages and display states as shown in Table 4. The displayed popup box is monitored, and when the state of the popup box changes, for example, when the popup box is being destroyed, the display state corresponding to the popup box in the correspondence between popup box messages and display states as shown in Table 4 is updated to "being destroyed" . An updated correspondence between popup box messages and display states is as shown in Table 5.
Table 4
Popup box message Display state
Do you want to close it?  Being displayed
Table 5
Popup box message Display state
Do you want to close it?  Being destroyed
After the popup box is displayed and the display state of the popup box is recorded by means of the foregoing  steps  205 and 206, some processes may need to communicate with a process of the popup box, input data to the process of the popup box, or acquire data from the process of the popup box. For example, after the terminal displays the popup box message "Do you want to close it? " , a process of saving page data needs to access the process of the popup box message "Do you want to close it? " , information on saved page data is acquired from the process of the popup box message "Do you want to close it? " , and the page data is saved according to the acquired information.
When a process that communicates with the popup box submits a request for accessing the popup box to the terminal, the terminal receives the request, and determines whether to allow the process to access the popup box by means of operations in the following step 207.
Step 207: View a display state of the popup box when a request, which is submitted by a process communicating with the popup box, for accessing the popup box is received, and determine, according to the display state of the popup box, whether to allow the process to access the popup box.
Specifically, when a request, which is submitted by a process communicating with the popup box, for accessing the popup box is received, a corresponding display state is acquired from a correspondence between popup box messages and display states and according to a popup box message displayed in the popup box. If the acquired display state is "being displayed" , the process is allowed to access the popup box. If the acquired display state is "being destroyed" or "already destroyed" , the request submitted by the process for accessing the popup box is rejected.
For example, it is assumed that the process communicating with the popup box is a process of saving page data. When a request, which is submitted by the process of saving page data, for accessing the popup box is received, a corresponding display state is acquired from the correspondence between popup box messages and display states as shown in Table 4 and according to a popup box message "Do you want to close it? " displayed in the popup box. If it is found that the display state of the popup box is "being displayed" , the process of saving page data is allowed to access the popup box.
If a display state of a currently displayed popup box message is "already destroyed" , a most important popup box message is further acquired from the popup box messages that are not displayed according to operations in the foregoing  steps  205 and 206. The most important popup box message is displayed, and a display state of the popup box message is recorded.
In this embodiment of the present invention, a trigger condition of each popup box message that is not displayed is acquired; a priority level of each popup box message that is not displayed is set separately according to the trigger condition of each popup box message that is not displayed; and a popup box message with a highest priority level is loaded into a popup box, and the popup box is displayed. Because a priority level of each popup box message that is not displayed is set according to a trigger condition of each popup box message, it is ensured that a more important popup box message has a higher priority level. Then, a popup box message with a highest priority level is displayed, so that one most important popup box message may be selected from popup box messages that are not displayed, and the most important popup box message is displayed preferentially.
Embodiment 3
Referring to FIG. 3, this embodiment of the present invention provides an apparatus for displaying a popup box message, including:
an acquisition module 301, configured to acquire a trigger condition of each popup box message that is not displayed;
setting module 302, configured to separately set, according to the trigger condition of each popup box message that is not displayed, a priority level of each popup box message that is not displayed; and
display module 303, configured to load a popup box message with a highest priority level into a popup box, and display the popup box.
The setting module 302 includes:
a first acquisition unit, configured to acquire, according to the trigger condition of each popup box message that is not displayed, at least one type parameter corresponding to each popup box message that is not displayed; and
a setting unit, configured to separately set, according to the at least one type parameter corresponding to each popup box message that is not displayed, a priority level of each popup box message that is not displayed.
The first acquisition unit is configured to acquire, from a correspondence between trigger conditions and type parameters and according to the trigger condition of each popup box message that is not displayed, at least one type parameter corresponding to each popup box message that is not displayed.
The setting unit includes:
an acquisition subunit, configured to acquire a corresponding priority level from a correspondence between type parameters and priority levels and according to at least one type parameter that corresponds to a first popup box message, the first popup box message being any popup box message among the popup box messages that are not displayed; and
a setting subunit, configured to set the acquired priority level as a priority level of the first popup box message.
The display module 303 includes:
a second acquisition unit, configured to acquire a popup box message with a highest priority level, and a display level relationship between the popup box message with the highest priority level and a currently displayed interface;
a creation and loading unit, configured to create a popup box, and load the popup box message into the created popup box; and
a display unit, configured to display the popup box according to the display level relationship between the popup box message with the highest priority level and the currently displayed interface.
Further, the display module 303 further includes:
a receiving unit, configured to receive a request for accessing the popup box, the request being sent by a process communicating with the popup box;
a viewing unit, configured to view a display state of the popup box; and
a determining unit, configured to determine, according to the display state of the popup box, whether to allow the process to access the popup box.
Further, the display module 303 further includes:
a recording unit, configured to record a display state of the popup box; and
an updating unit, configured to monitor the popup box in real time, and update the display state of the popup box when it is detected that the state of the popup box changes.
In this embodiment of the present invention, a trigger condition of each popup box message that is not displayed is acquired; a priority level of each popup box message that is not displayed is set separately according to the trigger condition of each popup box message that is not displayed; and a popup box message with a highest priority level is loaded into a popup box, and  the popup box is displayed. Because a priority level of each popup box message that is not displayed is set according to a trigger condition of each popup box message, it is ensured that a more important popup box message has a higher priority level. Then, a popup box message with a highest priority level is displayed, so that one most important popup box message may be selected from popup box messages that are not displayed, and the most important popup box message is displayed preferentially.
Embodiment 4
Refer to FIG. 4, which shows a schematic structural diagram of a terminal with a touch-sensitive surface involved in this embodiment of the present invention. The terminal may be configured to implement a method for displaying a popup box message according to the foregoing embodiments. Specifically:
The terminal 900 may include a radio frequency (RF) circuit 110, a memory 120 having one or more computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a wireless fidelity (WiFi) module 170, a processor 180 including one or more processing cores, a power supply 190, and the like. A person skilled in the art may understand that the structure of the terminal shown in FIG. 4 does not constitute a limitation to the terminal, and the terminal may include more components or fewer components than those shown in the figure, or some components may be combined, or a different component deployment may be used.
The RF circuit 110 may be configured to receive and send signals during an information receiving and sending process, or a call process. Particularly, the RF circuit 110 receives downlink information from a base station, then delivers the information to the processor 180 including one or more processing cores for processing, and sends related uplink data to the base station. Generally, the RF circuit 110 includes but is not limited to an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM) card, a transceiver, a coupler, a low noise amplifier (LNA) , a duplexer, and the like. In addition, the RF circuit 110 may also communicate with a network and another device by wireless communications. The wireless communications may use any communications standard or protocol, which includes but is not limited to: Global System of Mobile Communication (GSM) , General Packet Radio Service (GPRS) , Code Division Multiple Access (CDMA) , Wideband Code Division Multiple Access (WCDMA) , Long Term Evolution (LTE) , Email, Short Messaging Service (SMS) , and the like.
The memory 120 may be configured to store a software program and module. The processor 180 runs the software program and module stored in the memory 120, to implement  various functional applications and data processing. The memory 120 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, and an image display function) , and the like. The data storage area may store data (such as audio data, and an address book) created according to use of the terminal 900, and the like. In addition, the memory 120 may include a high speed random access memory, and may also include a non-volatile memory such as at least one magnetic disk storage device, a flash memory, or another volatile solid-state storage device. Accordingly, the memory 120 may further include a memory controller, so as to provide access to the memory 120 for the processor 180 and the input unit 130.
The input unit 130 may be configured to receive input digit or character information, and generate an input of a keyboard signal, a mouse signal, a joystick signal, an optical signal, or a track ball signal related to the user setting and function control. Specifically, the input unit 130 may include a touch-sensitive surface 131 and another input device 132. The touch-sensitive surface 131, which may also be referred to as a touch screen or touch panel, may be configured to collect a touch operation of a user on or near the touch-sensitive surface (such as an operation of a user on or near the touch-sensitive surface 131 by using any suitable object or accessory, such as a finger or a stylus) , and drive a corresponding connection apparatus according to a preset program.
Alternatively, the touch-sensitive surface 131 may include two parts: a touch detection apparatus and a touch controller. The touch detection apparatus detects the touch position of a user, detects a signal generated by the touch operation, and transmits the signal to the touch controller. The touch controller receives the touch information from the touch detection apparatus, converts the signal into touch point coordinates, and sends the touch point coordinates to the processor 180. Moreover, the touch controller may receive and execute a command sent from the processor 180. In addition, the touch-sensitive surface 131 may be a resistive, capacitive, infrared, or surface sound wave type touch-sensitive surface. In addition to the touch-sensitive surface 131, the input unit 130 may further include the another input device 132. Specifically, the another input device 132 may include, but is not limited to, one or more of a physical keyboard, a functional key (such as a volume control key and a switch key) , a track ball, a mouse, and a joystick.
The display unit 140 may be configured to display information input by a user or provided for a user, and various graphic user interfaces of the terminal 900. The graphic user interfaces may consist of a graph, a text, an icon, a video and any combination thereof. The display unit 140 may include a display panel 141. Optionally, the display panel 141 may be configured by using a liquid crystal display (LCD) , an organic light-emitting diode (OLED) , or the like. Further, the touch-sensitive surface 131 may cover the display panel 141. After detecting a touch operation  on or near the touch-sensitive surface 131, the touch-sensitive surface 131 transmits the touch operation to the processor 180, so as to determine the type of the touch event. Then, the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in FIG. 4, the touch-sensitive surface 131 and the display panel 141 are used as two separate components to implement input and output functions, in some embodiments, the touch-sensitive surface 131 and the display panel 141 may be integrated to implement the input and output functions.
The terminal 900 may further include at least one sensor 150, for example, an optical sensor, a motion sensor, and other sensors. Specifically, the optical sensor may include an ambient light sensor and a proximity sensor. The ambient light sensor may adjust luminance of the display panel 141 according to brightness of the ambient light. The proximity sensor may switch off the display panel 141 and/or backlight when the terminal 900 is moved to the ear. As one type of motion sensor, a gravitational acceleration sensor may detect magnitude of accelerations in various directions (generally on three axes) , may detect magnitude and a direction of the gravity when static, and may be applied to an application that recognizes the attitude of the mobile phone (for example, switching between landscape orientation and portrait orientation, a related game, and magnetometer attitude calibration) , a function related to vibration recognition (such as a pedometer and a knock) , and the like. Other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be configured in the terminal 900, are not further described herein.
The audio circuit 160, a loudspeaker 161, and a microphone 162 may provide audio interfaces between the user and the terminal 900. The audio circuit 160 may convert received audio data into an electric signal and transmit the electric signal to the loudspeaker 161. The loudspeaker 161 converts the electric signal into a sound signal for output. On the other hand, the microphone 162 converts a collected sound signal into an electric signal. The audio circuit 160 receives the electric signal and converts the electric signal into audio data, and outputs the audio data to the processor 180 for processing. Then, the processor 180 sends the audio data to, for example, another terminal by using the RF circuit 110, or outputs the audio data to the memory 120 for further processing. The audio circuit 160 may further include an earplug jack, to provide communication between a peripheral earphone and the terminal 900.
WiFi is a short distance wireless transmission technology. The terminal 900 may help, by using the WiFi module 170, a user to receive and send e-mails, browse a web page, access streaming media, and so on, which provides wireless broadband Internet access for the user.
Although FIG. 4 shows the WiFi module 170, it may be understood that the WiFi module is not a  necessary component of the terminal 900, and when required, the WiFi module may be omitted as long as the scope of the essence of the present disclosure is not changed.
The processor 180 is the control center of the terminal 900, and is connected to various parts of the mobile phone by using various interfaces and lines. By running or executing the software program and/or module stored in the memory 120, and invoking data stored in the memory 120, the processor 180 performs various functions and data processing of the terminal 900, thereby performing overall monitoring on the mobile phone. Optionally, the processor 180 may include one or more processing cores. Preferably, the processor 180 may integrate an application processor and a modem. The application processor mainly processes an operating system, a user interface, an application program, and the like. The modem mainly processes wireless communications. It may be understood that the foregoing modem may also not be integrated into the processor 180.
The terminal 900 further includes the power supply 190 (such as a battery) for supplying power to the components. Preferably, the power supply may be logically connected to the processor 180 by using a power management system, thereby implementing functions such as charging, discharging and power consumption management by using the power management system. The power supply 190 may further include one or more direct current or alternating current power supplies, a recharging system, a power failure detection circuit, a power adapter or an inverter, a power status indicator, and any other component.
Although not shown in the figure, the terminal 900 may further include a camera, a Bluetooth module, and the like, which are not further described herein. Specifically, in this embodiment, a display unit of the terminal 900 is a touch-screen display, and the terminal 900 further includes a memory and one or more programs. The one or more programs are stored in the memory, and are configured to be executed by one or more processors. The one or more programs include instructions used for performing the following operations:
acquiring a trigger condition of each popup box message that is not displayed;
separately setting, according to the trigger condition of each popup box message that is not displayed, a priority level of each popup box message that is not displayed; and
loading a popup box message with a highest priority level into a popup box, and displaying the popup box.
Preferably, the separately setting, according to the trigger condition of each popup box message that is not displayed, a priority level of each popup box message that is not displayed includes:
acquiring, according to the trigger condition of each popup box message that is not displayed, at least one type parameter corresponding to each popup box message that is not displayed; and
separately setting, according to the at least one type parameter corresponding to each popup box message that is not displayed, a priority level of each popup box message that is not displayed.
Preferably, the acquiring, according to the trigger condition of each popup box message that is not displayed, at least one type parameter corresponding to each popup box message that is not displayed includes:
acquiring, from a correspondence between trigger conditions and type parameters and according to the trigger condition of each popup box message that is not displayed, at least one type parameter corresponding to each popup box message that is not displayed.
Preferably, the separately setting, according to the at least one type parameter corresponding to each popup box message that is not displayed, a priority level of each popup box message that is not displayed includes:
acquiring a corresponding priority level from a correspondence between type parameters and priority levels and according to at least one type parameter that corresponds to a first popup box message, the first popup box message being any popup box message among the popup box messages that are not displayed; and
setting the acquired priority level as a priority level of the first popup box message.
Preferably, the loading a popup box message with a highest priority level into a popup box, and displaying the popup box includes:
acquiring a popup box message with a highest priority level, and a display level relationship between the popup box message with the highest priority level and a currently displayed interface;
creating a popup box, and loading the popup box message into the created popup box; and
displaying the popup box according to the display level relationship between the popup box message with the highest priority level and the currently displayed interface.
Further, the loading a popup box message with a highest priority level into a popup box, and displaying the popup box further includes:
receiving a request for accessing the popup box, the request being sent by a process communicating with the popup box;
viewing a display state of the popup box; and
determining whether to allow the process to access the popup box according to the display state of the popup box.
Further, the loading a popup box message with a highest priority level into a popup box, and displaying the popup box further includes:
recording a display state of the popup box; and
monitoring the popup box in real time, and updating the display state of the popup box when it is detected that the state of the popup box changes.
In this embodiment of the present invention, a trigger condition of each popup box message that is not displayed is acquired; a priority level of each popup box message that is not displayed is set separately according to the trigger condition of each popup box message that is not displayed; and a popup box message with a highest priority level is loaded into a popup box, and the popup box is displayed. Because a priority level of each popup box message that is not displayed is set according to a trigger condition of each popup box message, it is ensured that a more important popup box message has a higher priority level. Then, a popup box message with a highest priority level is displayed, so that one most important popup box message may be selected from popup box messages that are not displayed, and the most important popup box message is displayed preferentially.
A person of ordinary skill in the art may understand that, all or some of the steps of the foregoing embodiments may be implemented by hardware or a program instructing relevant hardware. The program may be stored in a computer-readable storage medium. The storage medium may be a read-only memory, a magnetic disk, an optical disc, or the like.
The above descriptions are merely preferred embodiments of the present invention, and are not intended to limit the present disclosure. Any modification, equivalent replacement and improvement made within the spirit and principle of the present disclosure shall fall within the protection scope of the present disclosure.

Claims (12)

  1. A method for displaying a popup box message, comprising:
    acquiring, by a terminal, a trigger condition of each popup box message that is not displayed;
    separately setting, by a terminal according to the trigger condition of each popup box message that is not displayed, a priority level of each popup box message that is not displayed; and
    loading, by a terminal, a popup box message with a highest priority level into a popup box, and displaying the popup box;
    the separately setting, according to the trigger condition of each popup box message that is not displayed, a priority level of each popup box message that is not displayed comprising:
    acquiring, according to the trigger condition of each popup box message that is not displayed, at least one type parameter corresponding to each popup box message that is not displayed; and
    separately setting, according to the at least one type parameter corresponding to each popup box message that is not displayed, a priority level of each popup box message that is not displayed.
  2. The method according to claim 1, wherein the acquiring, according to the trigger condition of each popup box message that is not displayed, at least one type parameter corresponding to each popup box message that is not displayed comprises:
    acquiring, from a correspondence between trigger conditions and type parameters and according to the trigger condition of each popup box message that is not displayed, at least one type parameter corresponding to each popup box message that is not displayed.
  3. The method according to claim 1, wherein the separately setting, according to the at least one type parameter corresponding to each popup box message that is not displayed, a priority level of each popup box message that is not displayed comprises:
    acquiring a corresponding priority level from a correspondence between type parameters and priority levels and according to at least one type parameter that corresponds to a first popup box message, the first popup box message being any popup box message among the popup box messages that are not displayed; and
    setting the acquired priority level as a priority level of the first popup box message.
  4. The method according to claim 1, wherein the loading a popup box message with a highest priority level into a popup box, and displaying the popup box, comprises:
    acquiring a popup box message with a highest priority level, and a display level relationship between the popup box message with the highest priority level and a currently displayed interface;
    creating a popup box, and loading the popup box message into the created popup box; and
    displaying the popup box according to the display level relationship between the popup box message with the highest priority level and the currently displayed interface.
  5. The method according to claim 1, wherein after the loading a popup box message with a highest priority level into a popup box, and displaying the popup box, the method further comprises:
    receiving a request for accessing the popup box, the request being sent by a process communicating with the popup box;
    viewing a display state of the popup box; and
    determining, according to the display state of the popup box, whether to allow the process to access the popup box.
  6. The method according to claim 1, wherein after the loading a popup box message with a highest priority level into a popup box, and displaying the popup box, the method further comprises:
    recording a display state of the popup box; and
    monitoring the popup box in real time, and updating the display state of the popup box when it is detected that the state of the popup box changes.
  7. A terminal, comprising:
    a processor; and
    a memory, the memory having stored therein an apparatus for displaying a popup box message that is executed by a processor, the apparatus comprising:
    an acquisition module, configured to acquire a trigger condition of each popup box message that is not displayed;
    a setting module, configured to separately set, according to the trigger condition of each popup box message that is not displayed, a priority level of each popup box message that is not displayed, the setting module comprising:
    a first acquisition unit, configured to acquire, according to the trigger condition of each popup box message that is not displayed, at least one type parameter corresponding to each popup box message that is not displayed; and
    a setting unit, configured to separately set, according to the at least one type parameter  corresponding to each popup box message that is not displayed, a priority level of each popup box message that is not displayed separately; and
    a display module, configured to load a popup box message with a highest priority level into a popup box, and display the popup box.
  8. The terminal according to claim 7, wherein the first acquisition unit is configured to acquire, from a correspondence between trigger conditions and type parameters and according to the trigger condition of each popup box message that is not displayed, at least one type parameter corresponding to each popup box message that is not displayed.
  9. The terminal according to claim 7, wherein the setting unit comprises:
    an acquisition subunit, configured to acquire a corresponding priority level from a correspondence between type parameters and priority levels and according to at least one type parameter that corresponds to a first popup box message, the first popup box message being any popup box message among the popup box messages that are not displayed; and
    a setting subunit, configured to set the acquired priority level as a priority level of the first popup box message.
  10. The terminal according to claim 7, wherein the display module comprises:
    a second acquisition unit, configured to acquire a popup box message with a highest priority level, and a display level relationship between the popup box message with the highest priority level and a currently displayed interface;
    a creation and loading unit, configured to create a popup box, and load the popup box message into the created popup box; and
    a display unit, configured to display the popup box according to the display level relationship between the popup box message with the highest priority level and the currently displayed interface.
  11. The terminal according to claim 7, wherein the display module further comprises:
    a receiving unit, configured to receive a request for accessing the popup box, the request being sent by a process communicating with the popup box;
    a viewing unit, configured to view a display state of the popup box; and
    a determining unit, configured to determine, according to the display state of the popup box, whether to allow the process to access the popup box.
  12. The terminal according to claim 7, wherein the display module further comprises:
    a recording unit, configured to record a display state of the popup box; and
    an updating unit, configured to monitor the popup box in real time, and update the display state of the popup box when it is detected that the state of the popup box changes.
PCT/CN2015/082640 2014-06-30 2015-06-29 Method and apparatus for displaying popup box message WO2016000586A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/229,963 US10379696B2 (en) 2014-06-30 2016-08-05 Method and apparatus for displaying popup window message

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410306413.2A CN105278937B (en) 2014-06-30 2014-06-30 A kind of method and device showing pop-up box message
CN201410306413.2 2014-06-30

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/229,963 Continuation US10379696B2 (en) 2014-06-30 2016-08-05 Method and apparatus for displaying popup window message

Publications (1)

Publication Number Publication Date
WO2016000586A1 true WO2016000586A1 (en) 2016-01-07

Family

ID=55018448

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/082640 WO2016000586A1 (en) 2014-06-30 2015-06-29 Method and apparatus for displaying popup box message

Country Status (3)

Country Link
US (1) US10379696B2 (en)
CN (1) CN105278937B (en)
WO (1) WO2016000586A1 (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020601A (en) * 2016-05-16 2016-10-12 乐视控股(北京)有限公司 Interface display management method and device
CN106502804B (en) * 2016-10-31 2019-11-05 武汉斗鱼网络科技有限公司 A kind of pop-up methods of exhibiting and system based on queue structure
CN106648641A (en) * 2016-12-09 2017-05-10 武汉斗鱼网络科技有限公司 Automatic management method and system for multi-level pop-up boxes on iOS system device
US11140116B2 (en) 2017-01-31 2021-10-05 Samsung Electronics Co., Ltd Method for providing notification to uncover execution screen and electronic apparatus for performing same
CN107153545A (en) * 2017-05-09 2017-09-12 北京酷我科技有限公司 A kind of method that pop-up is managed collectively in iOS system
CN108958856A (en) * 2017-05-26 2018-12-07 武汉斗鱼网络科技有限公司 Control management method, storage medium, electronic equipment and the system of mobile terminal
US11699039B2 (en) * 2017-06-28 2023-07-11 Microsoft Technology Licensing, Llc Virtual assistant providing enhanced communication session services
US10585991B2 (en) 2017-06-29 2020-03-10 Microsoft Technology Licensing, Llc Virtual assistant for generating personalized responses within a communication session
CN107395892B (en) * 2017-08-08 2020-06-23 奇安信科技集团股份有限公司 Instant message processing method and device
CN110968382A (en) * 2018-09-30 2020-04-07 武汉斗鱼网络科技有限公司 Method, system, electronic device and medium for updating view
CN112241297B (en) * 2019-07-18 2024-05-14 上海幻电信息科技有限公司 Data display method, system, computer equipment and readable storage medium
CN112449247B (en) * 2019-08-30 2023-05-05 青岛海信传媒网络技术有限公司 Data refreshing method and display device
CN111016650B (en) * 2019-11-29 2021-09-10 东风商用车有限公司 Combined instrument interface fault display method
CN111552532A (en) * 2020-04-23 2020-08-18 北京达佳互联信息技术有限公司 Popup window control method and device, electronic equipment and storage medium
CN112130949B (en) * 2020-09-27 2024-07-12 北京达佳互联信息技术有限公司 Prompt resource display method and device and computer readable storage medium
CN113407272A (en) * 2021-06-03 2021-09-17 维沃移动通信有限公司 Display method and device
CN115562894A (en) * 2022-12-07 2023-01-03 云账户技术(天津)有限公司 Message processing method and device, electronic equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060224944A1 (en) * 2005-04-01 2006-10-05 Samsung Electronics Co., Ltd. Method of displaying an event in a mobile terminal and mobile terminal implementing the same
CN101441559A (en) * 2007-11-19 2009-05-27 盛趣信息技术(上海)有限公司 Method and system for implementing window local modal in game
CN102147736A (en) * 2010-02-10 2011-08-10 华为技术有限公司 Method and device for installing software
US20110283226A1 (en) * 2010-05-15 2011-11-17 International Business Machines Corporation Window display management in a graphical user interface

Family Cites Families (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6239796B1 (en) * 1998-06-09 2001-05-29 Agilent Technologies, Inc. Apparatus and method for controlling dialog box display and system interactivity in a signal measurement system
US20020057285A1 (en) * 2000-08-04 2002-05-16 Nicholas James J. Non-intrusive interactive notification system and method
US7155729B1 (en) * 2000-03-28 2006-12-26 Microsoft Corporation Method and system for displaying transient notifications
US20010054035A1 (en) * 2000-04-01 2001-12-20 Lee Soo Sung System and method for searching target web site by employing internet portal site having icons arranged according to frequency number of use
US20060224985A1 (en) * 2005-04-01 2006-10-05 Samsung Electronics Co., Ltd. Method of displaying an event in a mobile terminal and mobile terminal implementing the same
US8004417B2 (en) * 2005-10-28 2011-08-23 Hewlett-Packard Development Company, L.P. Computer device output setting indicator
CA2620730C (en) * 2007-02-09 2018-10-23 Anthony Keith Randell Method and system for managing a plurality of processes or tasks
US8229085B2 (en) * 2007-07-31 2012-07-24 At&T Intellectual Property I, L.P. Automatic message management utilizing speech analytics
US20090150507A1 (en) * 2007-12-07 2009-06-11 Yahoo! Inc. System and method for prioritizing delivery of communications via different communication channels
US8269620B2 (en) * 2008-12-19 2012-09-18 Honeywell Internatonal Inc. Alarm trend summary display system and method
EP2226787B1 (en) * 2009-03-03 2016-12-07 Lg Electronics Inc. Mobile terminal and method for displaying data in mobile terminal
CN101674372A (en) * 2009-10-15 2010-03-17 中兴通讯股份有限公司 Mobile terminal and message display method thereof
KR101694159B1 (en) * 2010-04-21 2017-01-09 엘지전자 주식회사 Augmented Remote Controller and Method of Operating the Same
US8527198B2 (en) * 2010-12-23 2013-09-03 Honda Motor Co., Ltd. Predictive traffic warning and suggestive rerouting system and method
US9503415B2 (en) * 2011-01-27 2016-11-22 T-Mobile Usa, Inc. Unified notification platform
CN103051516B (en) * 2011-10-17 2016-04-13 腾讯科技(深圳)有限公司 A kind of message prompt method of instant communication client and device
CN103188314B (en) * 2011-12-30 2018-07-27 上海博泰悦臻电子设备制造有限公司 Vehicle-mounted message system
US20140189585A1 (en) * 2012-12-28 2014-07-03 Caterpillar Inc. Information Display System for a Machine
JP6393325B2 (en) * 2013-10-30 2018-09-19 アップル インコーポレイテッドApple Inc. Display related user interface objects

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060224944A1 (en) * 2005-04-01 2006-10-05 Samsung Electronics Co., Ltd. Method of displaying an event in a mobile terminal and mobile terminal implementing the same
CN101441559A (en) * 2007-11-19 2009-05-27 盛趣信息技术(上海)有限公司 Method and system for implementing window local modal in game
CN102147736A (en) * 2010-02-10 2011-08-10 华为技术有限公司 Method and device for installing software
US20110283226A1 (en) * 2010-05-15 2011-11-17 International Business Machines Corporation Window display management in a graphical user interface

Also Published As

Publication number Publication date
CN105278937B (en) 2019-07-05
US10379696B2 (en) 2019-08-13
CN105278937A (en) 2016-01-27
US20160342285A1 (en) 2016-11-24

Similar Documents

Publication Publication Date Title
US10379696B2 (en) Method and apparatus for displaying popup window message
US10708649B2 (en) Method, apparatus and system for displaying bullet screen information
US10635449B2 (en) Method and apparatus for running game client
US20220244814A1 (en) Method for displaying multiple application windows by mobile terminal, and mobile terminal
CN104518953B (en) Method for deleting message, instant communication terminal and system
JP6492184B2 (en) Method, device, and system for managing information recommendations
US10171640B2 (en) Method, apparatus, and system for displaying message in mobile terminal
WO2015062413A1 (en) Terminal account managing method and device cross-reference to related applications
WO2015078342A1 (en) Method for acquiring memory information, and terminal
US9977651B2 (en) Mobile terminal and image processing method thereof
US20190196917A1 (en) Data backup method, storage medium, and terminal
CN115668123A (en) Audio resource allocation method and device and electronic equipment
US11150913B2 (en) Method, device, and terminal for accelerating startup of application
EP3582450A1 (en) Message notification method and terminal
EP3129883B1 (en) Method and apparatus for repairing dynamic link library file
CN105278942B (en) Component management method and device
US20160119695A1 (en) Method, apparatus, and system for sending and playing multimedia information
EP2869233A1 (en) Method, device and terminal for protecting application program
US20160307216A1 (en) Electronic information collection method and apparatus
US20140380198A1 (en) Method, device, and terminal apparatus for processing session based on gesture
US20140310711A1 (en) Method for determining performance of process of application and computer system
CN109308164B (en) System migration method and device
WO2015078286A1 (en) Method and device for managing spam message
US10248841B2 (en) Method of protecting an image based on face recognition, and smart terminal
US9913055B2 (en) Playback request processing method and apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15814318

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 09.06.2017)

122 Ep: pct application non-entry in european phase

Ref document number: 15814318

Country of ref document: EP

Kind code of ref document: A1