CN113552985A - Message processing method and device, electronic equipment and storage medium - Google Patents

Message processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113552985A
CN113552985A CN202110892097.1A CN202110892097A CN113552985A CN 113552985 A CN113552985 A CN 113552985A CN 202110892097 A CN202110892097 A CN 202110892097A CN 113552985 A CN113552985 A CN 113552985A
Authority
CN
China
Prior art keywords
message prompt
message
prompt identifier
identifier
user interface
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202110892097.1A
Other languages
Chinese (zh)
Inventor
张纾菡
卢油陵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202110892097.1A priority Critical patent/CN113552985A/en
Publication of CN113552985A publication Critical patent/CN113552985A/en
Pending legal-status Critical Current

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
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • 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

Landscapes

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

Abstract

The embodiment of the invention provides a message processing method, a message processing device, electronic equipment and a storage medium, wherein a graphical user interface is provided through a terminal, and the method comprises the following steps: when detecting that the first application program runs in the foreground, if detecting a notification message of a second application program running in the background, displaying a message prompt identifier on the graphical user interface; and responding to the interactive operation aiming at the message prompt identifier, switching the second application program to foreground operation, or clearing the message prompt identifier on the graphical user interface. According to the embodiment of the invention, when the first application program runs in the foreground, the notification message of the second application program is prompted through the message prompt identifier, so that a user can obtain message prompts from other application programs, the message prompts cannot be interfered by frequent popup windows, and the user experience effect is improved.

Description

