CN108803983A - Display control method and device, the electronic device and storage medium of notification message - Google Patents

Display control method and device, the electronic device and storage medium of notification message Download PDF

Info

Publication number
CN108803983A
CN108803983A CN201810377305.2A CN201810377305A CN108803983A CN 108803983 A CN108803983 A CN 108803983A CN 201810377305 A CN201810377305 A CN 201810377305A CN 108803983 A CN108803983 A CN 108803983A
Authority
CN
China
Prior art keywords
notification message
display
trigger event
duration
equal
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.)
Granted
Application number
CN201810377305.2A
Other languages
Chinese (zh)
Other versions
CN108803983B (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
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
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/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
    • 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/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects

Landscapes

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

Abstract

The embodiment of the invention discloses a kind of display control method of notification message and devices, electronic device and storage medium, during showing notification message by floating frame, notification message can be utilized to keep the actual displayed duration of the trigger event control notification message of display, so that the display duration of notification message is not limited to above-mentioned preset duration, it can controlling based on user, such as, the actual displayed duration more shorter than above-mentioned preset duration, the scene of the notification message is indifferent to suitable for user, avoid influence of the display of notification message to user's current operation, or the actual displayed duration longer than above-mentioned preset duration, need to see the scene of notification message suitable for user, it avoids the problem that needing to pull down notification bar and further appreciating that the content of notification message because of display duration too short-range missile family of applying.Therefore, keep the trigger event of display that the actual displayed duration of notification message is made more to meet the actual demand of user by using notification message, flexibility is more preferable.

Description

Display control method and device, the electronic device and storage medium of notification message
Technical field
The present invention relates to the display control method and device of electronic device display field more particularly to a kind of notification message, Electronic device and storage medium.
Background technology
It regenerates with the continuous renewal of the electronic devices such as smart mobile phone and tablet computer, notification bar has been widely applied to In mobile terminal based on each operating system.In an electronic, notification bar is one kind based on each operating system interface The server of message push channel, the various application programs in electronic device is exactly based on notification bar to disappear to electronic device push Breath.
Currently, electronic device is after receiving the notifying message, notification message of short duration display on display interface, and by position In in notification bar, user needs to pull down notification bar, and every notification message could be presented in the current display interface of electronic device Some or all of information.
It is fixed however, display duration of the notification message on display interface exists in the prior art, inflexible problem.
Invention content
The main purpose of the embodiment of the present invention is to provide a kind of display control method and device, electronics dress of notification message It sets and storage medium, display duration of the notification message on display interface in the prior art can be solved and fixed, it is inflexible to ask Topic.
To achieve the above object, first aspect of the embodiment of the present invention provides a kind of display control method of notification message, packet It includes:
Notification message is received, the notification message is shown by floating frame;
Before the actual displayed duration of the notification message is equal to preset duration, it is determined whether monitor that notification message is protected Hold the trigger event of display;
If monitoring the trigger event, controls the notification message and keep dispaly state, until the trigger event Terminate;
If not monitoring the trigger event, when the actual displayed duration of the notification message is equal to preset duration, Terminate the display of the notification message.
To achieve the above object, second aspect of the embodiment of the present invention provides a kind of display control unit of notification message, should Device includes:
It receives display module and the notification message is shown by floating frame for receiving notification message;
First determining module, for before the actual displayed duration of the notification message is equal to preset duration, determination to be The no trigger event for monitoring notification message and keeping display;
If control module controls the notification message and keeps dispaly state for monitoring the trigger event, until The trigger event terminates;
Terminate module, if for not monitoring the trigger event, in the actual displayed duration etc. of the notification message When preset duration, terminate the display of the notification message.
To achieve the above object, the third aspect of the embodiment of the present invention provides a kind of electronic device, and electronic device includes storage Device, processor and it is stored in the computer program run on the memory and on the processor, which is characterized in that described When processor executes the computer program, realize each in the display control method of notification message as described in relation to the first aspect Step.
To achieve the above object, fourth aspect of the embodiment of the present invention provides a kind of storage medium, is stored thereon with computer Program, when computer program is executed by processor, in the display control method for realizing notification message as described in relation to the first aspect Each step.
The embodiment of the present invention provides the display control method of notification message, including:Notification message is received, floating frame is passed through The notification message is shown, before the actual displayed duration of notification message is equal to preset duration, it is determined whether monitor the notice Message keeps the trigger event of display, if monitoring the trigger event, controls notification message and keeps dispaly state, until this is touched Hair event terminates, if not monitoring trigger event, when the actual displayed duration of notification message is equal to preset duration, terminates institute State the display of notification message.Compared with the existing technology, it during showing notification message by floating frame, can utilize logical Know that message keeps the actual displayed duration of the trigger event control notification message of display so that the display duration of notification message is unlimited In above-mentioned preset duration, can controlling based on user, for example, when more shorter than above-mentioned preset duration actual displayed It is long, it is indifferent to the scene of the notification message suitable for user, avoids influence of the display of notification message to user's current operation, or Person's actual displayed duration longer than above-mentioned preset duration, the scene for seeing notification message is needed suitable for user, avoid because Display duration too short-range missile family of applying needs to pull down notification bar the problem of further appreciating that the content of notification message.Therefore, pass through profit Keep the trigger event of display that the actual displayed duration of notification message is made more to meet the actual demand of user with notification message, spirit It is active more preferable.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those skilled in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 is a kind of structure diagram of electronic device;
Fig. 2 is the flow diagram of the display control method of notification message in the embodiment of the present invention;
Fig. 3 is another flow diagram of the display control method of notification message in the embodiment of the present invention;
Fig. 4 is the structural schematic diagram of the display control unit of notification message in the embodiment of the present invention;
Fig. 5 is another reception schematic diagram of the display control unit of notification message in the embodiment of the present invention.
Specific implementation mode
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described reality It is only a part of the embodiment of the present invention to apply example, and not all embodiments.Based on the embodiments of the present invention, people in the art The every other embodiment that member is obtained without making creative work, shall fall within the protection scope of the present invention.
Fig. 1 shows a kind of structure diagram of electronic device.The display control of notification message provided in an embodiment of the present invention Method can be applied in electronic device 10 as shown in Figure 1, electronic device 10 can be, but not limited to include:Battery need to be relied on to maintain Normal operation and smart mobile phone, notebook, tablet computer, the wearing smart machine etc. for supporting network and download function.
As shown in Figure 1, electronic device 10 includes memory 101, storage control 102, one or more (is only shown in figure One) processor 103, Peripheral Interface 104, radio-frequency module 105, key-press module 106, audio-frequency module 107 and Touch Screen 108, proximity sensor 110 and pressure sensor 111.These components are mutual by one or more communication bus/signal wire 109 Communication.
It is appreciated that structure shown in FIG. 1 is only to illustrate, the structure of electronic device is not caused to limit.Electronics fills It sets 10 and may also include than shown in Fig. 1 more either less components or with the configuration different from shown in Fig. 1.It is shown in FIG. 1 Hardware, software, or its combination realization may be used in each component.
Memory 101 can be used for storing software program and module, such as the display of the notification message in the embodiment of the present invention Control method and the corresponding program instruction/module of electronic device, processor 103 are stored in soft in memory 101 by operation Part program and module realize the display control of above-mentioned notification message to perform various functions application and data processing Method processed.
Wherein, the side in electronic device, the back side or display circle is arranged in proximity sensor 110 and pressure sensor 111 Place when these users of the lower part in face etc. hold electronic device convenient for touching, wherein proximity sensor 110 is for detecting Distance value, pressure sensor 111 is for detecting pressure value.
Memory 101 may include high speed random access memory, may also include nonvolatile memory, such as one or more magnetic Property storage device, flash memory or other non-volatile solid state memories.In some instances, memory 101 can further comprise The memory remotely located relative to processor 103, these remote memories can pass through network connection to electronic device 10.On The example for stating network includes but not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.Processor 103 And other possible components can carry out the access of memory 101 under the control of storage control 102.
Peripheral Interface 104 couples various input/output devices to CPU and memory 101.The operation of processor 103 is deposited Various softwares, instruction in reservoir 101 are to execute the various functions of electronic device 10 and carry out data processing.
In some embodiments, Peripheral Interface 104, processor 103 and storage control 102 can be in one single chips It realizes.In some other example, they can be realized by independent chip respectively.
Radio-frequency module 105 is used to receive and transmit electromagnetic wave, realizes the mutual conversion of electromagnetic wave and electric signal, thus with Communication network or other equipment are communicated.Radio-frequency module 105 may include the various existing electricity for executing these functions Circuit component, for example, antenna, RF transceiver, digital signal processor, encryption/deciphering chip, subscriber identity module (SIM) card, Memory etc..Radio-frequency module 105 can be with the wireless network progress of various networks such as internet, intranet, preset type Communication is communicated by the wireless network of preset type with other equipment.The wireless network of above-mentioned preset type can wrap Include cellular telephone networks, WLAN or Metropolitan Area Network (MAN).The wireless network of above-mentioned preset type can use various communications Standard, agreement and technology, including but not limited to global system for mobile communications (Global System for Mobile Communication, GSM), enhanced mobile communication technology (Enhanced Data GSM Environment, EDGE) is wide Band Code Division Multiple Access (Wideband Code Division Multiple Access, W-CDMA), Code Division Multiple Access (Code Division Access, CDMA), time division multiple access technology (Time Division Multiple Access, TDMA), Bluetooth, adopting wireless fidelity technology (Wireless-Fidelity, WiFi) (such as American Institute of Electrical and Electronics Engineers's standard IEEE 802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n), the networking telephone (Voice over Internet Protocal, VoIP), worldwide interoperability for microwave accesses (Worldwide Interoperability for Microwave Access, Wi-Max), other for mail, instant messaging and short message agreement and any other is suitable Communications protocol.
Key-press module 106 provides the interface that is inputted to electronic device of user, user can by press it is different by Key is so that electronic device 10 executes different functions.
Audio-frequency module 107 provides a user audio interface, may include a microphone, one or more loud speaker, One receiver and voicefrequency circuit.Voicefrequency circuit receives voice data from Peripheral Interface 104, and voice data is converted to electricity Power information is transmitted to loud speaker or receiver by information.Power information is converted to the sound wave that human ear can be heard by loud speaker.Audio Circuit receives power information also from microphone, converts electrical signals to voice data, and by data transmission in network telephony to Peripheral Interface To be further processed in 104.Audio data can obtain from memory 101 or by radio-frequency module 105.This Outside, audio data can also be stored into memory 101 or be sent by radio-frequency module 105.In some instances, sound Frequency module 107 may also include an earphone and broadcast hole, for providing audio interface to earphone or other equipment.
Touch Screen 108 provides an output and input interface simultaneously between electronic device and user.Specifically, touch-control Screen 108 shows that video output, the content of these videos output may include word, figure, video and its arbitrary group to user It closes.Some outputs are the result is that correspond to some user interface objects.Touch Screen 108 also receives the input of user, such as user The gesture operations such as click, sliding, so that user interface object responds the input of these users.It detects input by user Technology can be based on resistance-type, condenser type or any other possible touch control detection technology.108 display unit of Touch Screen Specific example include but is not limited to liquid crystal display or light emitting polymer displays.
The display control method of notification message in the embodiment of the present invention is described based on above-mentioned electronic device.
Since in the prior art, display duration of the notification message on display interface is fixed, and there are inflexible problems.
In order to solve the above-mentioned technical problem, the present invention proposes a kind of display control method of notification message, floats passing through During window shows notification message, notification message can be utilized to keep the reality of the trigger event control notification message of display Show duration so that the display duration of notification message is not limited to above-mentioned preset duration, can controlling based on user, For example, the actual displayed duration more shorter than above-mentioned preset duration, the scene of the notification message is indifferent to suitable for user, avoids leading to Know influence of the display of message to user's current operation, or the actual displayed duration longer than above-mentioned preset duration, is suitable for User needs to see the scene of notification message, avoid because display duration too short-range missile apply family need pull down notification bar it is further The problem of solving the content of notification message.Therefore, the trigger event of display is kept to make notification message by using notification message Actual displayed duration more meets the actual demand of user, and flexibility is more preferable.
Referring to Fig. 2, for the flow diagram of the display control method of notification message in the embodiment of the present invention, including:
Step 201 receives notification message, and the notification message is shown by floating frame;
In embodiments of the present invention, the display control method of above-mentioned notification message by notification message display control unit (hereinafter referred to as:Display control unit) it realizes, and the display control unit is program module, is stored in the storage of electronic device In device, the processor in electronic device can call the display control unit, to realize above-mentioned display control method.
In embodiments of the present invention, a variety of different application programs can be installed, these application programs all will in electronic device Receive the notification message that corresponding server is sent, wherein the notification message can be instant message, for example, instant messaging The chat message of application program can also be content promotion message, for example, the latest news etc. of the application program push of news category Deng.
Wherein, display control unit after receiving the notifying message, will show the notification message by floating frame, tool Body, the top of display interface is may be displayed on, or roll the content played in the notification message by way of rolling, led to In the case of often, when display of the notification message a length of preset duration, for example, notification message is shown 3 seconds in floating frame, or Notification message is shown 5 seconds in floating frame, after display duration reaches 3 seconds or 5 seconds, will terminate the display of the notification message, And notification message is placed in notification bar, if desired user checks notification message, then need to pull down notification bar.
Step 202, the notification message actual displayed duration be equal to preset duration before, it is determined whether monitor institute State the trigger event that notification message keeps display;
In embodiments of the present invention, preset duration is the acquiescence duration that notification message is shown by floating frame, if user Want the display duration of control notification message, then notification message can be utilized to keep the trigger event of display.Wherein, notification message Keep the trigger event of display that user is needed to execute corresponding operation on the electronic device, and user is executing corresponding operation life After the trigger event, display time of notification message will no longer be the preset duration of acquiescence, but with the trigger event Effective time is related.
Wherein, the corresponding operating that user executes can be the pressing operation of designated position, or the biography for specified type The touch-control of sensor or by near operation etc., can be arranged, not limit herein according to specific circumstances in practical applications.
In embodiments of the present invention, before the actual displayed duration of notification message is equal to preset duration, it is determined whether prison Measure the trigger event that notification message keeps display, it should be noted that once monitor trigger event, then the reality of notification message Border shows that duration is then controlled by trigger event, rather than is shown according to preset duration.
If step 203 monitors the trigger event, control the notification message and keep dispaly state, until described Trigger event terminates;
If step 204 does not monitor the trigger event, it is equal in the actual displayed duration of the notification message default When duration, terminate the display of the notification message.
In embodiments of the present invention, if monitoring trigger event, show the actual displayed duration of notification message by triggering Event control, display control unit will control the notification message and keep dispaly state, if monitoring, trigger event terminates, and terminates The display of notification message, in this case, the actual displayed time of notification message are equal to a+b, and wherein a is less than or equal to default Duration, and specially notification message start display time point to the duration between the time point for monitoring trigger event, b is then Indicate to monitor time point of trigger event to the duration monitored between time point that trigger event terminates.It is appreciated that It is that the actual displayed duration of the notification message can be less than or equal to the preset duration, if for example, user plays in full frame object for appreciation When, if receive the news messages of news application program push, news messages acquiescence is aobvious by the form of floating frame Show 5 seconds, however the display of the news messages plays the experience played by user is influenced, at this point, user, which passes through, executes corresponding operating It generates above-mentioned trigger event and is immediately finished the trigger event, then can be immediately finished the display of the news messages, for example, news For message when being shown to second second, electronic device monitors the generation of trigger event, in the third second, monitors trigger event Terminate, then when news messages are shown to the third second, will just terminate its display, and reduce the influence for the experience for playing game to user. In addition, the actual displayed duration of the notification message can also be more than the preset duration.For example, if user is in full frame watch movie, If receiving the wechat message of wechat good friend transmission, at this point, the wechat message will be shown by the form of floating frame, and give tacit consent to It it is 5 seconds, if at this point, user needs carefully to see the content of the wechat message, 5 seconds time was clearly inadequate, and user then can be with Trigger event is generated by executing corresponding operation, and the trigger event is kept not terminate, then there can be time enough to see clearly The content of Chu's wechat message so that user need not terminate the full frame state of backed off after random at 5 seconds, and the mode for pulling down notification bar is looked into It sees wechat message, meets the use demand of user.
It is understood that the advantages of technical solution of the present invention, is more obvious under full frame state so that user does not need Exiting full frame state can have time enough to check notification message, avoid the influence to the operation under the full frame state of user.
In embodiments of the present invention, notification message is received, which is shown by floating frame, in notification message Actual displayed duration is equal to before preset duration, it is determined whether monitors that the notification message keeps the trigger event of display, if prison The trigger event is measured, then controls notification message and keeps dispaly state, until the trigger event terminates, if not monitoring triggering thing Part terminates the display of the notification message then when the actual displayed duration of notification message is equal to preset duration.Relative to existing Technology can utilize notification message to keep the trigger event control of display during showing notification message by floating frame The actual displayed duration of notification message processed so that the display duration of notification message is not limited to above-mentioned preset duration, can be based on using Family control, for example, the actual displayed duration more shorter than above-mentioned preset duration, is indifferent to the notice suitable for user The scene of message avoids influence of the display of notification message to user's current operation, or the reality longer than above-mentioned preset duration Border shows duration, and the scene for seeing notification message is needed suitable for user, avoids applying family needs because of display duration too short-range missile The problem of drop-down notification bar further appreciates that the content of notification message.Therefore, the triggering of display is kept by using notification message Event makes the actual displayed duration of notification message more meet the actual demand of user, and flexibility is more preferable.
Referring to Fig. 3, for the flow diagram of the display control method of notification message in the embodiment of the present invention, this method packet It includes:
Step 301 receives notification message, and the notification message is shown by floating frame;
In embodiments of the present invention, step 301 is similar to the content that step 201 in embodiment illustrated in fig. 2 describes, and specifically may be used Refering to the step 201 in embodiment illustrated in fig. 2, it is not repeated herein.
Step 302, before the actual displayed duration of the notification message is equal to preset duration, obtain in real time described close The distance value of sensor sensed;
Step 303, when the distance value be less than or equal to first threshold when, determination monitor the trigger event;
If step 304 monitors the trigger event, control the notification message and keep dispaly state, until described Trigger event terminates;
If step 305 does not monitor the trigger event, it is equal in the actual displayed duration then in the notification message When preset duration, terminate the display of the notification message;
In embodiments of the present invention, electronic device includes proximity sensor, and proximity sensor setting holds electricity in user When sub-device, the place readily accessed can be arranged for example, by taking smart mobile phone as an example in the side of smart mobile phone or the back of the body Face, or be arranged in the lower part of smart mobile phone display interface, in this way, user is when operating smart mobile phone, it can be easily by hand Refer to covering or close proximity to the position where sensor, convenient for user by using the proximity sensor realize with electronic device it Between interaction.
Wherein, proximity sensor is to replace the contact measurements modes such as limit switch, is carried out with being not necessarily to contact detection object The general name of sensor for the purpose of detection.The mobile message and existence information of object can be detected, and is converted to electric signal.At this In inventive embodiments, which is used to detect the distance value of user and electronic device.
In embodiments of the present invention, in order to be reduced close to the electric quantity consumption of sensor, and maloperation is avoided, display control dress Proximity sensor can just be opened after receiving the notifying message by setting, or there are at least one notification messages in notification bar It keeps proximity sensor to be in open state, in notification bar without any notification message and when not receiving notification message, closes Proximity sensor.
Wherein, before the actual displayed duration of notification message is equal to preset duration, display control unit will be implemented to obtain The distance value that proximity sensor senses.Wherein, proximity sensor is specifically as follows infrared proximity transducer, infrared proximity sensing Device can be detected by way of sending infrared ray object (such as human body) with temperature and its distance between.
Wherein, it when the distance value that proximity sensor senses is less than or equal to first threshold, determines and monitors that notice disappears Breath keeps the trigger event of display.It keeps showing shape at this point, display control unit will be based on trigger event control notification message State, until the trigger event terminates, i.e., until the distance value that the proximity sensor senses is more than above-mentioned first threshold, wherein Any one numerical value in 0 to 0.5cm can be arranged in the first threshold.Wherein, first threshold indicates that the finger of user must for 0 The corresponding surface of the location of proximity sensor in electronic device need be touched.For infrared proximity transducer setting and intelligence For the left side of mobile phone, user is in viewing video full frame using smart mobile phone, if receiving the wechat message of good friend's transmission, Then user can utilize the infrared proximity transducer for the left hand thumb contact smart mobile phone left side for holding smart mobile phone, and keep The state of touch, so that trigger event is always maintained at, smart mobile phone will then show always wechat message, until trigger event knot Beam.
It is understood that in embodiments of the present invention, trigger event terminates to refer to that the distance value of proximity sensor is more than The case where first threshold, and being in for notification message is if desired kept to keep dispaly state, then need the distance for keeping monitoring Value remains less than or then exists for example, if desired trigger event keeps notification message to show 10 seconds equal to the state of first threshold The distance value continuously monitored in this 10 seconds be required for remaining less than or equal to first threshold state, i.e. trigger event do not tie Beam.
It should be noted that in embodiments of the present invention, user is led in addition to being based on interacting to generate with proximity sensor Know except the trigger event that message keeps display, the trigger event can also be generated in other way, for example, can be in electricity Pressure sensor is set in sub-device, which can be arranged in the side of electronic device or electronic device The back side or electronic device the lower part of display interface etc. these facilitate the place that user touches.And works as and monitor When the pressure value that pressure sensor in electronic device senses is greater than or equal to second threshold, it is determined that monitor notification message Keep the trigger event of display so that user can control the actual displayed of notification message by way of press pressure sensor Duration.
Alternatively, user, which can also be arranged, to be generated by way of executing long press operation in the display area in notification message Trigger event so that when the long press operation in the display area for monitoring notification message, determination monitors trigger event, In, the pressing operation for by compressing time being more than 2 seconds is determined as long press operation.
In practical applications, it can be not repeated herein according to the generating mode for specifically needing that trigger event is arranged.
If step 306, monitor notification message recall display trigger event, it is determined that it is being most recently received and positioned at logical Know the goal notification message in column;
Step 307 shows the goal notification message by floating frame in current display interface.
In embodiments of the present invention, if user has not enough time to generate triggering thing by operating accordingly in preset duration Part, or accidentally finish trigger event, it can also be recalled in notification bar by way of generating and recalling display trigger event In notification message, specifically, can be positioned proximate on electronic device sensor or pressure sensor realization recall display touch The generation of hair event, for example, user can be by way of approaching or touching proximity sensor so that proximity sensor monitors Distance value be less than or equal to first threshold, recall display trigger event or user with existence and can be passed by press pressure The mode of sensor so that pressure value is greater than or equal to second threshold, and display trigger event is recalled to generate so that even if user comes Not as good as corresponding operating is executed in preset duration, notification message can also be viewed by way of recalling.
It is understood that in order to avoid maloperation, a duration can be set, notification message terminates certain after display In one duration, user can execute corresponding operating generation and recall display trigger event, if being more than the duration, can not generate and call together Echo shows trigger event, i.e., recall notice message and can not show.
In embodiments of the present invention, during showing notification message by floating frame, notification message can be utilized Keep the actual displayed duration of the trigger event control notification message of display so that the display duration of notification message is not limited to above-mentioned Preset duration, can controlling based on user fit for example, the actual displayed duration more shorter than above-mentioned preset duration It is indifferent to the scene of the notification message for user, avoids influence of the display of notification message to user's current operation, or ratio The longer actual displayed duration of above-mentioned preset duration, the scene for seeing notification message is needed suitable for user, is avoided because of display Duration too short-range missile family of applying needs to pull down notification bar the problem of further appreciating that the content of notification message.Therefore, by using logical Know that message keeps the trigger event of display that the actual displayed duration of notification message is made more to meet the actual demand of user, flexibility More preferably.And notification message can also again be shown logical after terminating to show by way of generating and recalling display trigger event Knowing message so that user need not exit full frame state after notification message terminates display, need not also pull down notification bar, Notification message can be viewed.
Referring to Fig. 4, for the structural schematic diagram of the display control unit of notification message in the embodiment of the present invention, the device packet It includes:
It receives display module 401 and the notification message is shown by floating frame for receiving notification message;
First determining module 402, for before the actual displayed duration of the notification message is equal to preset duration, determining Whether monitor that notification message keeps the trigger event of display;
If control module 403 controls the notification message and keeps dispaly state for monitoring the trigger event, Until the trigger event terminates;
Terminate module 404, if for not monitoring the trigger event, in the actual displayed duration of the notification message When equal to preset duration, terminate the display of the notification message.
In embodiments of the present invention, notification message is received, which is shown by floating frame, in notification message Actual displayed duration is equal to before preset duration, it is determined whether monitors that the notification message keeps the trigger event of display, if prison The trigger event is measured, then controls notification message and keeps dispaly state, until the trigger event terminates, if not monitoring triggering thing Part terminates the display of the notification message then when the actual displayed duration of notification message is equal to preset duration.Relative to existing Technology can utilize notification message to keep the trigger event control of display during showing notification message by floating frame The actual displayed duration of notification message processed so that the display duration of notification message is not limited to above-mentioned preset duration, can be based on using Family control, for example, the actual displayed duration more shorter than above-mentioned preset duration, is indifferent to the notice suitable for user The scene of message avoids influence of the display of notification message to user's current operation, or the reality longer than above-mentioned preset duration Border shows duration, and the scene for seeing notification message is needed suitable for user, avoids applying family needs because of display duration too short-range missile The problem of drop-down notification bar further appreciates that the content of notification message.Therefore, the triggering of display is kept by using notification message Event makes the actual displayed duration of notification message more meet the actual demand of user, and flexibility is more preferable.
Referring to Fig. 5, for the structural schematic diagram of the display control unit of notification message in the embodiment of the present invention, including as schemed Reception display module 401, the first determining module 402, control module 403 in 4 illustrated embodiments and terminate module 404, and with Content described in embodiment illustrated in fig. 4 is similar, is not repeated herein.
In embodiments of the present invention, the first determining module 402 includes:
First acquisition module 501 is used for before the actual displayed duration of the notification message is equal to preset duration, in real time Obtain the distance value of the proximity sensor in electronic device sensed;
Second determining module 502, for when the distance value is less than or equal to first threshold, determining and monitoring described touch Hair event;
Alternatively, first determining module 402 includes:
Third determining module 503, for when the pressure value for monitoring that the pressure sensor in the electronic device senses When more than or equal to second threshold, or when the long press operation in the display area for monitoring the notification message, prison is determined Measure the trigger event.
In embodiments of the present invention, which further includes:
Second acquisition module 504, for obtaining proximity sensor or pressure sensor induction on electronic device in real time To distance value or pressure value;
4th determining module 505 is used for when the distance value is less than or equal to first threshold, or works as the pressure value When more than or equal to second threshold, determines and recall display trigger event described in monitoring;
5th determining module 506, if recalling display trigger event for monitor notification message, it is determined that receive recently Goal notification message arriving and in notification bar;
Display module 507 shows the goal notification message for passing through floating frame in current display interface.
In embodiments of the present invention, during showing notification message by floating frame, notification message can be utilized Keep the actual displayed duration of the trigger event control notification message of display so that the display duration of notification message is not limited to above-mentioned Preset duration, can controlling based on user fit for example, the actual displayed duration more shorter than above-mentioned preset duration It is indifferent to the scene of the notification message for user, avoids influence of the display of notification message to user's current operation, or ratio The longer actual displayed duration of above-mentioned preset duration, the scene for seeing notification message is needed suitable for user, is avoided because of display Duration too short-range missile family of applying needs to pull down notification bar the problem of further appreciating that the content of notification message.Therefore, by using logical Know that message keeps the trigger event of display that the actual displayed duration of notification message is made more to meet the actual demand of user, flexibility More preferably.And notification message can also again be shown logical after terminating to show by way of generating and recalling display trigger event Knowing message so that user need not exit full frame state after notification message terminates display, need not also pull down notification bar, Notification message can be viewed.
Further, a kind of electronic device is also provided in embodiments of the present invention, which includes memory, processing Device and storage on a memory and the computer program that runs on a processor, when processor executes computer program, realize Fig. 2 Or each step in the display control method of the notification message in embodiment illustrated in fig. 3.
Further, a kind of storage medium is also provided in the embodiment of the present invention, is stored thereon with computer program, computer When program is executed by processor, each step in the display control method of Fig. 2 or the notification message in embodiment illustrated in fig. 3 is realized Suddenly.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the module, only Only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple module or components can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be the INDIRECT COUPLING or logical by some interfaces, device or module Letter connection can be electrical, machinery or other forms.
The module illustrated as separating component may or may not be physically separated, aobvious as module The component shown may or may not be physical module, you can be located at a place, or may be distributed over multiple On network module.Some or all of module therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each function module in each embodiment of the present invention can be integrated in a processing module, it can also That modules physically exist alone, can also two or more modules be integrated in a module.Above-mentioned integrated mould The form that hardware had both may be used in block is realized, can also be realized in the form of software function module.
If the integrated module is realized in the form of software function module and sells or use as independent product When, it can be stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
It should be noted that for each method embodiment above-mentioned, describe, therefore it is all expressed as a series of for simplicity Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the described action sequence because According to the present invention, certain steps may be used other sequences or be carried out at the same time.Secondly, those skilled in the art should also know It knows, embodiment described in this description belongs to preferred embodiment, and involved action and module might not all be this hairs Necessary to bright.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiments.
It is to a kind of display control method and device of notification message provided by the present invention, electronic device and storage above The description of medium, for those skilled in the art, the thought of embodiment, in specific implementation mode and applies model according to the present invention There will be changes are placed, to sum up, the content of the present specification should not be construed as limiting the invention.

Claims (10)

1. a kind of display control method of notification message, which is characterized in that the method includes:
Notification message is received, the notification message is shown by floating frame;
Before the actual displayed duration of the notification message is equal to preset duration, it is determined whether monitor that notification message keeps aobvious The trigger event shown;
If monitoring the trigger event, control the notification message and keep dispaly state, until the trigger event terminates;
If not monitoring the trigger event, when the actual displayed duration of the notification message is equal to preset duration, terminate The display of the notification message.
2. according to the method described in claim 1, it is characterized in that, described determine whether to monitor that notification message keeps display Trigger event, including:
The distance value of the proximity sensor in the electronic device sensed is obtained in real time;
When the distance value is less than or equal to first threshold, determination monitors the trigger event.
3. according to the method described in claim 1, it is characterized in that, described determine whether to monitor that notification message keeps display Trigger event, including:
When the pressure value that the pressure sensor monitored in the electronic device senses is greater than or equal to second threshold, or When the long press operation in the display area for monitoring the notification message, determination monitors the trigger event.
4. according to the method described in claims 1 to 3 any one, which is characterized in that the method further includes:
If monitor notification message recalls display trigger event, it is determined that target being most recently received and in notification bar Notification message;
The goal notification message is shown in current display interface by floating frame.
5. according to the method described in claim 4 any one, which is characterized in that the method further includes:
Either pressure sensor senses distance value or pressure value to the proximity sensor on acquisition electronic device in real time;
When the distance value is less than or equal to first threshold, or when the pressure value is greater than or equal to second threshold, really Surely display trigger event is recalled described in monitoring.
6. a kind of display control unit of notification message, which is characterized in that described device includes:
It receives display module and the notification message is shown by floating frame for receiving notification message;
First determining module, for before the actual displayed duration of the notification message is equal to preset duration, it is determined whether prison Measure the trigger event that notification message keeps display;
If control module controls the notification message and keeps dispaly state for monitoring the trigger event, until described Trigger event terminates;
If terminate module is equal to pre- for not monitoring the trigger event in the actual displayed duration of the notification message If when duration, terminating the display of the notification message.
7. device according to claim 6, which is characterized in that first determining module includes:
First acquisition module, for before the actual displayed duration of the notification message is equal to preset duration, obtaining electricity in real time The distance value of proximity sensor in sub-device sensed;
Second determining module, for when the distance value is less than or equal to first threshold, determination to monitor the trigger event;
Alternatively, first determining module includes:
Third determining module, for when monitoring that pressure value that the pressure sensor in the electronic device senses is more than or waits When second threshold, or when the long press operation in the display area for monitoring the notification message, determine described in monitoring Trigger event.
8. the device described according to claim 6 or 7, which is characterized in that described device further includes:
Second acquisition module senses distance value for obtaining proximity sensor on electronic device or pressure sensor in real time Or pressure value;
4th determining module, for when the distance value is less than or equal to first threshold, or be more than when the pressure value or When equal to second threshold, determines and recall display trigger event described in monitoring;
5th determining module, if recalling display trigger event for monitor notification message, it is determined that it is being most recently received and Goal notification message in notification bar;
Display module shows the goal notification message for passing through floating frame in current display interface.
9. a kind of electronic device, which is characterized in that the electronic device includes memory, processor and is stored in the memory Computer program that is upper and running on the processor, which is characterized in that when the processor executes the computer program, Realize each step in the display control method such as the notification message of claim 1 to 5 any one.
10. a kind of storage medium, is stored thereon with computer program, which is characterized in that the computer program is held by processor When row, each step in the display control method such as the notification message of claim 1 to 5 any one is realized.
CN201810377305.2A 2018-04-25 2018-04-25 Notification message display control method and device, electronic device and storage medium Active 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 true CN108803983A (en) 2018-11-13
CN108803983B CN108803983B (en) 2020-08-07

Family

ID=64093862

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810377305.2A Active 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109917985A (en) * 2019-02-22 2019-06-21 网易(杭州)网络有限公司 Information interacting method and device, medium and calculating equipment
CN113934331A (en) * 2020-06-29 2022-01-14 北京小米移动软件有限公司 Information processing method, device and storage medium
CN114268809A (en) * 2021-12-31 2022-04-01 广州方硅信息技术有限公司 Public screen control method and device in live broadcast room and computer equipment
CN116033064A (en) * 2022-05-30 2023-04-28 荣耀终端有限公司 Card display method, electronic device and readable storage medium

Citations (6)

* 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
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

Patent Citations (6)

* 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
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

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109917985A (en) * 2019-02-22 2019-06-21 网易(杭州)网络有限公司 Information interacting method and device, medium and calculating equipment
CN113934331A (en) * 2020-06-29 2022-01-14 北京小米移动软件有限公司 Information processing method, device and storage medium
CN113934331B (en) * 2020-06-29 2024-03-15 北京小米移动软件有限公司 Information processing method, device and storage medium
CN114268809A (en) * 2021-12-31 2022-04-01 广州方硅信息技术有限公司 Public screen control method and device in live broadcast room and computer equipment
CN114268809B (en) * 2021-12-31 2024-05-28 广州方硅信息技术有限公司 Public screen control method and device in live broadcasting room, computer equipment and medium
CN116033064A (en) * 2022-05-30 2023-04-28 荣耀终端有限公司 Card display method, electronic device and readable storage medium
CN116033064B (en) * 2022-05-30 2023-10-20 荣耀终端有限公司 Card display method, electronic device and readable storage medium

Also Published As

Publication number Publication date
CN108803983B (en) 2020-08-07

Similar Documents

Publication Publication Date Title
CN108111675B (en) Notification message processing method and device and mobile terminal
CN108803983A (en) Display control method and device, the electronic device and storage medium of notification message
CN108683798A (en) A kind of sound output control method and mobile terminal
CN112913199B (en) Data transmission method and related product
CN106060612A (en) Video playing method and video playing device
CN107633853B (en) Control method for playing audio and video files and user terminal
CN109273017A (en) Coding control method, device and electronic equipment
CN109379491A (en) Audio frequency playing method, device, electronic equipment and computer-readable medium
CN111371705B (en) Download task execution method and electronic device
CN106488413A (en) Notification message based reminding method and mobile terminal
CN114077414A (en) Audio playing control method and device, electronic equipment and storage medium
CN108600887B (en) Touch control method based on wireless earphone and related product
CN113223539A (en) Audio transmission method and electronic equipment
CN107911777B (en) Processing method and device for return-to-ear function and mobile terminal
CN104575548B (en) File plays localization method, device and terminal
CN111093137A (en) Volume control method, volume control equipment and computer readable storage medium
CN106951145A (en) Electricity based reminding method and mobile terminal during charging
CN108989545A (en) Control method, device, mobile terminal and the computer-readable medium of mobile terminal
CN111526248B (en) Audio output mode switching method and electronic equipment
CN107484082A (en) Method for controlling audio signal transmission based on sound channel and user terminal
CN108600807A (en) Video playing control method, device, terminal and computer-readable medium
CN108182582A (en) A kind of method of payment, terminal and computer readable storage medium
CN106534534A (en) Working mode switching method and mobile terminal
CN109040425B (en) Information processing method and related product
CN110415495B (en) Equipment loss processing method and related 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
GR01 Patent grant
GR01 Patent grant