CN108803983B - Notification message display control method and device, electronic device and storage medium - Google Patents

Notification message display control method and device, electronic device and storage medium Download PDF

Info

Publication number
CN108803983B
CN108803983B CN201810377305.2A CN201810377305A CN108803983B CN 108803983 B CN108803983 B CN 108803983B CN 201810377305 A CN201810377305 A CN 201810377305A CN 108803983 B CN108803983 B CN 108803983B
Authority
CN
China
Prior art keywords
notification message
display
monitored
trigger event
electronic
Prior art date
Application number
CN201810377305.2A
Other languages
Chinese (zh)
Other versions
CN108803983A (en
Inventor
陆智弘
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to CN201810377305.2A priority Critical patent/CN108803983B/en
Publication of CN108803983A publication Critical patent/CN108803983A/en
Application granted granted Critical
Publication of CN108803983B publication Critical patent/CN108803983B/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; 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 or an image, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING; 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/04812Interaction 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 interaction techniques based on cursor appearance or behaviour being affected by the presence of displayed objects, e.g. visual feedback during interaction with elements of a graphical user interface through change in cursor appearance, constraint movement or attraction/repulsion with respect to a displayed object

Abstract

The embodiment of the invention discloses a display control method and device of a notification message, an electronic device and a storage medium, wherein in the process of displaying the notification message through a floating window, the actual display duration of the notification message can be controlled by using a trigger event which is kept displayed by the notification message, so that the display duration of the notification message is not limited to the preset duration, and the display control method and device can be controlled based on the needs of a user, for example, the actual display duration which is shorter than the preset duration is suitable for a scene that the user does not care about the notification message, the influence of the display of the notification message on the current operation of the user is avoided, or the actual display duration which is longer than the preset duration is suitable for a scene that the user needs to clearly see the notification message, and the problem that the user needs to pull down a notification bar to further know the content of the notification message due to the. Therefore, the actual display duration of the notification message can meet the actual requirements of the user better by utilizing the trigger event of the notification message for keeping the display, and the flexibility is better.

Description

Notification message display control method and device, electronic device and storage medium

Technical Field

The present invention relates to the field of electronic device display, and in particular, to a method and an apparatus for controlling display of a notification message, an electronic device, and a storage medium.

Background

With the continuous update of electronic devices such as smart phones and tablet computers, notification bars have been widely applied to mobile terminals based on various operating systems. In the electronic device, the notification bar is a message push channel based on each operating system interface, and the server of various application programs in the electronic device pushes messages to the electronic device through the notification bar.

Currently, after the electronic device receives the notification message, the notification message is displayed on the display interface for a short time and will be located in the notification bar, and the user needs to pull down the notification bar to present part or all of the information of each notification message on the current display interface of the electronic device.

However, the prior art has the problems that the display time of the notification message on the display interface is fixed and inflexible.

Disclosure of Invention

The embodiment of the invention mainly aims to provide a method and a device for controlling display of a notification message, an electronic device and a storage medium, which can solve the problems that the display time of the notification message on a display interface is fixed and inflexible in the prior art.

In order to achieve the above object, a first aspect of embodiments of the present invention provides a method for controlling display of a notification message, including:

receiving a notification message, and displaying the notification message through a floating window;

determining whether a trigger event that the notification message keeps displaying is monitored or not before the actual display duration of the notification message is equal to the preset duration;

if the trigger event is monitored, controlling the notification message to keep a display state until the trigger event is finished;

if the trigger event is not monitored, ending the display of the notification message when the actual display duration of the notification message is equal to the preset duration.

In order to achieve the above object, a second aspect of embodiments of the present invention provides a display control apparatus for a notification message, the apparatus including:

the receiving and displaying module is used for receiving the notification message and displaying the notification message through the floating window;

the first determining module is used for determining whether a trigger event that the notification message keeps displaying is monitored or not before the actual display duration of the notification message is equal to the preset duration;

the control module is used for controlling the notification message to keep a display state until the triggering event is finished if the triggering event is monitored;

and the ending module is used for ending the display of the notification message when the actual display duration of the notification message is equal to the preset duration if the trigger event is not monitored.

In order to achieve the above object, a third aspect of embodiments of the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the steps of the method for controlling display of a notification message according to the first aspect when executing the computer program.

In order to achieve the above object, a fourth aspect of embodiments of the present invention provides a storage medium having stored thereon a computer program that, when executed by a processor, implements the steps in the notification message display control method according to the first aspect.

The embodiment of the invention provides a display control method of a notification message, which comprises the following steps: receiving a notification message, displaying the notification message through a floating window, determining whether a trigger event that the notification message keeps displaying is monitored or not before the actual display duration of the notification message is equal to the preset duration, if the trigger event is monitored, controlling the notification message to keep a display state until the trigger event is finished, and if the trigger event is not monitored, finishing the display of the notification message when the actual display duration of the notification message is equal to the preset duration. Compared with the prior art, in the process of displaying the notification message through the floating window, the actual display duration of the notification message can be controlled by using the trigger event which is kept displayed by the notification message, so that the display duration of the notification message is not limited to the preset duration, and can be controlled based on the needs of the user. Therefore, the actual display duration of the notification message can meet the actual requirements of the user better by utilizing the trigger event of the notification message for keeping the display, and the flexibility is better.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.

FIG. 1 is a block diagram of an electronic device;

fig. 2 is a flowchart illustrating a display control method for notification messages according to an embodiment of the present invention;

FIG. 3 is a schematic flow chart illustrating a method for controlling display of notification messages according to an embodiment of the present invention;

FIG. 4 is a schematic structural diagram of a display control apparatus for notification messages according to an embodiment of the present invention;

fig. 5 is another schematic diagram of receiving a notification message by a display control device according to an embodiment of the present invention.

Detailed Description

In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

Fig. 1 shows a block diagram of an electronic device. The method for controlling display of notification messages according to the embodiments of the present invention may be applied to the electronic device 10 shown in fig. 1, where the electronic device 10 may include, but is not limited to: the system is a smart phone, a notebook, a tablet computer, a wearable smart device and the like which need to maintain normal operation by depending on a battery and support network and downloading functions.

As shown in fig. 1, the electronic device 10 includes a memory 101, a memory controller 102, one or more processors 103 (only one of which is shown), a peripheral interface 104, a radio frequency module 105, a key module 106, an audio module 107, a touch screen 108, a proximity sensor 110, and a pressure sensor 111. These components communicate with each other via one or more communication buses/signal lines 109.

It is to be understood that the structure shown in fig. 1 is merely an illustration and is not intended to limit the structure of the electronic device. The electronic device 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.

The memory 101 may be used to store software programs and modules, such as program instructions/modules corresponding to the notification message display control method and the electronic device in the embodiment of the present invention, and the processor 103 executes various functional applications and data processing by running the software programs and modules stored in the memory 101, so as to implement the above-mentioned notification message display control method.

The proximity sensor 110 and the pressure sensor 111 are disposed on a side surface, a back surface, or a lower portion of the display interface of the electronic device, which are convenient for a user to touch when holding the electronic device, wherein the proximity sensor 110 is used for detecting a distance value, and the pressure sensor 111 is used for detecting a pressure value.

Memory 101 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 101 may further include memory located remotely from the processor 103, which may be connected to the electronic device 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. Access to the memory 101 by the processor 103 and possibly other components may be under the control of the memory controller 102.

The peripheral interface 104 couples various input/output devices to the CPU and to the memory 101. The processor 103 executes various software, instructions within the memory 101 to perform various functions of the electronic device 10 and to perform data processing.

In some embodiments, the peripheral interface 104, the processor 103, and the memory controller 102 may be implemented in a single chip. In other examples, they may be implemented separately from the individual chips.

The rf module 105 is used for receiving and transmitting electromagnetic waves, and implementing interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The rf module 105 may include various existing circuit elements for performing these functions, such as an antenna, an rf transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The rf module 105 may communicate with various networks such as the internet, an intranet, a preset type of wireless network, or other devices through a preset type of wireless network. The preset types of wireless networks described above may include cellular telephone networks, wireless local area networks, or metropolitan area networks. The Wireless network of the above-mentioned preset type may use various communication standards, protocols and technologies, including but not limited to Global System for mobile communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (W-CDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), bluetooth, Wireless Fidelity (WiFi) (e.g., IEEE802.11a, IEEE802.11 b, IEEE802.11g and/or IEEE802.11 n), Voice over internet protocol (VoIP), Global internet Access (wimax), other protocols for email, instant messaging, and short messaging, and any other suitable messaging protocol.

The key module 106 provides an interface for a user to input to the electronic device, and the user can press different keys to cause the electronic device 10 to perform different functions.

Audio module 107 provides an audio interface to the user, which may include a microphone, one or more speakers, a receiver, and audio circuitry. The audio circuitry receives voice data from the peripheral interface 104, converts the voice data to electrical information, and transmits the electrical information to a speaker or a receiver. The speaker converts the electrical information into sound waves that the human ear can hear. The audio circuitry also receives electrical information from the microphone, converts the electrical information to voice data, and transmits the voice data to the peripheral interface 104 for further processing. The audio data may be retrieved from the memory 101 or through the radio frequency module 105. In addition, the audio data may also be stored in the memory 101 or transmitted through the radio frequency module 105. In some examples, audio module 107 may also include a headphone jack for providing an audio interface to headphones or other devices.

The touch screen 108 provides both an output and an input interface between the electronic device and the user. In particular, the touch screen 108 displays video output to the user, the content of which may include text, graphics, video, and any combination thereof. Some of the output results are for some of the user interface objects. The touch screen 108 also receives user inputs, such as user clicks, swipes, and other gesture operations, for the user interface objects to respond to these user inputs. The technique of detecting user input may be based on resistive, capacitive, or any other possible touch detection technique. Specific examples of touch screen 108 display units include, but are not limited to, liquid crystal displays or light emitting polymer displays.

A display control method of a notification message in the embodiment of the present invention is described based on the above-described electronic apparatus.

In the prior art, the display time of the notification message on the display interface is fixed, so that the problem of inflexibility exists.

In order to solve the technical problem, the invention provides a method for controlling display of a notification message, which can control the actual display duration of the notification message by using a trigger event which is kept to be displayed by the notification message in the process of displaying the notification message through a floating window, so that the display duration of the notification message is not limited to the preset duration, and the method can be controlled based on the needs of a user, for example, the actual display duration which is shorter than the preset duration is suitable for a scene in which the user does not care about the notification message, the influence of the display of the notification message on the current operation of the user is avoided, or the actual display duration which is longer than the preset duration is suitable for a scene in which the user needs to clearly see the notification message, and the problem that the user needs to pull down a notification bar to further know the content of the notification message due to the too. Therefore, the actual display duration of the notification message can meet the actual requirements of the user better by utilizing the trigger event of the notification message for keeping the display, and the flexibility is better.

Please refer to fig. 2, which is a flowchart illustrating a method for controlling display of notification messages according to an embodiment of the present invention, including:

step 201, receiving a notification message, and displaying the notification message through a floating window;

in an embodiment of the present invention, the display control method of the notification message is implemented by a display control device of the notification message (hereinafter, referred to as a display control device), and the display control device is a program module and is stored in a memory of the electronic device, and a processor in the electronic device can call the display control device to implement the display control method.

In the embodiment of the present invention, a plurality of different applications may be installed in the electronic device, and all the applications will receive the notification message sent by the corresponding server, where the notification message may be an instant message, for example, chat information of an instant messaging application, or content promotion information, for example, latest news pushed by a news-like application.

After receiving the notification message, the display control device displays the notification message through the floating window, specifically, the notification message may be displayed on the upper portion of the display interface, or the content in the notification message is scrolled and played in a scrolling manner, in general, the display duration of the notification message is a preset duration, for example, the notification message is displayed in the floating window for 3 seconds, or the notification message is displayed in the floating window for 5 seconds, after the display duration reaches 3 seconds or 5 seconds, the display of the notification message is ended, and the notification message is placed in the notification bar, and if the user needs to view the notification message, the user needs to pull down the notification bar.

Step 202, before the actual display duration of the notification message is equal to a preset duration, determining whether a trigger event that the notification message keeps displaying is monitored;

in the embodiment of the present invention, the preset duration is a default duration for displaying the notification message through the floating window, and if the user wants to control the display duration of the notification message, the notification message may be used to keep the trigger event displayed. The trigger event that the notification message keeps being displayed requires the user to perform a corresponding operation on the electronic device, and after the user performs the corresponding operation to generate the trigger event, the display time of the notification message is no longer a default preset time length but is related to the valid time of the trigger event.

The corresponding operation performed by the user may be a pressing operation at a certain position, or a touch or proximity operation for a sensor of a specified type, and the like, and may be set according to a specific situation in an actual application, which is not limited herein.

In the embodiment of the present invention, before the actual display duration of the notification message is equal to the preset duration, it is determined whether a trigger event that the notification message keeps displaying is monitored, it should be noted that once the trigger event is monitored, the actual display duration of the notification message is controlled by the trigger event instead of being displayed according to the preset duration.

Step 203, if the trigger event is monitored, controlling the notification message to keep a display state until the trigger event is finished;

and 204, if the trigger event is not monitored, ending the display of the notification message when the actual display duration of the notification message is equal to the preset duration.

In the embodiment of the present invention, if a trigger event is monitored, indicating that the actual display duration of the notification message is controlled by the trigger event, the display control device controls the notification message to maintain the display state, and if the trigger event is monitored to be ended, ends the display of the notification message, in which case the actual display time of the notification message is equal to a + b, where a is less than or equal to the preset duration, and specifically, is the duration from the time point when the display of the notification message is started to the time point when the trigger event is monitored, and b represents the duration from the time point when the trigger event is monitored to the time point when the trigger event is ended. It is understood that the actual display duration of the notification message may be less than or equal to the preset duration, for example, if the user plays the game in a full screen, if the news message pushed by the news application is received, the news message is displayed for 5 seconds by default in the form of a floating window, however, the display of the news message will affect the game playing experience of the user, at this time, the user generates the above trigger event by performing corresponding operations and immediately ends the trigger event, the display of the news message may be immediately ended, for example, when the news message is displayed in the second, the electronic device monitors the generation of the trigger event, when the electronic device monitors the end of the trigger event in the third second, when the news message is displayed in the third second, the display thereof will be ended, and the impact on the game playing experience of the user is reduced. In addition, the actual display duration of the notification message may also be longer than the preset duration. For example, if a user watches a movie in a full screen, if a wechat message sent by a wechat friend is received, the wechat message is displayed in a floating window form and is 5 seconds by default, at this time, if the user needs to carefully watch the content of the wechat message, the time of 5 seconds is obviously insufficient, the user can generate a trigger event by executing corresponding operation, and keep the trigger event not to be ended, so that the content of the wechat message can be seen clearly with sufficient time, the user does not need to go back to a full screen state after 5 seconds, and the wechat message is checked in a manner of pulling down a notification bar, thereby meeting the use requirements of the user.

It can be understood that the technical scheme of the invention has more obvious advantages in the full screen state, so that the user can have enough time to check the notification message without quitting the full screen state, and the influence on the operation of the user in the full screen state is avoided.

In the embodiment of the invention, a notification message is received, the notification message is displayed through a floating window, before the actual display time length of the notification message is equal to the preset time length, whether a trigger event that the notification message keeps displaying is monitored or not is determined, if the trigger event is monitored, the notification message is controlled to keep a display state until the trigger event is finished, and if the trigger event is not monitored, the notification message is finished to be displayed when the actual display time length of the notification message is equal to the preset time length. Compared with the prior art, in the process of displaying the notification message through the floating window, the actual display duration of the notification message can be controlled by using the trigger event which is kept displayed by the notification message, so that the display duration of the notification message is not limited to the preset duration, and can be controlled based on the needs of the user. Therefore, the actual display duration of the notification message can meet the actual requirements of the user better by utilizing the trigger event of the notification message for keeping the display, and the flexibility is better.

Please refer to fig. 3, which is a flowchart illustrating a method for controlling display of notification messages according to an embodiment of the present invention, the method includes:

step 301, receiving a notification message, and displaying the notification message through a floating window;

in the embodiment of the present invention, the content of step 301 is similar to that described in step 201 in the embodiment shown in fig. 2, and specifically, refer to step 201 in the embodiment shown in fig. 2, which is not described herein again.

Step 302, acquiring an induced distance value of the proximity sensor in real time before the actual display duration of the notification message is equal to a preset duration;

step 303, determining that the trigger event is monitored when the distance value is less than or equal to a first threshold;

step 304, if the trigger event is monitored, controlling the notification message to keep a display state until the trigger event is finished;

step 305, if the trigger event is not monitored, if the actual display duration of the notification message is equal to the preset duration, ending the display of the notification message;

in the embodiment of the invention, the electronic device comprises the proximity sensor, and the proximity sensor is arranged at a place which is easy to be touched when a user holds the electronic device, for example, taking a smart phone as an example, the proximity sensor can be arranged on the side surface or the back surface of the smart phone, or arranged at the lower part of a display interface of the smart phone, so that when the user operates the smart phone, the user can conveniently cover or approach the position of the proximity sensor with fingers, and the user can conveniently realize interaction with the electronic device by using the proximity sensor.

Among them, the proximity sensor is a generic name of a sensor for detecting without touching a detection object, instead of a contact detection method such as a limit switch. The movement information and the presence information of the object can be detected and converted into an electric signal. In an embodiment of the present invention, the proximity sensor is used for detecting a distance value between a user and the electronic device.

In the embodiment of the present invention, in order to reduce power consumption of the proximity sensor and avoid misoperation, the display control device may turn on the proximity sensor after receiving the notification message, or maintain the proximity sensor in an on state if at least one notification message exists in the notification bar, and turn off the proximity sensor if no notification message exists in the notification bar and no notification message is received.

And before the actual display time length of the notification message is equal to the preset time length, the display control device acquires the distance value sensed by the proximity sensor. The proximity sensor may be specifically an infrared proximity sensor, and the infrared proximity sensor may detect a distance between an object (e.g., a human body) having a temperature and the object by transmitting infrared rays.

Wherein the monitoring of the trigger event that the notification message remains displayed is determined when the distance value sensed by the proximity sensor is less than or equal to a first threshold. At this time, the display control device will control the notification message to maintain the display state based on the trigger event until the trigger event is finished, that is, until the distance value sensed by the proximity sensor is greater than the first threshold, wherein the first threshold may be set to any one of values of 0 to 0.5 cm. Wherein, the first threshold value being 0 indicates that the finger of the user has to touch the surface corresponding to the position of the proximity sensor in the electronic device. For example, when a user watches a video in full screen mode by using the smart phone, if a WeChat message sent by a friend is received, the user can touch the infrared proximity sensor on the left side of the smart phone by using a left thumb holding the smart phone and keep the touch state, so that a trigger event is kept, and the smart phone displays the WeChat message until the trigger event is finished.

It is understood that, in the embodiment of the present invention, the end of the trigger event refers to a situation where the distance value of the proximity sensor is greater than the first threshold, and if it is required to keep the notification message in the display-maintaining state, it is required to keep the monitored distance value in a state of being less than or equal to the first threshold, for example, if it is required to keep the notification message for 10 seconds, the continuously monitored distance value in the 10 seconds is required to keep a state of being less than or equal to the first threshold, that is, the trigger event is not ended.

It should be noted that, in the embodiment of the present invention, in addition to the trigger event that the user generates the notification message to keep displaying based on the interaction with the proximity sensor, the trigger event may also be generated in other ways, for example, a pressure sensor may be disposed in the electronic device, and the pressure sensor may be specifically disposed at a side surface of the electronic device, or a back surface of the electronic device, or a lower portion of a display interface of the electronic device, which is convenient for the user to touch. And when the pressure value sensed by the pressure sensor in the electronic device is monitored to be larger than or equal to the second threshold value, determining to monitor a trigger event that the notification message keeps being displayed, so that the user can control the actual display duration of the notification message in a mode of pressing the pressure sensor.

Alternatively, it may be further arranged that the user generates the trigger event by performing a long press operation within the display area of the notification message, such that when the long press operation within the display area of the notification message is monitored, it is determined that the trigger event is monitored, wherein a press operation having a press time exceeding 2 seconds is determined as the long press operation.

In practical application, the generation mode of the trigger event may be set according to specific needs, which is not described herein.

Step 306, if a recall display trigger event of the notification message is monitored, determining a target notification message which is received recently and is positioned in the notification bar;

and 307, displaying the target notification message on the current display interface through the floating window.

In the embodiment of the present invention, if the user does not have access to generate the trigger event through the corresponding operation within the preset time period, or the trigger event is inadvertently ended, the notification message in the notification bar may be recalled by generating the recall display trigger event, specifically, the electronic device may be provided with a proximity sensor or a pressure sensor to generate the recall display trigger event, for example, the user may cause a distance value monitored by the proximity sensor to be less than or equal to a first threshold value by approaching or touching the proximity sensor, so as to recall the display trigger event for survival, or the user may cause the pressure value to be greater than or equal to a second threshold value by pressing the pressure sensor, so as to generate the recall display trigger event, so that the user may also recall the display trigger event by recalling even if the user does not have access to perform the corresponding operation within the preset time period, the notification message is viewed.

It can be understood that, in order to avoid the misoperation, a time duration may be set, and within a certain time duration after the notification message is finished being displayed, the user may perform a corresponding operation to generate a recall display trigger event, and if the time duration is exceeded, the recall display trigger event cannot be generated, that is, the notification message cannot be recalled and displayed.

In the embodiment of the present invention, in the process of displaying the notification message through the floating window, the actual display duration of the notification message may be controlled by using the trigger event that the notification message keeps being displayed, so that the display duration of the notification message is not limited to the preset duration, and may be controlled based on the needs of the user, for example, the actual display duration shorter than the preset duration is suitable for a scene where the user does not care about the notification message, and the influence of the display of the notification message on the current operation of the user is avoided, or the actual display duration longer than the preset duration is suitable for a scene where the user needs to see the notification message clearly, and the problem that the user needs to pull down the notification bar to further know the content of the notification message due to the too short display duration is avoided. Therefore, the actual display duration of the notification message can meet the actual requirements of the user better by utilizing the trigger event of the notification message for keeping the display, and the flexibility is better. And after the notification message is displayed, the notification message can be displayed again in a mode of generating a recall display trigger event, so that the user can view the notification message without exiting the full-screen state or pulling down the notification bar after the notification message is displayed.

Please refer to fig. 4, which is a schematic structural diagram of a display control apparatus for notification messages according to an embodiment of the present invention, the apparatus includes:

a receiving and displaying module 401, configured to receive a notification message, and display the notification message through a floating window;

a first determining module 402, configured to determine whether a trigger event that a notification message keeps being displayed is monitored before an actual display duration of the notification message is equal to a preset duration;

a control module 403, configured to control the notification message to keep a display state until the trigger event is finished if the trigger event is monitored;

an ending module 404, configured to end the display of the notification message when the actual display duration of the notification message is equal to a preset duration if the trigger event is not monitored.

In the embodiment of the invention, a notification message is received, the notification message is displayed through a floating window, before the actual display time length of the notification message is equal to the preset time length, whether a trigger event that the notification message keeps displaying is monitored or not is determined, if the trigger event is monitored, the notification message is controlled to keep a display state until the trigger event is finished, and if the trigger event is not monitored, the notification message is finished to be displayed when the actual display time length of the notification message is equal to the preset time length. Compared with the prior art, in the process of displaying the notification message through the floating window, the actual display duration of the notification message can be controlled by using the trigger event which is kept displayed by the notification message, so that the display duration of the notification message is not limited to the preset duration, and can be controlled based on the needs of the user. Therefore, the actual display duration of the notification message can meet the actual requirements of the user better by utilizing the trigger event of the notification message for keeping the display, and the flexibility is better.

Please refer to fig. 5, which is a schematic structural diagram of a display control apparatus for notification messages according to an embodiment of the present invention, including a receiving display module 401, a first determining module 402, a control module 403, and an ending module 404 in the embodiment shown in fig. 4, and similar to the contents described in the embodiment shown in fig. 4, which are not repeated herein.

In an embodiment of the present invention, the first determining module 402 includes:

a first obtaining module 501, configured to obtain an induced distance value of a proximity sensor in an electronic device in real time before an actual display duration of the notification message is equal to a preset duration;

a second determining module 502, configured to determine that the trigger event is monitored when the distance value is less than or equal to a first threshold;

alternatively, the first determining module 402 includes:

a third determining module 503, configured to determine that the trigger event is monitored when it is monitored that a pressure value sensed by a pressure sensor in the electronic device is greater than or equal to a second threshold, or when a long press operation in a display area of the notification message is monitored.

In an embodiment of the present invention, the apparatus further includes:

a second obtaining module 504, configured to obtain, in real time, a distance value or a pressure value sensed by a proximity sensor or a pressure sensor on the electronic device;

a fourth determining module 505, configured to determine that the recall display trigger event is monitored when the distance value is less than or equal to a first threshold value or when the pressure value is greater than or equal to a second threshold value;

a fifth determining module 506, configured to determine, if a recall display trigger event of the notification message is monitored, a target notification message that is received most recently and is located in the notification bar;

and a display module 507, configured to display the target notification message on a current display interface through a floating window.

In the embodiment of the present invention, in the process of displaying the notification message through the floating window, the actual display duration of the notification message may be controlled by using the trigger event that the notification message keeps being displayed, so that the display duration of the notification message is not limited to the preset duration, and may be controlled based on the needs of the user, for example, the actual display duration shorter than the preset duration is suitable for a scene where the user does not care about the notification message, and the influence of the display of the notification message on the current operation of the user is avoided, or the actual display duration longer than the preset duration is suitable for a scene where the user needs to see the notification message clearly, and the problem that the user needs to pull down the notification bar to further know the content of the notification message due to the too short display duration is avoided. Therefore, the actual display duration of the notification message can meet the actual requirements of the user better by utilizing the trigger event of the notification message for keeping the display, and the flexibility is better. And after the notification message is displayed, the notification message can be displayed again in a mode of generating a recall display trigger event, so that the user can view the notification message without exiting the full-screen state or pulling down the notification bar after the notification message is displayed.

Further, in an embodiment of the present invention, an electronic device is further provided, where the electronic device includes a memory, a processor, and a computer program stored in the memory and running on the processor, and when the processor executes the computer program, the electronic device implements the steps in the display control method for the notification message in the embodiment shown in fig. 2 or fig. 3.

Further, in an embodiment of the present invention, a storage medium is further provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the method for controlling display of a notification message in the embodiment shown in fig. 2 or fig. 3 are implemented.

In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and in actual implementation, there may be other divisions, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.

The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.

In addition, functional modules in the embodiments of the present invention may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.

The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.

It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present invention is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no acts or modules are necessarily required of the invention.

In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.

In the above description, for a person skilled in the art, there are variations on the specific implementation and application scope according to the concepts of the embodiments of the present invention, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (9)

1. A display control method of a notification message is applied to an electronic device, and is characterized by comprising the following steps:
receiving a notification message, and displaying the notification message through a floating window;
determining whether a trigger event that the notification message keeps displaying is monitored or not before the actual display duration of the notification message is equal to the preset duration;
if the trigger event is monitored, controlling the notification message to keep a display state until the trigger event is finished;
if the trigger event is not monitored, ending the display of the notification message when the actual display duration of the notification message is equal to the preset duration;
the method further comprises the following steps: if a recall display triggering event of the notification message is monitored, determining a target notification message which is received recently and is positioned in the notification bar; and displaying the target notification message on the current display interface through a floating window.
2. The method of claim 1, wherein determining whether a triggering event is monitored that a notification message remains displayed comprises:
acquiring a sensed distance value of a proximity sensor in the electronic device in real time;
determining that the trigger event is monitored when the distance value is less than or equal to a first threshold.
3. The method of claim 1, wherein determining whether a triggering event is monitored that a notification message remains displayed comprises:
determining that the trigger event is monitored when it is monitored that a pressure value sensed by a pressure sensor in the electronic device is greater than or equal to a second threshold value, or when a long press operation in a display area of the notification message is monitored.
4. The method of claim 1, further comprising:
acquiring a distance value or a pressure value sensed by a proximity sensor or a pressure sensor on the electronic device in real time;
determining that the recall display trigger event is monitored when the distance value is less than or equal to a first threshold or when the pressure value is greater than or equal to a second threshold.
5. A display control apparatus for a notification message, applied to an electronic apparatus, the apparatus comprising:
the receiving and displaying module is used for receiving the notification message and displaying the notification message through the floating window;
the first determining module is used for determining whether a trigger event that the notification message keeps displaying is monitored or not before the actual display duration of the notification message is equal to the preset duration;
the control module is used for controlling the notification message to keep a display state until the triggering event is finished if the triggering event is monitored;
the ending module is used for ending the display of the notification message when the actual display duration of the notification message is equal to the preset duration if the trigger event is not monitored;
the device further comprises: the fifth determining module is used for determining a target notification message which is received recently and is positioned in the notification bar if a recall display triggering event of the notification message is monitored; and the display module is used for displaying the target notification message on the current display interface through the floating window.
6. The apparatus of claim 5, wherein the first determining module comprises:
the first acquisition module is used for acquiring the sensed distance value of the proximity sensor in the electronic device in real time before the actual display duration of the notification message is equal to the preset duration;
a second determining module, configured to determine that the trigger event is monitored when the distance value is less than or equal to a first threshold;
alternatively, the first determining module includes:
and the third determining module is used for determining that the trigger event is monitored when the pressure value sensed by the pressure sensor in the electronic device is monitored to be greater than or equal to a second threshold value or when the long press operation in the display area of the notification message is monitored.
7. The apparatus of claim 5, further comprising:
the second acquisition module is used for acquiring a distance value or a pressure value sensed by a proximity sensor or a pressure sensor on the electronic device in real time;
a fourth determining module, configured to determine that the recall display trigger event is monitored when the distance value is less than or equal to a first threshold value or when the pressure value is greater than or equal to a second threshold value.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and running on the processor, wherein the processor implements the steps of the method for controlling display of a notification message according to any one of claims 1 to 4 when executing the computer program.
9. A storage medium having stored thereon a computer program, characterized in that the computer program, when executed by a processor, implements the steps in the notification message display control method according to any one of claims 1 to 4.
CN201810377305.2A 2018-04-25 2018-04-25 Notification message display control method and device, electronic device and storage medium CN108803983B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810377305.2A CN108803983B (en) 2018-04-25 2018-04-25 Notification message display control method and device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810377305.2A CN108803983B (en) 2018-04-25 2018-04-25 Notification message display control method and device, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN108803983A CN108803983A (en) 2018-11-13
CN108803983B true CN108803983B (en) 2020-08-07

Family

ID=64093862

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810377305.2A CN108803983B (en) 2018-04-25 2018-04-25 Notification message display control method and device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN108803983B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580670A (en) * 2013-10-23 2015-04-29 腾讯科技(深圳)有限公司 Method for processing notification message of mobile terminal and mobile terminal
CN106201249A (en) * 2016-06-28 2016-12-07 联想(北京)有限公司 The display packing of announcement information and display device
CN106713105A (en) * 2015-11-12 2017-05-24 阿里巴巴集团控股有限公司 Instant communication method, client and electronic device
CN106791049A (en) * 2016-12-06 2017-05-31 深圳市金立通信设备有限公司 A kind of notification message processing method and terminal
CN106933441A (en) * 2017-01-24 2017-07-07 珠海市魅族科技有限公司 A kind of notification message display methods and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150082255A1 (en) * 2013-09-16 2015-03-19 Motorola Mobility Llc Methods and apparatus for displaying notification information

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580670A (en) * 2013-10-23 2015-04-29 腾讯科技(深圳)有限公司 Method for processing notification message of mobile terminal and mobile terminal
CN106713105A (en) * 2015-11-12 2017-05-24 阿里巴巴集团控股有限公司 Instant communication method, client and electronic device
CN106201249A (en) * 2016-06-28 2016-12-07 联想(北京)有限公司 The display packing of announcement information and display device
CN106791049A (en) * 2016-12-06 2017-05-31 深圳市金立通信设备有限公司 A kind of notification message processing method and terminal
CN106933441A (en) * 2017-01-24 2017-07-07 珠海市魅族科技有限公司 A kind of notification message display methods and system

Also Published As

Publication number Publication date
CN108803983A (en) 2018-11-13

Similar Documents

Publication Publication Date Title
US20180107364A1 (en) Apparatus and method for displaying notification in electronic device
US10063760B2 (en) Photographing control methods and devices
US10680981B2 (en) Message processing method and apparatus
JP6211090B2 (en) Message display method, message display device, terminal device, program, and recording medium thereof
CN105094533B (en) Enter the method and mobile terminal of singlehanded mode based on multifunction push key
US7649526B2 (en) Soft key interaction indicator
JP6196398B2 (en) Apparatus, method, terminal device, program, and recording medium for realizing touch button and fingerprint authentication
WO2019184623A1 (en) Method for processing audio signal and related products
CN105786878B (en) Display method and device of browsing object
CN108062190B (en) Application running state control method and mobile terminal
EP2882234B1 (en) Method, apparatus, equipment and system for controlling turn-on and turn-off of wireless network
EP2852006B1 (en) Connection member for headset plug, headset jack and terminal device
WO2017206902A1 (en) Application control method and related device
CN108255378B (en) Display control method and mobile terminal
CN109068206B (en) Master-slave earphone switching control method and related product
US20170315777A1 (en) Method, terminal, and storage medium for starting voice input function of terminal
CN106778175B (en) Interface locking method and device and terminal equipment
CN105487650A (en) Intelligent alarm clock turn-off method and apparatus
KR20100128884A (en) Method for recognition ear phone in potable terminal and apparatus thereof
EP2588945A1 (en) Method and apparatus for implementing a multiple display mode
CN104407804B (en) Screenshotss method, apparatus and electronic equipment
CA2673587A1 (en) Transparent layer application
US20190080120A1 (en) Unlocking methods and related products
CN105204614A (en) Methods And Systems For Alarm Management In An Electronic Device
US10269163B2 (en) Method and apparatus for switching real-time image in instant messaging

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
GR01 Patent grant
GR01 Patent grant