Message processing method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of terminals, in particular to a message processing method, a message processing device, electronic equipment and a storage medium.
Background
With the continuous development of internet technology, terminals such as smart phones, personal computers, tablet computers and the like are widely used, application programs with functions of photographing, games, social contact, office work and the like are continuously developed in order to meet various requirements of people, and therefore the lives of people are more colorful.
Usually, only one application program can be operated in the foreground on the terminal, other application programs can be operated in the background, at the moment, the user can only interact with the application program operated in the foreground, if the other application programs have messages, a popup window is arranged on a notification bar of the terminal to remind the messages, but in some cases, the user does not want to be disturbed when interacting with the application program operated in the foreground. Taking a game application program as an example, a user is playing in a game in one office, because both hands are operated most of the time, if a popup appears, the popup cannot be timely slid off, and the game is very troubling for the user.
Therefore, when the application program runs in the foreground, the message prompt from other applications can be acquired, the frequent popup window interference can be avoided, and the user experience effect is improved.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a message processing method and a corresponding message processing apparatus, electronic device, storage medium that overcome or at least partially solve the above problems.
In order to solve the above problem, an embodiment of the present invention discloses a message processing method, which provides a graphical user interface through a terminal, and the method includes:
when detecting that the first application program runs in the foreground, if detecting a notification message of a second application program running in the background, displaying a message prompt identifier on the graphical user interface;
and responding to the interactive operation aiming at the message prompt identifier, switching the second application program to foreground operation, or clearing the message prompt identifier on the graphical user interface.
Optionally, the first application is a game application.
Optionally, displaying a message prompt identifier on the graphical user interface, including:
acquiring gravity sensing information sensed by the terminal through a gravity sensor;
determining a falling track of a message prompt identifier according to the gravity sensing information;
and displaying the message prompt identification on the graphical user interface according to the falling track.
Optionally, the displaying the message prompt identifier on the graphical user interface according to the drop trajectory includes:
displaying a message prompt identifier at the starting position of the graphical user interface;
and displaying the message prompt mark falling from the starting position to the falling point position according to the falling track in the graphical user interface.
Optionally, the method further comprises: determining a location of the message prompt identifier at the graphical user interface;
determining display parameters of the message prompt identifier according to the position;
and updating the display effect of the message prompt identifier according to the display parameters.
Optionally, the determining, according to the position, a display parameter of the message prompt identifier includes:
when the position is not the drop point position, determining that the display parameter of the message prompt identifier is a first display parameter; the display effect of the first display parameter is an identifier matched with the second application program;
and when the position is the drop point position, determining that the display parameter of the message prompt identifier is a second display parameter, wherein the display effect of the second display parameter is an identifier representing the number of the notification messages.
Optionally, the determining, according to the position, a display parameter of the message prompt identifier further includes: if an existing message prompt identifier is displayed at the location of the drop point, merging the existing message prompt identifier after the message prompt identifier falls into the location of the drop point;
and determining a third display parameter of the existing message prompt identifier, and updating the display effect of the existing message prompt identifier according to the third display parameter, wherein the display effect of the third display parameter is an identifier representing the number of all notification messages.
Optionally, the method further comprises: after the message prompt identification falls into the drop point position, if no interactive operation aiming at the message prompt identification is detected within a specified time, moving the message prompt identification from the drop point position to a preset edge position; wherein the message prompt identifier is partially displayed at the edge position.
Optionally, the method further comprises: after the message prompt identifier falls into the drop point position, if no interactive operation aiming at the message prompt identifier is detected within a specified time, the transparency of the message prompt identifier is adjusted from a first transparency to a second transparency, and the first transparency is smaller than the second transparency.
Optionally, the responding to the interactive operation for the message prompt identifier, switching the second application program to foreground operation, or clearing the message prompt identifier on the graphical user interface includes:
responding to the pressing operation aiming at the message prompt mark, and displaying a popup window on the graphical user interface, wherein the popup window comprises a mark matched with the second application program and a clearing control;
responding to the dragging operation of dragging the message prompt identifier to the identifier corresponding to the second application program, and switching the second application program to foreground operation; alternatively, the first and second electrodes may be,
and responding to the dragging operation of dragging the message prompt identification to the clearing control, and clearing the message prompt identification on the graphical user interface.
Optionally, displaying a message prompt identifier on the graphical user interface, including:
and displaying a message prompt identifier in a floating manner at the designated position of the graphical user interface.
The embodiment of the invention also discloses a message processing device, which provides a graphical user interface through a terminal, and the device comprises:
the display module is used for displaying a message prompt identifier on the graphical user interface if detecting the notification message of a second application program running in the background when detecting that the first application program runs in the foreground;
and the interaction module is used for responding to the interaction operation aiming at the message prompt identifier, switching the second application program to foreground operation, or clearing the message prompt identifier on the graphical user interface.
Optionally, the first application is a game application.
Optionally, the display module is configured to acquire gravity sensing information sensed by the terminal through a gravity sensor; determining a falling track of a message prompt identifier according to the gravity sensing information; and displaying the message prompt identification on the graphical user interface according to the falling track.
Optionally, the falling trajectory includes a start position and a falling point position, and the display module is configured to display a message prompt identifier at the start position of the graphical user interface; and displaying the message prompt mark falling from the starting position to the falling point position according to the falling track in the graphical user interface.
Optionally, the display module is configured to determine a location of the message prompt identifier on the graphical user interface; determining display parameters of the message prompt identifier according to the position; and updating the display effect of the message prompt identifier according to the display parameters.
Optionally, the display module is configured to determine that a display parameter of the message prompt identifier is a first display parameter when the location is not the drop point location; the display effect of the first display parameter is an identifier matched with the second application program; and when the position is the drop point position, determining that the display parameter of the message prompt identifier is a second display parameter, wherein the display effect of the second display parameter is an identifier representing the number of the notification messages.
Optionally, the display module is configured to, if an existing message prompt identifier is displayed at the drop point location, merge the existing message prompt identifier into the existing message prompt identifier after the message prompt identifier falls into the drop point location; and determining a third display parameter of the existing message prompt identifier, and updating the display effect of the existing message prompt identifier according to the third display parameter, wherein the display effect of the third display parameter is an identifier representing the number of all notification messages.
Optionally, the apparatus further comprises: the position moving module is used for moving the message prompt identifier from the position of the drop point to a preset edge position if the interactive operation aiming at the message prompt identifier is not detected within the specified time after the message prompt identifier falls into the position of the drop point; wherein the message prompt identifier is partially displayed at the edge position.
Optionally, the apparatus further comprises: and the transparency adjusting module is used for adjusting the transparency of the message prompt identifier from a first transparency to a second transparency if no interactive operation aiming at the message prompt identifier is detected within a specified time after the message prompt identifier falls into the position of the falling point, wherein the first transparency is smaller than the second transparency.
Optionally, the interaction module is configured to display a popup window on the graphical user interface in response to a pressing operation for the message prompt identifier, where the popup window includes an identifier matched with the second application and a clearing control; responding to the dragging operation of dragging the message prompt identifier to the identifier corresponding to the second application program, and switching the second application program to foreground operation; or, in response to the dragging operation of dragging the message prompt identifier to the clearing control, clearing the message prompt identifier on the graphical user interface.
Optionally, the display module is configured to display a message prompt identifier in a floating manner at a specified position of the graphical user interface.
The embodiment of the invention discloses electronic equipment, which comprises a processor, a memory and a computer program which is stored on the memory and can run on the processor, wherein when the computer program is executed by the processor, the steps of the message processing method are realized.
The embodiment of the invention discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps of the message processing method are realized.
The embodiment of the invention has the following advantages:
in the embodiment of the present invention, when it is detected that the first application program runs in the foreground, if a notification message of the second application program running in the background is detected, a message prompt identifier is displayed on the graphical user interface, and in response to an interactive operation for the message prompt identifier, the second application program may be switched to the foreground to run to enter the second application program to view the message, or the message prompt identifier may be hidden to avoid the message prompt identifier from affecting the interaction between the user and the first application program. According to the embodiment of the invention, when the first application program runs in the foreground, the notification message of the second application program is prompted through the message prompt identifier, so that a user can obtain message prompts from other application programs, the message prompts cannot be interfered by frequent popup windows, and the user experience effect is improved.
Drawings
Fig. 1 is a schematic view of a notification manner setting of a notification message of an iOS system;
fig. 2 is a schematic diagram illustrating a notification mode setting of a notification message of an Android system;
FIG. 3 is a flow chart of the steps of one message processing method embodiment of the present invention;
FIG. 4 is one of the schematic diagrams of a message prompt identifier of the present invention;
FIG. 5 is a flowchart illustrating the steps of a method for displaying a message alert indicator based on gravity-sensing information in accordance with the present invention;
FIG. 6 is a second schematic diagram of a message prompt identifier according to the present invention;
FIG. 7 is a third schematic diagram of a message prompt identifier according to the present invention;
FIG. 8 is a fourth illustration of a message prompt identifier of the present invention;
FIG. 9 is a fifth illustration of a message prompt identifier of the present invention;
fig. 10 is a block diagram of a message processing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The current common message prompt setting is mainly divided into two schemes. The first scheme is as follows: referring to fig. 1, it is a schematic diagram of a notification mode setting of a notification message of an iOS system, which modifies the notification mode (close, lock screen, notification center, and banner) of the notification message of the application program by setting; the second scheme is as follows: referring to fig. 2, a schematic diagram of a notification mode setting of a notification message of an Android system is shown, and the notification message may be temporarily masked by directly modifying the notification mode into a do-not-disturb mode.
However, the drawbacks of the two solutions described above are also very evident, in particular: 1. the first scheme needs to modify the application programs one by one, has more steps and is more rigid; 2. the second scheme can shield all notification messages for a period of time and is not flexible enough; 3. both schemes cannot acquire message reminders from other application programs under a specific scene, and cannot be interfered by frequent popup.
In view of the above problems, an embodiment of the present invention provides a message processing method, which abandons the conventional manner of sending a notification message in a notification bar by popping up, but when an application program runs in a foreground, if a notification message of another application program is detected, a message prompt identifier is used for prompting, so that not only can a message prompt from the other application program be obtained, but also the message prompt cannot be interfered by frequent pop-up.
The message processing method in the embodiment of the invention can be operated in a terminal device or a server. The terminal device may be a local terminal device. When the message processing method is operated as a server, the message processing method can be a cloud game.
In an alternative embodiment, cloud gaming refers to a cloud computing-based gaming mode. In the running mode of the cloud game, the running main body of the game program and the game picture presenting main body are separated, the storage and the running of the message processing method are completed on a cloud game server, and the cloud game client is used for receiving and sending data and presenting the game picture, for example, the cloud game client can be a display device with a data transmission function close to a user side, such as a mobile terminal, a television, a computer, a palm computer and the like; however, the terminal device performing the game data processing is a cloud game server in the cloud. When a game is played, a player operates the cloud game client to send an operation instruction to the cloud game server, the cloud game server runs the game according to the operation instruction, data such as game pictures and the like are encoded and compressed, the data are returned to the cloud game client through a network, and finally the data are decoded through the cloud game client and the game pictures are output.
In an alternative embodiment, the terminal device may be a local terminal device. The local terminal device stores a game program and is used for presenting a game screen. The local terminal device is used for interacting with the player through a graphical user interface, namely, a game program is downloaded and installed and operated through an electronic device conventionally. The manner in which the local terminal device provides the graphical user interface to the player may include a variety of ways, for example, it may be rendered for display on a display screen of the terminal or provided to the player through holographic projection. For example, the local terminal device may include a display screen for presenting a graphical user interface including a game screen and a processor for running the game, generating the graphical user interface, and controlling display of the graphical user interface on the display screen.
Referring to fig. 3, a flowchart illustrating steps of an embodiment of a message processing method according to the present invention is shown, where a graphical user interface is provided by a terminal, and the method specifically includes the following steps:
step 301, when it is detected that the first application program runs in the foreground, if a notification message of the second application program running in the background is detected, displaying a message prompt identifier on the graphical user interface.
The application program can be a game application program, or other application programs such as a chat application program and a shopping application program, when the application program is run on the terminal, a graphical user interface can be rendered on a touch display of the terminal, and a user can perform interactive operation through the graphical user interface. In particular, the first application may be a game application, the second application may be a chat application or a shopping application, and the first application and the second application may be one or more.
The application program running in the foreground can be interactively operated with a user through the graphical user interface, the application program running in the background cannot be displayed on the graphical user interface and cannot be interactively operated with the user, and the user can be informed by sending the notification message in time after the message is obtained in the background. As a specific example, the first application may be a game application and the second application may be a chat application, and the user may be notified by a notification message sent if a new chat message is detected as being received on the chat application by performing a competition with the game application while the game application is running in the foreground.
Wherein the message prompt identification may be an identification, such as a message ball. For example, referring to FIG. 4, if a chat application running in the background has a new message while the game application is running in the foreground, a message ball is displayed on the graphical user interface to prompt the user that the chat application running in the background has a new message. The display position of the message ball can be a position close to the edge, so that the message ball is prevented from blocking important game scenes on the graphical user interface, such as a self game role or an enemy game role, and the message ball is prevented from being touched by mistake when a rocker or a skill key is operated. Those skilled in the art will appreciate that the specific manner of message prompt identification is not limited to the form of message ball shown in fig. 4, but may be in other shapes or forms, such as rectangle, triangle, ellipse, etc.
Step 302, responding to the interactive operation aiming at the message prompt identifier, switching the second application program to foreground operation, or clearing the message prompt identifier on the graphical user interface.
The interactive operation includes, but is not limited to, a click operation, a press operation, a drag operation, a slide operation, and other operations.
Specifically, in response to the interactive operation for the message prompt identifier, the second application program may be switched to foreground operation to check a new message of the second application program, and at this time, the first application program may be switched to background operation or may continue to be operated in foreground. In addition, in response to the interactive operation for the message prompt identifier, the message prompt identifier displayed on the graphical user interface may be cleared, i.e., not displayed on the graphical user interface.
In the message processing method, when the first application program is detected to run in the foreground, if the notification message of the second application program running in the background is detected, a message prompt identifier is displayed on a graphical user interface, and in response to the interactive operation aiming at the message prompt identifier, the second application program can be switched to run in the foreground to enter the second application program to view the message, or the message prompt identifier is hidden to avoid the message prompt identifier from influencing the interaction between the user and the first application program. According to the embodiment of the invention, when the first application program runs in the foreground, the notification message of the second application program is prompted through the message prompt identifier, so that a user can obtain message prompts from other application programs, the message prompts cannot be interfered by frequent popup windows, and the user experience effect is improved.
In an exemplary embodiment, referring to fig. 5, the step 301 of displaying a message prompt identifier on the graphical user interface may include the following steps:
501, acquiring gravity sensing information sensed by the terminal through a gravity sensor;
502, determining a falling track of a message prompt identifier according to the gravity sensing information;
and 503, displaying the message prompt identifier on the graphical user interface according to the falling track.
The gravity sensor, also called a gravity sensor, can complete the conversion from gravity change to an electric signal, and further obtain gravity sensing information. Currently, most smart phones and tablet computers are internally provided with gravity sensors, such as iOS series products and Android series products. Specifically, the change of the tilt angle of the terminal, such as landscape screen, portrait screen, or tilt, can be determined through the gravity sensing information.
Specifically, the falling trajectory of the message prompt identifier may be determined according to the gravity sensing information, so as to control the message prompt identifier to be displayed on the graphical user interface according to the falling trajectory. For example, if it is determined that the terminal is a vertical screen at this time according to the gravity sensing information, the falling trajectory may be that the message prompt identifier vertically falls from the upper right of the vertical screen to the lower right of the vertical screen (or from the upper left to the lower left). In addition, if the terminal is determined to be the reverse vertical screen according to the gravity sensing information, the falling track can vertically fall from the position of the message prompt identifier before the change on the graphical user interface to the lower right of the reverse vertical screen, so that the message prompt identifier can not shield important contents in the graphical user interface, such as a rocker or a skill button in a game scene, and meanwhile, the terminal has a certain interest. Further, the falling speed of the message prompt mark can be controlled according to the inclination angle of the terminal. For example, the larger the included angle between the plane where the terminal screen is located and the horizontal plane is, the faster the falling speed of the message prompt identifier is; the larger the included angle between the plane where the terminal screen is located and the horizontal plane is, the faster the falling speed of the message prompt identifier is. Therefore, the player can control the falling speed of the message prompt mark by controlling the inclination angle of the terminal, and if the message prompt mark is required to fall quickly, the terminal is only required to be perpendicular to the horizontal plane as much as possible.
In an exemplary embodiment, the falling trajectory includes a start position and a falling point position, and the step 503 of displaying the message prompt identifier on the graphical user interface according to the falling trajectory may include the following steps:
displaying a message prompt identifier at the starting position of the graphical user interface;
and displaying the message prompt mark falling from the starting position to the falling point position according to the falling track in the graphical user interface.
The starting position is a position where the message prompt identifier is initially displayed on the graphical user interface, or the starting position may be a position where the message prompt identifier is displayed on the graphical user interface after determining that the display mode (i.e., the landscape mode or the portrait mode) of the terminal is changed by the user according to the gravity sensing information. The drop point location is the location where the message alert identifier last stayed on the graphical user interface according to the drop trajectory. The falling track is the moving track of the message prompt mark from the starting position to the falling point position.
Referring to fig. 6, the start position of the message prompt identifier may be in the upper right corner of the graphical user interface, the drop point position may be in the lower right corner of the graphical user interface, the dotted line is a drop trajectory, and the message prompt identifier may drop from the upper right corner to the lower right corner of the graphical user interface.
In an exemplary embodiment, the step 301 of displaying a message prompt identifier on the graphical user interface may further include the following steps:
determining a location of the message prompt identifier at the graphical user interface;
determining display parameters of the message prompt identifier according to the position;
and updating the display effect of the message prompt identifier according to the display parameters.
Specifically, the current position of the message prompt identifier on the graphical user interface may be determined in real time, for example, whether the position of the message prompt identifier is at the drop point position, and then the display parameter of the message prompt identifier is determined according to the position, so that the display effect of the message prompt identifier is updated according to the display parameter, and the user can determine some information related to the second application program, for example, what application program message, the number of notification messages of the application program, and the like, by observing the display effect of the message prompt identifier.
In an exemplary embodiment, the determining the display parameter of the message prompt identifier according to the position may include the following steps:
when the position is not the drop point position, determining that the display parameter of the message prompt identifier is a first display parameter; the display effect of the first display parameter is an identifier matched with the second application program;
and when the position is the drop point position, determining that the display parameter of the message prompt identifier is a second display parameter, wherein the display effect of the second display parameter is an identifier representing the number of the notification messages.
Specifically, if the position of the message prompt identifier is not the drop point position, it indicates that the message prompt identifier is still in the process of falling according to the falling trajectory, and the display parameter of the message prompt identifier at this time may be a first display parameter, where the first display parameter is an identifier that displays the message prompt identifier as matching the second application program, for example, referring to the upper right of fig. 7, assuming that the second application program is a WeChat, the first display parameter is an identifier that displays the message prompt identifier as matching the WeChat.
Specifically, if the position of the message prompt identifier is at the drop point position, it indicates that the message prompt identifier has fallen to the drop point position according to the drop trajectory, and the display parameter of the message prompt identifier may be a second display parameter, where the second display parameter is an identifier that displays the message prompt identifier as the number of notification messages, for example, also assuming that the second application is a WeChat, the second display parameter is an identifier that displays the message prompt identifier as the number of WeChat received messages, for example, referring to the bottom right of fig. 7, where the WeChat received 25 messages, and the message prompt identifier may be displayed as an identifier with a number 25 in the middle.
In an exemplary embodiment, the determining the display parameter of the message prompt identifier according to the position may further include:
if an existing message prompt identifier is displayed at the location of the drop point, merging the existing message prompt identifier after the message prompt identifier falls into the location of the drop point;
and determining a third display parameter of the existing message prompt identifier, and updating the display effect of the existing message prompt identifier according to the third display parameter, wherein the display effect of the third display parameter is an identifier representing the number of all notification messages.
Specifically, the second application may send the notification message multiple times, so that an existing message prompt identifier may already be displayed at the drop point position on the graphical user interface, in this case, the message prompt identifier may first drop to the drop point position according to the drop trajectory, and then the message prompt identifier is incorporated into the existing message prompt identifier, so as to avoid that the important content in the graphical user interface is blocked by the excessive message prompt identifier.
In the embodiment of the present invention, after the message prompt identifier falls into the drop point position, the display parameter of the existing message prompt identifier at this time may be a third display parameter, where the third display parameter is an identifier that displays the message prompt identifier as the number of all notification messages, for example, assuming that the number of push messages displayed by the existing message prompt identifier is 20, and then a message prompt identifier falls into the drop point position, after the message prompt identifier is cleared, the number of push messages displayed by the existing message prompt identifier is updated to 21. The player can be reminded of the new notification message, and the vibration effect of the terminal can be accompanied
In an exemplary embodiment, the method may further include the steps of:
after the message prompt identification falls into the drop point position, if no interactive operation aiming at the message prompt identification is detected within a specified time, moving the message prompt identification from the drop point position to a preset edge position; wherein the message prompt identifier is partially displayed at the edge position.
In the embodiment of the invention, in order to further ensure that the message prompt identifier does not shield important contents in the graphical user interface, a non-operation rule is set, and the display position of the message prompt identifier in the graphical user interface is adjusted according to the non-operation rule.
Specifically, the nonoperational rule may be that after the message prompt identifier falls into the drop point position, if no user interaction operation on the message prompt identifier, such as a click operation or a drag operation, is detected at a specified time, for example, 3s (seconds), the message prompt identifier may be moved from the drop point position to the edge position, so that the message prompt identifier can be only partially displayed, for example, only 70% displayed on the graphical user interface, as shown in fig. 8. In addition to sinking the portion of the message prompt identifier to the bottom of the graphical user interface, the portion of the message prompt identifier may also be moved outside of the graphical user interface.
Of course, if the interactive operation of the user on the message prompt identifier, such as a click operation, is detected, the message prompt identifier may also be moved from the edge position to the drop point position, so that the user can conveniently view and operate the message prompt identifier.
In an exemplary embodiment, the method may further include the steps of:
after the message prompt identifier falls into the drop point position, if no interactive operation aiming at the message prompt identifier is detected within a specified time, the transparency of the message prompt identifier is adjusted from a first transparency to a second transparency, and the first transparency is smaller than the second transparency.
In the embodiment of the invention, in order to further ensure that the message prompt identifier does not shield important contents in the graphical user interface, a display rule is set, and the transparency of the message prompt identifier in the graphical user interface is adjusted according to the display rule.
Specifically, after the message prompt identifier falls into the drop point position or the edge position, and a specified time is reached, for example, 3s (seconds), no user interaction operation on the message prompt identifier, for example, a click operation or a drag operation is detected, the message prompt identifier may be adjusted from the first transparency to the second transparency, and the first transparency is less than the second transparency, for example, the first transparency is 0%, and the second transparency is 50%, so that the user can view content on the graphical user interface through the message prompt identifier.
In the embodiment of the present invention, in order to prompt the user in time when detecting that the second application has a new message, if the transparency of the message prompt identifier has been adjusted to 50%, if the notification message of the second application is detected again, the transparency of the message prompt identifier may be adjusted from 50% to 0%, and then after waiting for a specified time, for example, 2s (seconds), no interaction operation of the user on the message prompt identifier is detected, the transparency of the message prompt identifier may be adjusted to 50% again.
Of course, if the user interaction operation on the message prompt identifier, such as a click operation, is detected, the transparency of the message prompt identifier may also be adjusted from 50% to 0%.
In an exemplary embodiment, the step 302, responding to the interactive operation for the message prompt identifier, switching the second application to foreground operation, or clearing the message prompt identifier on the graphical user interface, may include the following steps:
responding to the pressing operation aiming at the message prompt mark, and displaying a popup window on the graphical user interface, wherein the popup window comprises a mark matched with the second application program and a clearing control;
responding to the dragging operation of dragging the message prompt identifier to the identifier corresponding to the second application program, and switching the second application program to foreground operation; alternatively, the first and second electrodes may be,
and responding to the dragging operation of dragging the message prompt identification to the clearing control, and clearing the message prompt identification on the graphical user interface.
In the embodiment of the invention, an operation rule is also set, and a new message of the second application program is checked or a message prompt identifier on a graphical user interface is cleared according to the operation rule.
Specifically, when a pressing operation that the user presses the message prompt identifier for a long time is detected, the message prompt identifier may be activated in response to the pressing operation, and then a popup may be displayed on the graphical user interface, where the popup includes an identifier and a clearing control that are matched with the second application program, and specifically, referring to fig. 9, assuming that the second application program has a WeChat, a music player, and a dictionary, identifiers corresponding to the three application programs may be displayed on the popup, so that the user may view information of all second application programs that have new messages. Of course, in practice, the second application program may not be displayed in a classified manner by the corresponding identifier, but only one preset identifier is displayed, which is not required to be limited by the embodiment of the present invention.
As a specific example, referring to fig. 9, if a drag operation of dragging the message prompt identifier to an identifier corresponding to the second application is detected, the second application corresponding to the identifier may be switched to run in the foreground, so that the user can further view a new message of the second application, for example, assuming that the message prompt identifier is dragged to the drag operation of the identifier corresponding to the music player, the music player may be switched to run in the foreground.
As another specific example, referring to fig. 9, if a drag operation of dragging a message prompt identifier to a clearing control "delete" is detected, all message prompts in the message prompt identifier may be cleared, for example, the number of messages does not inherit data, and the corresponding message prompt identifier is also cleared on the graphical user interface; and reappearing until a new push of the second application program is available.
In another exemplary embodiment, the step 302 of displaying a message prompt identifier on the graphical user interface may include the steps of:
and displaying a message prompt identifier in a floating manner at the designated position of the graphical user interface.
In the embodiment of the present invention, in addition to controlling the message prompt identifier to be displayed on the graphical user interface according to the falling trajectory through the gravity sensing information, a message prompt identifier may be displayed in a floating manner at a designated position of the graphical user interface, for example, an upper right corner or a lower right corner, to prompt the user that the second application program has a new message.
In summary, by using the embodiment of the present invention, the second application program is prompted to have a new message through the message prompt identifier, so that the interruption feeling of frequent message pushing is avoided, and the user can interact with the first application program more intensively. In addition, after the interactive operation on the message prompt identification is detected, the identification corresponding to the second application program can be displayed in a popup window to serve as an entrance, so that a user can conveniently enter the second application program through the entrance to view a new message, and the user experience is improved.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 10, a block diagram of a message processing apparatus according to an embodiment of the present invention is shown, where a graphical user interface is provided by a terminal, and the apparatus may specifically include the following modules:
a display module 1001, configured to, when it is detected that a first application runs in a foreground, display a message prompt identifier on the graphical user interface if a notification message of a second application running in a background is detected;
the interaction module 1002 is configured to respond to an interaction operation for the message prompt identifier, switch the second application program to foreground operation, or clear the message prompt identifier on the graphical user interface.
In an exemplary embodiment, the first application is a game application.
In an exemplary embodiment, the display module 1001 is configured to obtain gravity sensing information sensed by a gravity sensor through the terminal; determining a falling track of a message prompt identifier according to the gravity sensing information; and displaying the message prompt identification on the graphical user interface according to the falling track.
In an exemplary embodiment, the falling trajectory includes a start position and a falling point position, and the display module 1001 is configured to display a message prompt identifier at the start position of the graphical user interface; and displaying the message prompt mark falling from the starting position to the falling point position according to the falling track in the graphical user interface.
In an exemplary embodiment, the display module 1001 is configured to determine a location of the message prompt identifier on the graphical user interface; determining display parameters of the message prompt identifier according to the position; and updating the display effect of the message prompt identifier according to the display parameters.
In an exemplary embodiment, the display module 1001 is configured to determine, when the location is not the drop point location, that a display parameter of the message prompt identifier is a first display parameter; the display effect of the first display parameter is an identifier matched with the second application program; and when the position is the drop point position, determining that the display parameter of the message prompt identifier is a second display parameter, wherein the display effect of the second display parameter is an identifier representing the number of the notification messages.
In an exemplary embodiment, the display module 1001 is configured to, if an existing message prompt identifier is displayed at the drop point location, merge the existing message prompt identifier into the existing message prompt identifier after the message prompt identifier falls into the drop point location; and determining a third display parameter of the existing message prompt identifier, and updating the display effect of the existing message prompt identifier according to the third display parameter, wherein the display effect of the third display parameter is an identifier representing the number of all notification messages.
In an exemplary embodiment, the apparatus further comprises: the position moving module is used for moving the message prompt identifier from the position of the drop point to a preset edge position if the interactive operation aiming at the message prompt identifier is not detected within the specified time after the message prompt identifier falls into the position of the drop point; wherein the message prompt identifier is partially displayed at the edge position.
In an exemplary embodiment, the apparatus further comprises: and the transparency adjusting module is used for adjusting the transparency of the message prompt identifier from a first transparency to a second transparency if no interactive operation aiming at the message prompt identifier is detected within a specified time after the message prompt identifier falls into the position of the falling point, wherein the first transparency is smaller than the second transparency.
In an exemplary embodiment, the interaction module 1002 is configured to display a popup window on the graphical user interface in response to a pressing operation for the message prompt identifier, where the popup window includes an identifier matching the second application and a clear control; responding to the dragging operation of dragging the message prompt identifier to the identifier corresponding to the second application program, and switching the second application program to foreground operation; or, in response to the dragging operation of dragging the message prompt identifier to the clearing control, clearing the message prompt identifier on the graphical user interface.
In an exemplary embodiment, the display module 1001 is configured to hover and display a message prompt identifier at a designated position of the graphical user interface.
In summary, the embodiment of the present invention can prompt the notification message of the second application program through the message prompt identifier when the first application program runs in the foreground, so that the user can obtain the message prompt from other application programs, and the user experience effect is improved without being interfered by frequent popup.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiment of the invention discloses electronic equipment, which comprises a processor, a memory and a computer program which is stored on the memory and can run on the processor, wherein when the computer program is executed by the processor, the steps of the embodiment of the message processing method are realized.
The embodiment of the invention discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps of the embodiment of the message processing method are realized.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The above detailed description is provided for a message processing method, a message processing apparatus, an electronic device and a storage medium, and a specific example is applied in this document to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (14)

