CN107613115A - Event-prompting method, device, mobile terminal and readable storage medium storing program for executing - Google Patents
Event-prompting method, device, mobile terminal and readable storage medium storing program for executing Download PDFInfo
- Publication number
- CN107613115A CN107613115A CN201710796408.8A CN201710796408A CN107613115A CN 107613115 A CN107613115 A CN 107613115A CN 201710796408 A CN201710796408 A CN 201710796408A CN 107613115 A CN107613115 A CN 107613115A
- Authority
- CN
- China
- Prior art keywords
- event
- clear area
- display interface
- event content
- region unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention discloses a kind of event-prompting method, device, mobile terminal and readable storage medium storing program for executing, method includes:In the prompting triggering for the event that detects, event content corresponding to the event is obtained, the clear area of preparatory condition is determined for compliance with current display interface, above-mentioned event content is shown in the clear area.Compared to existing technologies, the embodiment of the present invention includes the event content of event in the clear area of display interface, so as to which the other notification messages that will not be received by mobile terminal cover, because user is during display interface is checked, the event content shown in clear area can be easy to the attention for causing user, the technical problem being unnoticed by the user is easy to therefore, it is possible to effectively solve event reminder message in the prior art.
Description
Technical field
The present invention relates to technical field of mobile terminals, more particularly to a kind of event-prompting method, device, mobile terminal and can
Read storage medium.
Background technology
With the popularization of mobile terminal, the importance of mobile terminal in people's daily life also more and more higher, while
Life to people brings great convenience, and critical event prompting or Adversaria prompting are as a necessary function of daily life
It is built in cell phone system, such as calendar, notepad system software all carries this kind of function.
At present, the event notification functions carried in mobile terminal, when carrying out event prompting, typically with reminder message
Mode is shown in status bar, and the reminder message typically can only be shown several seconds in status bar, be then just hidden in status bar, when
During the subsequently received other message of mobile terminal, the message that above-mentioned reminder message is just easy to newly be received covers, this
Sample can cause user to ignore above-mentioned notification message unavoidably, miss the event mapped out originally, therefore, mobile terminal in the prior art
Remind effect poor in the mode of status bar display alarm message, reminder message is easy to be unnoticed by the user.
The content of the invention
The main purpose of the embodiment of the present invention is to provide a kind of event-prompting method, device, mobile terminal and readable deposited
Storage media, can solve event reminder message of the prior art and remind effect poor, it is easy to which the technology being unnoticed by the user is asked
Topic.
To achieve the above object, first aspect of the embodiment of the present invention provides a kind of event-prompting method, and this method includes:
In the prompting triggering for the event that detects, event content corresponding to the event is obtained;
The clear area of preparatory condition is determined for compliance with current display interface;
The event content is shown in the clear area.
To achieve the above object, second aspect of the embodiment of the present invention provides a kind of affair prompting device, and the device includes:
Acquisition module, in the prompting triggering for the event that detects, obtaining event content corresponding to the event;
Searching modul, for being determined for compliance with the clear area of preparatory condition in current display interface;
Display module, for showing the event content in the clear area.
To achieve the above object, the third aspect of the embodiment of the present invention provides a kind of mobile terminal, including memory, processor
And store the computer program that can be run on a memory and on a processor, computer program described in the computing device
When, realize each step in the event-prompting method described in first aspect.
To achieve the above object, fourth aspect of the embodiment of the present invention provides a kind of readable storage medium storing program for executing, the readable storage
Medium is computer-readable recording medium, is stored thereon with computer program, real when the computer program is executed by processor
Each step in event-prompting method described in existing first aspect.
Event-prompting method provided in an embodiment of the present invention includes:In the prompting triggering for the event that detects, the thing is obtained
Event content corresponding to part, the clear area of preparatory condition is determined for compliance with current display interface, then in the clear area
The middle above-mentioned event content of display.Compared to existing technologies, the event content of event is included showing by the embodiment of the present invention
In the clear area at interface, so as to which the other notification messages that will not be received by mobile terminal cover, because user is looking into
During seeing display interface, the event content shown in clear area can be easy to the attention for causing user, therefore, effectively
Solve in the prior art event reminder message remind effect it is poor, it is easy to the technical problem being unnoticed by the user.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those skilled in the art, on the premise of not paying creative work, can also basis
These accompanying drawings obtain other accompanying drawings.
Fig. 1 is a kind of structured flowchart of mobile terminal;
Fig. 2 is the schematic flow sheet of event-prompting method in first embodiment of the invention;
Fig. 3 is the schematic flow sheet of the refinement step of step 202 in first embodiment of the invention;
Fig. 4 is to generate the schematic diagram of a scenario of suspended window in display interface in the present invention;
Fig. 5 is the schematic flow sheet of the refinement step of step 203 in first embodiment of the invention;
Fig. 6 is the schematic diagram of a scenario that the present invention shows event content in clear area;
Fig. 7 is another schematic diagram of a scenario that the present invention shows event content in clear area;
Fig. 8 is the schematic flow sheet of event-prompting method in second embodiment of the invention;
Fig. 9 is the schematic diagram of the program module of affair prompting device in third embodiment of the invention;
Figure 10 is the schematic diagram of the elaborator module of searching modul in third embodiment of the invention;
Figure 11 is the schematic diagram of the elaborator module of display module in third embodiment of the invention;
Figure 12 is the schematic diagram of the program module of affair prompting device in fourth embodiment of the invention.
Embodiment
To enable goal of the invention, feature, the advantage of the present invention more obvious and understandable, below in conjunction with the present invention
Accompanying drawing in embodiment, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described reality
It is only part of the embodiment of the present invention to apply example, and not all embodiments.Based on the embodiment in the present invention, people in the art
The every other embodiment that member is obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Reference picture 1, Fig. 1 show a kind of structured flowchart of mobile terminal.Event prompting side provided in an embodiment of the present invention
Method can be applied in mobile terminal 10 as shown in Figure 1, and mobile terminal 10 can be, but not limited to include:Battery need to be relied on to maintain just
Often operation and support network and the smart mobile phone of download function, notebook, tablet personal computer, wearing smart machine etc..
As shown in figure 1, mobile terminal 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.These components are mutually communicated by one or more communication bus/signal wire 109.
It is appreciated that the structure shown in Fig. 1 is only to illustrate, it does not cause to limit to the structure of mobile terminal.It is mobile whole
End 10 may also include more either less components than shown in Fig. 1 or have the configuration different from shown in Fig. 1.Shown in Fig. 1
Each component can use hardware, software or its combination to realize.
Memory 101 can be used for storage software program and module, such as the event-prompting method in the embodiment of the present invention and
Programmed instruction/module corresponding to mobile terminal, processor 103 by operation be stored in software program in memory 101 and
Module, so as to perform various function application and data processing, that is, realize above-mentioned event-prompting method.
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
Relative to the remotely located memory of processor 103, these remote memories can pass through network connection to mobile terminal 10.On
The example for stating network includes but is not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.Processor 103
And access of other possible components to memory 101 can be carried out under the control of storage control 102.
Various input/output devices are coupled to CPU and memory 101 by Peripheral Interface 104.The operation of processor 103 is deposited
Various softwares in reservoir 101, instruction are to perform the various functions of mobile terminal 10 and carry out data processing.
In certain embodiments, Peripheral Interface 104, processor 103 and storage control 102 can be in one single chips
Realize.In some other example, they can be realized by independent chip respectively.
Radio-frequency module 105 is used to receiving and sending electromagnetic wave, realizes the mutual conversion of electromagnetic wave and electric signal, so that with
Communication network or other equipment are communicated.Radio-frequency module 105 may include the various existing electricity for being used to perform 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 CDMA (Wideband Code Division Multiple Access, W-CDMA), CDMA
(Code Division Access, CDMA), TDMA (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 are used for the agreement of mail, instant messaging and short message, and any other is suitable
Communications protocol.
Key-press module 106 provides the interface that is inputted to mobile terminal of user, user can by press it is different by
Key is so that mobile terminal 10 performs different functions.
Audio-frequency module 107 provides a user COBBAIF, and it may include one or more microphones, one or more raises
Sound device and voicefrequency circuit.Voicefrequency circuit receives voice data at Peripheral Interface 104, and voice data is converted into power information,
Power information is transmitted to loudspeaker.Loudspeaker is converted to power information the sound wave that human ear can hear.Voicefrequency circuit is also from microphone
Place receives power information, converts electrical signals to voice data, and by data transmission in network telephony into Peripheral Interface 104 to enter traveling one
The processing of step.Voice data can obtain at memory 101 or by radio-frequency module 105.In addition, voice data can also
Store into memory 101 or be transmitted by radio-frequency module 105.In some instances, audio-frequency module 107 may also include
One earphone broadcasts hole, for providing COBBAIF to earphone or other equipment.
Touch Screen 108 provides an output and inputting interface simultaneously between mobile terminal and user.Specifically, touch-control
Screen 108 shows video frequency output to user, and the contents of these video frequency outputs may include word, figure, video and its any group
Close.Some output results correspond to some user interface objects.Touch Screen 108 also receives the input of user, such as user
Click, the gesture operation such as slip, so that input of the user interface object to these users responds.Detect user's input
Technology can be based on resistance-type, condenser type or other any possible touch control detection technologies.The display unit of Touch Screen 108
Instantiation include but is not limited to liquid crystal display or light emitting polymer displays.
Event-prompting method in the embodiment of the present invention is described based on above-mentioned mobile terminal.
Because in the prior art, mobile terminal reminds effect poor in the mode of status bar display alarm message, exists and carries
Awake message is easy to the technical problem being unnoticed by the user.
In order to solve the above-mentioned technical problem, the present invention proposes a kind of event-prompting method, in the method, is detecting thing
During the prompting triggering of part, event content corresponding to the event is obtained, the sky of preparatory condition is determined for compliance with current display interface
Not busy region, above-mentioned event content then will be shown in the clear area, the attention of user is caused with this, can effectively be kept away
Exempt from the technical problem that reminder message is unnoticed by the user.
Referring to Fig. 2, Fig. 2 is the schematic flow sheet of event-prompting method in first embodiment of the invention, this method includes:
Step 201, the event that detects prompting triggering when, obtain event content corresponding to the event;
In the embodiment of the present invention, user first adds event in mobile terminal, then sets the triggered time of the event.Example
Event " taking medicine on time " is added such as in calendar or notepad, the triggered time for then setting the event is " 21:00 " etc..
When the system time of mobile terminal is identical with the above-mentioned triggered time, then the prompting item of above-mentioned event is triggered, this
When, event content corresponding to above-mentioned event is obtained, such as " is taken medicine on time ".
In addition, message that above-mentioned event can also receive for short message, mail, some interior application of mobile terminal etc..
Step 202, the clear area for being determined for compliance with current display interface preparatory condition;
In the embodiment of the present invention, after the event content of above-mentioned event is got, in current display circle of mobile terminal
Face is determined for compliance with the clear area of preparatory condition.
It is understood that mobile terminal is under most of service conditions, it is general in its display interface all to exist
Clear area, without any word or image is shown in the region, i.e., for a user, be not present in the region in it is any can be sharp
Useful information.
Wherein, the position of above-mentioned clear area and size are related to the content shown in above-mentioned display interface, display interface
Different contents is shown, the position of above-mentioned clear area and size also can be different, i.e., above-mentioned clear area is in display interface
Position and size can change with the change of display interface display content.
Step 203, the event content is shown in the clear area.
In the embodiment of the present invention, it is determined that after above-mentioned clear area, then shown in the clear area in above-mentioned event
Hold, such as " taking medicine on time " four words are shown in above-mentioned clear area.
Wherein, above-mentioned event content can be only shown in above-mentioned clear area, a message box can also be shown, then
Above-mentioned event content is shown in the message box.
Wherein, in order to preferably attract the notice of user, above-mentioned event content can also be in clear area with certain
Frequency scintillation show.
In addition, while showing above-mentioned event content in above-mentioned clear area, can also trigger preset in mobile terminal
The tinkle of bells reminded.
In the embodiment of the present invention, in the prompting triggering for the event that detects, event content corresponding to the event is obtained, is being worked as
The clear area of preparatory condition is determined for compliance with preceding display interface, above-mentioned event content is then shown in the clear area.Phase
For prior art, the present embodiment includes the event content of event in the clear area of display interface, so that will not
The other notification messages received by mobile terminal cover, because user is during display interface is checked, free area
The event content shown in domain can be easy to the attention for causing user, therefore, effectively solve event in the prior art and carry
Prompting message effect of waking up is poor, it is easy to the technical problem being unnoticed by the user.
Further, based on first embodiment, referring to Fig. 3, Fig. 3 is the thin of step 202 in first embodiment of the invention
Change the schematic flow sheet of step, the step 202 includes:
Step 301, the gray value or colour of each pixel in current display interface, the ash based on each pixel are obtained
The display interface is divided into multiple region units by angle value or colour;
In the embodiment of the present invention, it is determined that during above-mentioned clear area, the gray scale of each pixel in current display interface is obtained
Value or colour, are then based on the gray value of each pixel or display interface are divided into multiple region units by the size of colour.
Specifically, the gray value of each pixel is divided into several gray value intervals, will locate in above-mentioned display interface
In the block of pixels that the neighbor pixel in same gray value interval forms as above-mentioned zone block;Or by each pixel
Colour is divided into several colour sections, and the neighbor pixel being in above-mentioned display interface in same colour section is formed
Block of pixels is as above-mentioned zone block.Wherein it is possible to using threshold algorithms (being called threshold segmentation algorithm) to realize
State the division of region unit.
Wherein, above-mentioned colour represents a kind of color color value corresponding in different color modes.If red is in RGB
Corresponding value is exactly (255,0,0) in color mode;Green value corresponding in RGB color pattern is exactly (0,255,0);
Blueness value corresponding in RGB color pattern is exactly (0,0,255).
Wherein, to obtain in current display interface exemplified by the gray value of each pixel, it is assumed that by the gray scale of each pixel
Value is divided into 8 gray value intervals, then the 1st gray value interval is [0,31], the 2nd gray value interval for [32,
63] ... ..., the 8th gray value interval is [224,255].Then the adjacent pixel in same gray scale interval is formed
Block of pixels is as above-mentioned zone block.Wherein, above-mentioned zone block is rectangle.
Step 302, judge in the multiple region unit with the presence or absence of meeting the region unit of preparatory condition, it is described meet it is default
Condition is that display area required when region unit area is shown with the event content matches;
In the embodiment of the present invention, it is contemplated that when the content shown in display interface is more complicated, or above-mentioned event content
Comprising number of words it is more when, may be not present in display interface can show the clear area of above-mentioned event content, therefore need
First the number of words in above-mentioned event content and the font size that pre-sets, display format etc. to determine above-mentioned event content
Required display area during display, as the number of words in event content is more, then required display area is also bigger when showing;
Then according to the display area determined, judge to whether there is the region unit for meeting preparatory condition in above-mentioned multiple region units, its
In, meet preparatory condition and refer to that display area required when region unit area is shown with above-mentioned event content matches.
Wherein, the situation that required display area matches when region unit area is shown with event content includes:When upper
State only existed in multiple region units an area be more than above-mentioned display area region unit when, then it is assumed that the region unit of the region unit
The display area of area and above-mentioned event content matches;It is big when two or more areas in above-mentioned multiple region units be present
In the region unit of above-mentioned display area, then it is assumed that the maximum or minimum region unit of area in the two or more than two region units
The display area of region unit area and above-mentioned event content match.
Step 303, if the region unit for meeting preparatory condition in the multiple region unit be present, preparatory condition will be met
Region unit is as the clear area.
Specifically, when only existed in above-mentioned multiple region units an area be more than above-mentioned display area region unit when, then
The region unit meets preparatory condition, using the region unit as above-mentioned clear area;When in above-mentioned multiple region units exist two or
When two or more area is more than the region unit of above-mentioned display area, it is determined that region unit in the two or more than two region units
Area is maximum or minimum region unit meets preparatory condition, and using the maximum or minimum region unit of the region unit area as above-mentioned
Clear area.
Further, above-mentioned event-prompting method also includes:
Step 304, if the region unit for meeting preparatory condition is not present in the multiple region unit, in the display interface
Predeterminated position generation suspended window, and using the suspended window as the clear area.
In the embodiment of the present invention, when the clear area that can show above-mentioned event content is not present in display interface, then
Suspended window is generated in the setting position of display interface, using the suspended window as above-mentioned white space.
Wherein, above-mentioned suspended window is preferably translucent suspended window.
For a better understanding of the present invention, reference picture 4, Fig. 4 are to generate the scene of suspended window in display interface in the present invention
Schematic diagram, wherein, the suspended window in Fig. 4 is translucent suspended window.
In the embodiment of the present invention, display interface is drawn based on the gray value of each pixel in current display interface or colour
It is divided into multiple region units, if the region unit for meeting preparatory condition in this multiple region unit be present, the area of preparatory condition will be met
Domain block is as clear area;Otherwise, display interface predeterminated position generation suspended window as above-mentioned clear area, so as to
Determine the clear area for meeting preparatory condition in current display interface.
Further, based on first embodiment, referring to Fig. 5, Fig. 5 is the thin of step 203 in first embodiment of the invention
Change the schematic flow sheet of step, the step 203 includes:
Step 501, transparent text box is inserted in the clear area, and the event content is imported into the transparent text
This inframe;
Step 502, the average color for calculating each pixel in the clear area, by the event of the transparent text inframe
The colour of pixel shared by content is arranged to the inverse of the average color.
In the embodiment of the present invention, it is determined that after above-mentioned clear area, transparent text box is inserted in the clear area, so
Above-mentioned event content is imported into the transparent text inframe afterwards.Then the average color of each pixel in above-mentioned clear area is calculated
Value, then the colour of the pixel shared by the event content of transparent text inframe is arranged to the inverse of the average color, i.e., on
The font color for stating event content is the inverse of above-mentioned clear area.For example, when clear area is white, then in above-mentioned event
The font color of appearance is black, and when clear area is blue, then the font color of above-mentioned event content is yellow.
For a better understanding of the present invention, reference picture 6, Fig. 6 are to be shown in first embodiment of the invention in clear area
The schematic diagram of a scenario of event content.In figure 6, event content " 21 is shown in the clear area of display interface:00 takes medicine on time ".
In addition, in the embodiment of the present invention, a message box can also be shown in above-mentioned clear area, then in the message
Inframe shows above-mentioned event content.Fig. 7 is refer to, Fig. 7 is to be shown in first embodiment of the invention in clear area in event
Another schematic diagram of a scenario held.In the figure 7, a message box is shown in the clear area of display interface, then in the message box
Interior display event content " 21:00 takes medicine on time ".
In embodiments of the present invention, it is determined that after clear area in display interface, inserted in the clear area saturating
Bright text box, above-mentioned event content is then imported into the transparent text inframe, so as to be shown in above-mentioned clear area
Event content is stated, meanwhile, the font color of above-mentioned event content is the inverse of clear area color, is easy to find, so as to
Prevent user from ignoring above-mentioned event content.
Further, based on first embodiment, referring to Fig. 8, Fig. 8 is event-prompting method in second embodiment of the invention
Schematic flow sheet, the event-prompting method includes:
Step 801, the event that detects prompting triggering when, obtain event content corresponding to the event;
Step 802, the clear area for being determined for compliance with current display interface preparatory condition;
Step 803, the event content is shown in the clear area;
In embodiments of the present invention, step 201 in step 801 describes to step 803 content and first embodiment to
The content that step 203 describes is similar, refers to step 201 to step 203, does not repeat herein.
If step 804, the handover operation for detecting display interface, return and perform step 802;
If step 803, detecting reading instruction, display of the event content in the clear area is cancelled.
In the embodiment of the present invention, after above-mentioned event content is shown in above-mentioned clear area, if detecting display interface
Handover operation, then the clear area of preparatory condition is determined for compliance with current display interface again, then in the sky newly determined
Above-mentioned event content is shown in not busy region again;If detecting the reading instruction of user, such as detect in user's clicking trigger
State event content, and trigger " cancellation " or "read" instruction after, then cancel display of the above-mentioned event content in clear area.
Wherein, if being not detected by reading instruction, above-mentioned event content is shown always in the clear area of display interface.
In the embodiment of the present invention, after above-mentioned event content is shown in above-mentioned clear area, if detecting display interface
Handover operation, then the clear area of preparatory condition is determined for compliance with current display interface again, then in the sky newly determined
Above-mentioned event content is shown in not busy region again;If detecting the reading instruction of user, above-mentioned event content is cancelled in the free time
Display in region, i.e. event content can be shown in the clear area of display interface always before user confirms, so as to prevent
Reminder message is unnoticed by the user.
Further, referring to Fig. 9, the program module that Fig. 9 is affair prompting device in third embodiment of the invention is shown
It is intended to, the device includes:
Acquisition module 901, in the prompting triggering for the event that detects, obtaining event content corresponding to the event;
In the embodiment of the present invention, user first adds event in mobile terminal, then sets the triggered time of the event.Example
Event " taking medicine on time " is added such as in calendar or notepad, the triggered time for then setting the event is " 21:00 " etc..
When the system time of mobile terminal is identical with the above-mentioned triggered time, then the prompting item of above-mentioned event is triggered, this
When, acquisition module 901 obtains event content corresponding to above-mentioned event, such as " takes medicine on time ".
In addition, message that above-mentioned event can also receive for short message, mail, some interior application of mobile terminal etc..
Searching modul 902, for being determined for compliance with the clear area of preparatory condition in current display interface;
In the embodiment of the present invention, after the event content of above-mentioned event is got, searching modul 902 is worked as in mobile terminal
Preceding display interface searches the clear area for meeting preparatory condition.
It is understood that mobile terminal is under most of service conditions, it is general in its display interface all to exist
Clear area, without any word or image is shown in the region, i.e., for a user, be not present in the region in it is any can be sharp
Useful information.
Wherein, the position of above-mentioned clear area and size are related to the content shown in above-mentioned display interface, display interface
Different contents is shown, the position of above-mentioned clear area and size also can be different, i.e., above-mentioned clear area is in display interface
Position and size can change with the change of display interface display content.
Display module 903, for showing the event content in the clear area.
In the embodiment of the present invention, it is determined that after above-mentioned clear area, then shown in the clear area in above-mentioned event
Hold, such as " taking medicine on time " four words are shown in above-mentioned clear area.
Wherein, above-mentioned event content can be only shown in above-mentioned clear area, a message box can also be shown, then
Above-mentioned event content is shown in the message box.
Wherein, in order to preferably attract the notice of user, above-mentioned event content can also be in clear area with certain
Frequency scintillation show.
In addition, while showing above-mentioned event content in above-mentioned clear area, can also trigger preset in mobile terminal
The tinkle of bells reminded.
In the embodiment of the present invention, said apparatus includes acquisition module 901, for the event that detects prompting triggering when,
Obtain event content corresponding to the event;Searching modul 902, for being determined for compliance with the sky of preparatory condition in current display interface
Not busy region;Display module 903, for showing above-mentioned event content in the clear area.Compared to existing technologies, this reality
Applying example includes the event content of event in the clear area of display interface, so as to other that will not be received by mobile terminal
Notification message covered, because user is during display interface is checked, the event content shown in clear area can
The attention for causing user is easy to, therefore, event reminder message in the prior art is effectively solved and reminds effect poor, hold very much
The technical problem being easily unnoticed by the user.
Further, based on 3rd embodiment, referring to Fig. 10, Figure 10 is searching modul in third embodiment of the invention
The schematic diagram of 902 elaborator module, the searching modul 902 include:
Division module 1001, for obtaining the gray value or colour of each pixel in current display interface, based on each
The display interface is divided into multiple region units by the gray value or colour of pixel;
In the embodiment of the present invention, it is determined that during above-mentioned clear area, division module 1001 obtains each in current display interface
The gray value or colour of individual pixel, be then based on the gray value of each pixel or the size of colour display interface is divided into it is more
Individual region unit.
Specifically, the gray value of each pixel is divided into several gray value intervals, will locate in above-mentioned display interface
In the block of pixels that the neighbor pixel in same gray value interval forms as above-mentioned zone block;Or by each pixel
Colour is divided into several colour sections, and the neighbor pixel being in above-mentioned display interface in same colour section is formed
Block of pixels is as above-mentioned zone block.Wherein it is possible to using threshold algorithms (being called threshold segmentation algorithm) to realize
State the division of region unit.
Wherein, above-mentioned colour represents a kind of color color value corresponding in different color modes.If red is in RGB
Corresponding value is exactly (255,0,0) in color mode;Green value corresponding in RGB color pattern is exactly (0,255,0);
Blueness value corresponding in RGB color pattern is exactly (0,0,255).
Wherein, to obtain in current display interface exemplified by the gray value of each pixel, it is assumed that by the gray scale of each pixel
Value is divided into 8 gray value intervals, then the 1st gray value interval is [0,31], and the 2nd gray value interval is [32,63] ...
8th gray value interval is [224,255].Then using in same gray scale interval adjacent pixel form block of pixels as
Above-mentioned zone block.Wherein, above-mentioned zone block is rectangle.
Judge module 1002, for judging in the multiple region unit with the presence or absence of the region unit for meeting preparatory condition, institute
State and meet required display area when preparatory condition shows for region unit area with the event content and match;
In the embodiment of the present invention, it is contemplated that when the content shown in display interface is more complicated, or above-mentioned event content
Comprising number of words it is more when, may be not present in display interface can show the clear area of above-mentioned event content, therefore need
First the number of words in above-mentioned event content and the font size that pre-sets, display format etc. to determine above-mentioned event content
Required display area during display, as the number of words in event content is more, then required display area is also bigger when showing;
Then according to the display area determined, judge to whether there is the region unit for meeting preparatory condition in above-mentioned multiple region units, its
In, meet preparatory condition and refer to that display area required when region unit area is shown with above-mentioned event content matches.
Wherein, the situation that required display area matches when region unit area is shown with event content includes:When upper
State only existed in multiple region units an area be more than above-mentioned display area region unit when, then it is assumed that the region unit of the region unit
The display area of area and above-mentioned event content matches;It is big when two or more areas in above-mentioned multiple region units be present
In the region unit of above-mentioned display area, then it is assumed that the maximum or minimum region unit of area in the two or more than two region units
The display area of region unit area and above-mentioned event content match.
Determining module 1003, if for the region unit for meeting preparatory condition in the multiple region unit be present, it will meet
The region unit of preparatory condition is as the clear area.
Specifically, when only existed in above-mentioned multiple region units an area be more than above-mentioned display area region unit when, then
The region unit meets preparatory condition, using the region unit as above-mentioned clear area;When in above-mentioned multiple region units exist two or
When two or more area is more than the region unit of above-mentioned display area, it is determined that region unit in the two or more than two region units
Area is maximum or minimum region unit meets preparatory condition, and using the maximum or minimum region unit of the region unit area as above-mentioned
Clear area.
Further, above-mentioned affair prompting device also includes:
Generation module 1004, if meeting the region unit of preparatory condition for being not present in the multiple region unit, in institute
The predeterminated position generation suspended window of display interface is stated, and using the suspended window as the clear area.
In the embodiment of the present invention, when the clear area that can show above-mentioned event content is not present in display interface, then
In the setting position of display interface, generation meets the translucent suspended window of preparatory condition, using the translucent suspended window as above-mentioned sky
White region.
Wherein, above-mentioned suspended window is preferably translucent suspended window.
For a better understanding of the present invention, reference picture 4, Fig. 4 are to generate the scene of suspended window in display interface in the present invention
Schematic diagram, wherein, the suspended window in Fig. 4 is translucent suspended window..
In the embodiment of the present invention, display interface is drawn based on the gray value of each pixel in current display interface or colour
It is divided into multiple region units, if the region unit for meeting preparatory condition in this multiple region unit be present, the area of preparatory condition will be met
Domain block is as clear area;Otherwise, translucent suspended window is generated as above-mentioned clear area in the predeterminated position of display interface, from
And the clear area for meeting preparatory condition in current display interface can be determined.
Further, based on 3rd embodiment, Figure 11 is referred to, Figure 11 is display module in third embodiment of the invention
The schematic diagram of 903 elaborator module, the display module 903 include:
Module 1101 is inserted, is imported for inserting transparent text box in the clear area, and by the event content
The transparent text inframe;
Toning module 1102, for calculating the average color of each pixel in the clear area, by the transparent text
The colour of pixel shared by the event content of inframe is arranged to the inverse of the average color.
In the embodiment of the present invention, it is determined that after above-mentioned clear area, insertion module 1101 is inserted in the clear area
Transparent text box, and above-mentioned event content is imported into the transparent text inframe.Then toning module 1102 calculates above-mentioned free area
The average color of each pixel in domain, the colour of the pixel shared by the event content of transparent text inframe is arranged to this and put down
The inverse of equal colour, i.e., the font color of above-mentioned event content are the inverse of above-mentioned clear area.For example, when clear area is white
During color, then the font color of above-mentioned event content is black, when clear area for it is blue when, then the font face of above-mentioned event content
Color is yellow.
For a better understanding of the present invention, reference picture 6, Fig. 6 are the field that the present invention shows event content in clear area
Scape schematic diagram.In figure 6, event content " 21 is shown in the clear area of display interface:00 takes medicine on time ".
In addition, in the embodiment of the present invention, a message box can also be shown in above-mentioned clear area, then in the message
Inframe shows above-mentioned event content.Fig. 7 is refer to, Fig. 7 is another scene that the present invention shows event content in clear area
Schematic diagram.In the figure 7, a message box is shown in the clear area of display interface, is then shown in the message box in event
Hold " 21:00 takes medicine on time ".
In embodiments of the present invention, it is determined that after clear area in display interface, inserted in the clear area saturating
Bright text box, above-mentioned event content is then imported into the transparent text inframe, so as to be shown in above-mentioned clear area
Event content is stated, meanwhile, the font color of above-mentioned event content is the inverse of clear area color, is easy to find, so as to
Prevent user from ignoring above-mentioned event content.
Further, based on 3rd embodiment, Figure 12 is referred to, Figure 12 is that event reminds dress in fourth embodiment of the invention
The schematic diagram for the program module put, the affair prompting device include:
Acquisition module 901, in the prompting triggering for the event that detects, obtaining event content corresponding to the event;
Searching modul 902, for being determined for compliance with the clear area of preparatory condition in current display interface;
Display module 903, for showing the event content in the clear area;
First detection module 1201, if the handover operation for detecting display interface, return and perform step 802;
Second detection module 1202, if for detecting reading instruction, the event content is cancelled in the free area
Display in domain.
In the embodiment of the present invention, after above-mentioned event content is shown in above-mentioned clear area, if detecting display interface
Handover operation, then the clear area of preparatory condition is determined for compliance with current display interface again, then in the sky newly determined
Above-mentioned event content is shown in not busy region again;If detecting the reading instruction of user, such as detect in user's clicking trigger
State event content, and trigger " cancellation " or "read" instruction after, then cancel display of the above-mentioned event content in clear area.
Wherein, if being not detected by reading instruction, above-mentioned event content is shown always in the clear area of display interface.
In the embodiment of the present invention, after above-mentioned event content is shown in above-mentioned clear area, if detecting display interface
Handover operation, then the clear area of preparatory condition is determined for compliance with current display interface again, then in the sky newly determined
Above-mentioned event content is shown in not busy region again;If detecting the reading instruction of user, above-mentioned event content is cancelled in the free time
Display in region, i.e. event content can be shown in the clear area of display interface always before user confirms, so as to prevent
Reminder message is unnoticed by the user.
The embodiment of the present invention also provides a kind of mobile terminal, including memory, processor and storage are on a memory and can
The computer program run on a processor, during computing device computer program, realize first embodiment or second embodiment
In event-prompting method in each step.
The embodiment of the present invention also provides a kind of readable storage medium storing program for executing, and the readable storage medium storing program for executing is computer-readable storage medium
Matter, computer program is stored thereon with, when computer program is executed by processor, realized in first embodiment or second embodiment
Event-prompting method in each step.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it can be passed through
Its mode is realized.For example, device embodiment described above is only schematical, for example, the division of the module, only
Only a kind of division of logic function, there can be other dividing mode when actually realizing, 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 do not perform.It is another, it is shown or discussed
Mutual coupling or direct-coupling or communication connection can be the INDIRECT COUPLINGs or logical by some interfaces, device or module
Letter connection, can be electrical, mechanical or other forms.
The module illustrated as separating component can be or may not be physically separate, show as module
The part shown can be or may not be physical module, you can with positioned at a place, or can also be distributed to multiple
On mixed-media network modules mixed-media.Some or all of module therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional module in each embodiment of the present invention can be integrated in a processing module, can also
That modules are individually physically present, can also two or more modules be integrated in a module.Above-mentioned integrated mould
Block can both be realized in the form of hardware, 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 is used as independent production marketing or use
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part to be contributed in other words to prior art or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer
Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment methods described of the present invention
Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (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 foregoing each method embodiment, in order to which simplicity describes, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because
According to the present invention, some steps can use other orders or carry out simultaneously.Secondly, those skilled in the art should also know
Know, 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, the description to each embodiment all emphasizes particularly on different fields, and does not have 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 event-prompting method provided by the present invention, device, mobile terminal and readable storage medium storing program for executing above
Description, for those skilled in the art, according to the thought of the embodiment of the present invention, in specific embodiments and applications
It will change, to sum up, this specification content should not be construed as limiting the invention.
Claims (12)
1. a kind of event-prompting method, it is characterised in that methods described includes:
In the prompting triggering for the event that detects, event content corresponding to the event is obtained;
The clear area of preparatory condition is determined for compliance with current display interface;
The event content is shown in the clear area.
2. according to the method for claim 1, it is characterised in that described that preparatory condition is determined for compliance with current display interface
Clear area the step of include:
The gray value or colour of each pixel in current display interface are obtained, gray value or colour based on each pixel will
The display interface is divided into multiple region units;
Judge that the preparatory condition that meets is region unit with the presence or absence of the region unit for meeting preparatory condition in the multiple region unit
Area display area required when being shown with the event content matches;
If the region unit for meeting preparatory condition in the multiple region unit be present, the region unit of preparatory condition will be met as institute
State clear area.
3. according to the method for claim 2, it is characterised in that methods described also includes:
If the region unit for meeting preparatory condition is not present in the multiple region unit, given birth in the predeterminated position of the display interface
Into suspended window, and using the suspended window as the clear area.
4. according to the method for claim 1, it is characterised in that described that the event content is shown in the clear area
The step of include:
Transparent text box is inserted in the clear area, and the event content is imported into the transparent text inframe;
The average color of each pixel in the clear area is calculated, by shared by the event content of the transparent text inframe
The colour of pixel is arranged to the inverse of the average color.
5. according to the method described in Claims 1-4 any one, it is characterised in that described to be shown in the clear area
Also include after the step of event content:
If detecting the handover operation of display interface, return and preparatory condition is determined for compliance with current display interface described in performing
Clear area the step of;
If detecting reading instruction, display of the event content in the clear area is cancelled.
6. a kind of affair prompting device, it is characterised in that described device includes:
Acquisition module, in the prompting triggering for the event that detects, obtaining event content corresponding to the event;
Searching modul, for being determined for compliance with the clear area of preparatory condition in current display interface;
Display module, for showing the event content in the clear area.
7. device according to claim 6, it is characterised in that the searching modul includes:
Division module, for obtaining the gray value or colour of each pixel in current display interface, based on each pixel
The display interface is divided into multiple region units by gray value or colour;
Judge module, for judging in the multiple region unit with the presence or absence of meeting the region unit of preparatory condition, it is described meet it is pre-
If condition display area required when being shown for region unit area with the event content matches;
Determining module, if for the region unit for meeting preparatory condition in the multiple region unit be present, preparatory condition will be met
Region unit as the clear area.
8. device according to claim 7, it is characterised in that described device also includes:
Generation module, if meeting the region unit of preparatory condition for being not present in the multiple region unit, in display circle
The predeterminated position generation suspended window in face, and using the suspended window as the clear area.
9. device according to claim 6, it is characterised in that the display module includes:
Module is inserted, for inserting transparent text box in the clear area, and event content importing is described transparent
In text box;
Toning module, for calculating the average color of each pixel in the clear area, by the thing of the transparent text inframe
The colour of pixel shared by part content is arranged to the inverse of the average color.
10. according to the device described in claim 6 to 9 any one, it is characterised in that described device also includes:
First detection module, if the handover operation for detecting display interface, return and perform the searching modul;
Second detection module, if for detecting reading instruction, it is aobvious in the clear area to cancel the event content
Show.
11. a kind of mobile terminal, including memory, processor and storage are on a memory and the calculating that can run on a processor
Machine program, it is characterised in that described in the computing device during computer program, realize described in claim 1 to 5 any one
Event-prompting method in each step.
12. a kind of readable storage medium storing program for executing, the readable storage medium storing program for executing is computer-readable recording medium, is stored thereon with computer
Program, it is characterised in that when the computer program is executed by processor, realize the thing described in claim 1 to 5 any one
Each step in part based reminding method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710796408.8A CN107613115A (en) | 2017-09-06 | 2017-09-06 | Event-prompting method, device, mobile terminal and readable storage medium storing program for executing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710796408.8A CN107613115A (en) | 2017-09-06 | 2017-09-06 | Event-prompting method, device, mobile terminal and readable storage medium storing program for executing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107613115A true CN107613115A (en) | 2018-01-19 |
Family
ID=61057501
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710796408.8A Pending CN107613115A (en) | 2017-09-06 | 2017-09-06 | Event-prompting method, device, mobile terminal and readable storage medium storing program for executing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107613115A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108449513A (en) * | 2018-03-28 | 2018-08-24 | 努比亚技术有限公司 | A kind of interaction regulation and control method, equipment and computer readable storage medium |
CN109885374A (en) * | 2019-02-28 | 2019-06-14 | 北京小米移动软件有限公司 | A kind of interface display processing method, device, mobile terminal and storage medium |
CN110507302A (en) * | 2019-08-09 | 2019-11-29 | Oppo(重庆)智能科技有限公司 | Heart rate detection method and device based on display screen |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102638634A (en) * | 2011-02-10 | 2012-08-15 | 佳能株式会社 | Image processing apparatus and image processing method |
CN102970343A (en) * | 2012-10-31 | 2013-03-13 | 北京小米科技有限责任公司 | Method and device for displaying push information |
CN105100444A (en) * | 2015-06-29 | 2015-11-25 | 小米科技有限责任公司 | Information display method and device |
CN105867729A (en) * | 2016-03-25 | 2016-08-17 | 努比亚技术有限公司 | A message display device and method |
CN106921798A (en) * | 2017-02-17 | 2017-07-04 | 珠海市魅族科技有限公司 | The processing method and processing device of notification message |
-
2017
- 2017-09-06 CN CN201710796408.8A patent/CN107613115A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102638634A (en) * | 2011-02-10 | 2012-08-15 | 佳能株式会社 | Image processing apparatus and image processing method |
CN102970343A (en) * | 2012-10-31 | 2013-03-13 | 北京小米科技有限责任公司 | Method and device for displaying push information |
CN105100444A (en) * | 2015-06-29 | 2015-11-25 | 小米科技有限责任公司 | Information display method and device |
CN105867729A (en) * | 2016-03-25 | 2016-08-17 | 努比亚技术有限公司 | A message display device and method |
CN106921798A (en) * | 2017-02-17 | 2017-07-04 | 珠海市魅族科技有限公司 | The processing method and processing device of notification message |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108449513A (en) * | 2018-03-28 | 2018-08-24 | 努比亚技术有限公司 | A kind of interaction regulation and control method, equipment and computer readable storage medium |
CN109885374A (en) * | 2019-02-28 | 2019-06-14 | 北京小米移动软件有限公司 | A kind of interface display processing method, device, mobile terminal and storage medium |
CN110507302A (en) * | 2019-08-09 | 2019-11-29 | Oppo(重庆)智能科技有限公司 | Heart rate detection method and device based on display screen |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106033337B (en) | A kind of instant messaging emoticon generation method and device | |
CN107562453A (en) | Notification message classifying indication method and device | |
CN106657528A (en) | Incoming call management method and device | |
CN106488413A (en) | Notification message based reminding method and mobile terminal | |
CN107367327A (en) | Calibration method, device, mobile terminal and the readable storage medium storing program for executing of optical sensor | |
CN107171412A (en) | Method, device, mobile terminal and the storage medium of dynamic adjustment charging current | |
CN107608720A (en) | Using the display methods of footmark, device, mobile terminal and storage medium | |
CN107613536A (en) | Select method, apparatus, mobile terminal and the readable storage medium storing program for executing of network | |
CN107786709A (en) | Call noise-reduction method, device, terminal device and computer-readable recording medium | |
CN108482372A (en) | Travel speed control method and device, electronic device and readable storage medium storing program for executing | |
CN107172313A (en) | Improve method, device, mobile terminal and the storage medium of hand-free call quality | |
CN107371221A (en) | Select method, apparatus, mobile terminal and the readable storage medium storing program for executing of network | |
CN105872980B (en) | A kind of method and device scanning wireless network signal | |
CN108512997A (en) | Display methods, device, mobile terminal and storage medium | |
CN106331258A (en) | Call methods, call apparatus and call system | |
CN107613115A (en) | Event-prompting method, device, mobile terminal and readable storage medium storing program for executing | |
CN106254791A (en) | The startup method of photographic head and mobile terminal | |
CN106101868A (en) | Reduced graph generating method and generating means | |
CN107948055A (en) | Shielding group members send out the method, apparatus and computer-readable recording medium of message | |
CN106555994A (en) | The lighting device and means of illumination of terminal device interface | |
CN110221882A (en) | Display methods, device, mobile terminal and storage medium | |
CN107682553A (en) | Speech signal sending method, device, mobile terminal and storage medium | |
CN108363628A (en) | Message treatment method, device, terminal and computer readable storage medium | |
CN106528084A (en) | Starting method and device | |
CN106375031A (en) | Radio-frequency channel detection method and mobile terminal |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180119 |
|
RJ01 | Rejection of invention patent application after publication |