1. A message processing method for providing a graphical user interface through a terminal, the method comprising:
when detecting that the first application program runs in the foreground, if detecting a notification message of a second application program running in the background, displaying a message prompt identifier on the graphical user interface;
and responding to the interactive operation aiming at the message prompt identifier, switching the second application program to foreground operation, or clearing the message prompt identifier on the graphical user interface.
2. The method of claim 1, wherein the first application is a gaming application.
3. The method of claim 1 or 2, wherein displaying a message prompt identifier on the graphical user interface comprises:
acquiring gravity sensing information sensed by the terminal through a gravity sensor;
determining a falling track of a message prompt identifier according to the gravity sensing information;
and displaying the message prompt identification on the graphical user interface according to the falling track.
4. The method of claim 1 or 2, wherein the drop trajectory comprises a start position and a drop point position, and wherein displaying the message prompt identifier on the graphical user interface in accordance with the drop trajectory comprises:
displaying a message prompt identifier at the starting position of the graphical user interface;
and displaying the message prompt mark falling from the starting position to the falling point position according to the falling track in the graphical user interface.
5. The method of claim 4, further comprising:
determining a location of the message prompt identifier at the graphical user interface;
determining display parameters of the message prompt identifier according to the position;
and updating the display effect of the message prompt identifier according to the display parameters.
6. The method of claim 5, wherein the determining the display parameter of the message prompt identifier according to the position comprises:
when the position is not the drop point position, determining that the display parameter of the message prompt identifier is a first display parameter; the display effect of the first display parameter is an identifier matched with the second application program;
and when the position is the drop point position, determining that the display parameter of the message prompt identifier is a second display parameter, wherein the display effect of the second display parameter is an identifier representing the number of the notification messages.
7. The method of claim 6, wherein determining the display parameter of the message alert identifier according to the location further comprises:
if an existing message prompt identifier is displayed at the location of the drop point, merging the existing message prompt identifier after the message prompt identifier falls into the location of the drop point;
and determining a third display parameter of the existing message prompt identifier, and updating the display effect of the existing message prompt identifier according to the third display parameter, wherein the display effect of the third display parameter is an identifier representing the number of all notification messages.
8. The method of claim 4, further comprising:
after the message prompt identification falls into the drop point position, if no interactive operation aiming at the message prompt identification is detected within a specified time, moving the message prompt identification from the drop point position to a preset edge position; wherein the message prompt identifier is partially displayed at the edge position.
9. The method of claim 4, further comprising:
after the message prompt identifier falls into the drop point position, if no interactive operation aiming at the message prompt identifier is detected within a specified time, the transparency of the message prompt identifier is adjusted from a first transparency to a second transparency, and the first transparency is smaller than the second transparency.
10. The method of claim 1, wherein switching the second application to foreground operation or clearing the message prompt identifier on the graphical user interface in response to the interactive operation directed to the message prompt identifier comprises:
responding to the pressing operation aiming at the message prompt mark, and displaying a popup window on the graphical user interface, wherein the popup window comprises a mark matched with the second application program and a clearing control;
responding to the dragging operation of dragging the message prompt identifier to the identifier corresponding to the second application program, and switching the second application program to foreground operation; alternatively, the first and second electrodes may be,
and responding to the dragging operation of dragging the message prompt identification to the clearing control, and clearing the message prompt identification on the graphical user interface.
11. The method of claim 1, wherein displaying a message prompt identifier on the graphical user interface comprises:
and displaying a message prompt identifier in a floating manner at the designated position of the graphical user interface.
12. A message processing apparatus for providing a graphical user interface through a terminal, the apparatus comprising:
the display module is used for displaying a message prompt identifier on the graphical user interface if detecting the notification message of a second application program running in the background when detecting that the first application program runs in the foreground;
and the interaction module is used for responding to the interaction operation aiming at the message prompt identifier, switching the second application program to foreground operation, or clearing the message prompt identifier on the graphical user interface.
13. An electronic device, comprising a processor, a memory and a computer program stored on the memory and capable of running on the processor, the computer program, when executed by the processor, implementing the steps of the message processing method according to any one of claims 1 to 11.
14. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the message processing method according to any one of claims 1 to 11.
CN202110892097.1A 2021-08-04 2021-08-04 Message processing method and device, electronic equipment and storage medium Pending CN113552985A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110892097.1A CN113552985A (en) 2021-08-04 2021-08-04 Message processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110892097.1A CN113552985A (en) 2021-08-04 2021-08-04 Message processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113552985A true CN113552985A (en) 2021-10-26

Family

ID=78105389

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110892097.1A Pending CN113552985A (en) 2021-08-04 2021-08-04 Message processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113552985A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114721618A (en) * 2022-03-30 2022-07-08 北京城市网邻信息技术有限公司 Display method and device of interactive control, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634199A (en) * 2013-08-26 2014-03-12 华为技术有限公司 Notification message display method and notification message display device
CN105577906A (en) * 2015-04-08 2016-05-11 宇龙计算机通信科技(深圳)有限公司 Multisystem terminal notification message prompting method and device
CN110007817A (en) * 2019-02-26 2019-07-12 努比亚技术有限公司 A kind of message treatment method and mobile terminal, computer readable storage medium
WO2019174469A1 (en) * 2018-03-12 2019-09-19 Oppo广东移动通信有限公司 Message notification method, apparatus, device and storage medium
WO2020156308A1 (en) * 2019-01-31 2020-08-06 Oppo广东移动通信有限公司 Message processing method, device, terminal, and storage medium
CN112162807A (en) * 2020-09-24 2021-01-01 维沃移动通信有限公司 Function execution method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634199A (en) * 2013-08-26 2014-03-12 华为技术有限公司 Notification message display method and notification message display device
CN105577906A (en) * 2015-04-08 2016-05-11 宇龙计算机通信科技(深圳)有限公司 Multisystem terminal notification message prompting method and device
WO2019174469A1 (en) * 2018-03-12 2019-09-19 Oppo广东移动通信有限公司 Message notification method, apparatus, device and storage medium
WO2020156308A1 (en) * 2019-01-31 2020-08-06 Oppo广东移动通信有限公司 Message processing method, device, terminal, and storage medium
CN110007817A (en) * 2019-02-26 2019-07-12 努比亚技术有限公司 A kind of message treatment method and mobile terminal, computer readable storage medium
CN112162807A (en) * 2020-09-24 2021-01-01 维沃移动通信有限公司 Function execution method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114721618A (en) * 2022-03-30 2022-07-08 北京城市网邻信息技术有限公司 Display method and device of interactive control, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107957836B (en) Screen recording method and device and terminal
CN109246464B (en) User interface display method, device, terminal and storage medium
CN106997241B (en) Method for interacting with real world in virtual reality environment and virtual reality system
CN113223563B (en) Device, method and graphical user interface for depth-based annotation
JP2023159124A (en) System, method, and graphical user interface for interaction with augmented and virtual reality environments
CN111760268B (en) Path finding control method and device in game
US11706485B2 (en) Display device and content recommendation method
US20150035781A1 (en) Electronic device
CN110543268A (en) Apparatus, method and graphical user interface for navigating media content
CN109260713B (en) Virtual object remote assistance operation method and device, storage medium and electronic equipment
KR20160058117A (en) Systems and methods for providing response to user input using information about state changes predicting future user input
CN111701226A (en) Control method, device and equipment for control in graphical user interface and storage medium
CN113286201B (en) Recommendation information display method and device, electronic equipment and storage medium
CN111760272B (en) Game information display method and device, computer storage medium and electronic equipment
CN112416207B (en) Information content display method, device, equipment and medium
CN113546419B (en) Game map display method, game map display device, terminal and storage medium
CN111841013A (en) Information display method and device
CN113552985A (en) Message processing method and device, electronic equipment and storage medium
CN110611737A (en) Information processing method, device, electronic equipment and storage medium
CN110639202B (en) Display control method and device in card game
CN110841288B (en) Prompt identifier eliminating method, device, terminal and storage medium
CN113440844A (en) Information processing method and device suitable for game and electronic equipment
CN112261487A (en) Video barrage processing method and device, electronic equipment and storage medium
CN112090058A (en) Information prompting method and device, storage medium and electronic equipment
CN114138158B (en) Method and device for detecting visibility of view and computing equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination