Invention content
In order to solve the deficiencies in the prior art, at least one embodiment of the present invention provides a kind of dialog box pop-up control
Method, applied to terminal, including:
S1, when needing pop-up notification, obtain the location information of preset window in the system display interface of the terminal;
S2, according to the location information, judge the system display interface of the terminal whether in full frame;
S3a, when the system display interface of the terminal is not in full frame, control it is described notice pop-up;
S3b, when the terminal system display interface be in it is full frame when, re-execute S1 according to default delaying policy.Base
In above-mentioned technical proposal, the embodiment of the present invention can also make following improvement.
Optionally, it before the S1, further includes:
Preset window is created in the system display interface of terminal, the attribute of the preset window is shows positioned at the system
Below the window layers top at interface in predeterminable area.
Optionally,
The location information of preset window in the system display interface of the terminal is obtained in S1, is specifically included:Described in acquisition
The coordinate points of preset window;
According to the location information in S2, judge whether the system display interface of the terminal is in full frame, specifically include:
Judge whether the preset window is located at the system display interface of the terminal according to the coordinate points of the preset window
Window layers of top;When the preset window is located at the window layer tops of the system display interface of the terminal, the end
The system display interface at end is in full frame.
Optionally, it is further included in the S1:Obtain the area information of status bar in the system display interface of the terminal;
It is further included in the S2:Institute is judged according to the area information of the location information of the preset window and the status bar
State whether preset window is located at the status bar region;When the preset window is located at the status bar region,
The system display interface of the terminal is in full frame;It is described when the preset window is not located at the status bar region
The system display interface of terminal is not in full frame.
Optionally, it in the S3b, specifically includes:
When the system display interface of the terminal is in full frame, after being delayed m+n^k seconds, S1 is re-executed;
Wherein, m, n are pre-set constant value;K is that the system display interface of the terminal is in full frame, re-executes time of S1
Number.
The embodiment of the present invention additionally provides a kind of dialog box pop-up control system, including:End with system display interface
End, the terminal include:Detection module, acquisition module, judgment module, notification module and time delay module;
The detection module, for detecting whether the terminal needs pop-up notification;
The acquisition module presets window for when needing pop-up notification, obtaining in the system display interface of the terminal
The location information of mouth;
The judgment module, for according to the location information, judging whether the system display interface of the terminal is in
It is full frame;
The notification module, for when the system display interface of the terminal is not in full frame, controlling the notice bullet
Go out;
The time delay module, for when the system display interface of the terminal be in it is full frame when, according to default delaying policy
After delay, the acquisition module and judgment module is called to re-execute full frame judgement.
Optionally, the terminal further includes:Creation module, for creating preset window in the system display interface of terminal,
The attribute of the preset window is in predeterminable area below the window layers top of the system display interface.
Optionally, the acquisition module, specifically for obtaining the coordinate points of the preset window;
The judgment module, specifically for judging whether the preset window is located at according to the coordinate points of the preset window
The window layers top of the system display interface of the terminal;When the preset window is located at the system display interface of the terminal
Window layer tops when, the system display interface of the terminal is in full frame;When the preset window is not located at the terminal
System display interface window layer tops when, the system display interface of the terminal is not in full frame.
Optionally, the acquisition module is additionally operable to the region letter of status bar in the system display interface for obtaining the terminal
Breath;
The judgment module is additionally operable to be sentenced according to the location information of the preset window and the area information of the status bar
Whether the preset window of breaking is located at the status bar region;When the preset window is located at the status bar region
When, the system display interface of the terminal is in full frame;When the preset window is not located at the status bar region, institute
State terminal system display interface be not in it is full frame.
Optionally, the time delay module, when being in full frame specifically for the system display interface when the terminal, be delayed m+
After n^k seconds, the acquisition module and judgment module is called to re-execute full frame judgement;
Wherein, m, n are pre-set constant value;K is that the system display interface of the terminal is in full frame, re-executes and full frame sentences
Disconnected number.
The above-mentioned technical proposal of the present invention has the following advantages that compared with prior art:Whether needed in detection terminal of the present invention
Pop-up notification is wanted, when needing pop-up notification, the location information of the window in system display interface is obtained, whether to judge terminal
In full frame state, the pop-up notification when terminal is not in full frame state, when terminal is in full frame, after postponing a period of time again
Judge whether terminal in full frame state is confirmed whether pop-up notification, so as to avoid the pop-up notification in user's full frame use
Influence to user.
Specific embodiment
Purpose, technical scheme and advantage to make the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present invention
In attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
The part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
Member's all other embodiments obtained under the premise of creative work is not made, shall fall within the protection scope of the present invention.
As shown in Figure 1, a kind of dialog box pop-up control method flow diagram provided in an embodiment of the present invention, the present invention are real
It applies example and is applied to terminal, including:
S11, when needing pop-up notification, obtain the location information of preset window in the system display interface of terminal;
Specifically, whether detection terminal needs pop-up notification, as system message notice, system version update notification or other
The notice that application messages notice etc. actively pops up, when detecting that terminal wants pop-up notification, the system obtained in terminal is shown
Show the location information of pre-set window in interface.
S12, according to location information, judge the system display interface of terminal whether in full frame;
Specifically, judge whether the system display interface of terminal is in full frame according to the location information of window, when window
Position be located at terminal system display interface it is full frame when the region that can pack up in when, such as the status bar in system display interface, i.e.,
Whether the system display interface of terminal is in full frame at this time, thus judge system display interface in full frame.
S13a, when the system display interface of terminal is not in full frame, control notice pop-up;
Specifically, when the system display interface of terminal is not in full frame, at this time pop-up notification will not make user into
Full frame state is exited in the operations such as capable video, game or work, it is possible to send a notification message and be prompted for user.
S13b, when terminal system display interface be in it is full frame when, re-execute S11 according to default delaying policy;
Specifically, when the system display interface of terminal is in full frame, user is being carried out full frame by terminal at this time
Operation, if pop-up notification, may interrupt the ongoing operation of user, bring inconvenience to the use of user, influence user's
It uses, so after delay a period of time, judges whether system display interface is in full frame again, and be according to system display interface
It is no it is full frame come control notice send.
In above-described embodiment,.It is notified by the way that whether detection terminal needs to send, and when needing to send notice, detection is eventually
Whether the system display interface at end, when system display interface is not in full frame state, just sends in full frame state to user
Notice, when system display interface is in full frame state, can be confirmed that user is carrying out the state of full frame operation, sends at this time
Notice influences whether the use of user, therefore whether detecting system display interface is in full frame shape again again after delay a period of time
State controls the transmission of notice further according to whether system display interface is full frame.
As shown in Fig. 2, a kind of dialog box pop-up control method flow diagram that another embodiment of the present invention provides, this hair
Bright embodiment is applied to terminal, including:
S21, the system display interface establishment preset window in terminal, the attribute of preset window is positioned at display interface
Below window layers of top in predeterminable area.
Specifically, in the system display interface of terminal, including being made of the display layer of stacked in multi-layers, user can intuitively look into
The realization layer seen, positioned at the top layer of display interface, wherein, the window layers of bottom for display interface, so on display circle
The bottom in face creates the window, can be to avoid influence of the layout to window of control in other layers.
S22, when needing pop-up notification, obtain the location information of preset window in the system display interface of terminal;
Specifically, whether detection terminal needs pop-up notification, as system message notice, system version update notification or other
The notice that application messages notice etc. actively pops up, when detecting that terminal wants pop-up notification, the system obtained in terminal is shown
Show the location information of pre-set window in interface.
S23, according to location information, judge the system display interface of terminal whether in full frame;
Specifically, judge whether the system display interface of terminal is in full frame according to the location information of window, when window
Position be located at terminal system display interface it is full frame when the region that can pack up in when, such as the status bar in system display interface, i.e.,
Whether the system display interface of terminal is in full frame at this time, thus judge system display interface in full frame.
S24a, when the system display interface of terminal is not in full frame, control notice pop-up;
Specifically, when the system display interface of terminal is not in full frame, at this time pop-up notification will not make user into
Full frame state is exited in the operations such as capable video, game or work, it is possible to send a notification message and be prompted for user.
S24b, when terminal system display interface be in it is full frame when, re-execute S22 according to default delaying policy.
Specifically, when the system display interface of terminal is in full frame, user is being carried out full frame by terminal at this time
Operation, if pop-up notification, may interrupt the ongoing operation of user, bring inconvenience to the use of user, influence user's
It uses, so after delay a period of time, judges whether system display interface is in full frame again, and be according to system display interface
It is no it is full frame come control notice send.
In above-described embodiment, preset window is created in predeterminable area below the window layers top of system display interface,
Judge whether the system display interface of terminal is full frame according to the coordinate of preset window, avoid the control in other display layers of terminal
The influence that is set to preset window of layout, improve the accuracy of judgement.
As shown in figure 3, a kind of dialog box pop-up control method flow diagram that further embodiment of this invention provides, this hair
Bright embodiment is applied to terminal, including:
S31, the system display interface establishment preset window in terminal, the attribute of preset window is positioned at system display interface
Window layers top below in predeterminable area.
Specifically, in the system display interface of terminal, including being made of the display layer of stacked in multi-layers, user can intuitively look into
The realization layer seen, positioned at the top layer of display interface, wherein, the window layers of bottom for display interface, so on display circle
The bottom in face creates the window, can be to avoid influence of the layout to window of control in other layers.
S32, when needing pop-up notification, obtain the coordinate points of preset window in the system display interface of terminal;
Specifically, whether detection terminal needs pop-up notification, as system message notice, system version update notification or other
The notice that application messages notice etc. actively pops up, when detecting that terminal wants pop-up notification, the system obtained in terminal is shown
Show the location information of pre-set window in interface.
S33, judge whether preset window is located at the system display interface of terminal according to the coordinate points of preset window
Window layers of top;When preset window is located at the window layer tops of the system display interface of terminal, the system of terminal is shown
Interface is in full frame;
Specifically, when preset window is located at the window layer tops of the system display interface of terminal, illustrate terminal is
There is no status bars, the i.e. system display interface of terminal in system display interface to be not present status bar.
S34, when terminal system display interface be in it is full frame when, re-execute S32 according to default delaying policy.
Specifically, when the system display interface of terminal is in full frame, user is being carried out full frame by terminal at this time
Operation, if pop-up notification, may interrupt the ongoing operation of user, bring inconvenience to the use of user, influence user's
It uses, so after delay a period of time, judges whether system display interface is in full frame again, and be according to system display interface
It is no it is full frame come control notice send.
In above-described embodiment, the characteristic of status bar in the system display interface of terminal is utilized, that is, works as system display interface
During middle existence column, the interior perhaps control being created is under status bar, in this way, the coordinate points by preset window are indulged
Whether whether coordinate is in the top of system display interface, judge system display interface in full frame state.
As shown in figure 4, a kind of dialog box pop-up control method flow diagram that further embodiment of this invention provides, this hair
Bright embodiment is applied to terminal, including:
S41, when needing pop-up notification, obtain the location information and terminal of preset window in the system display interface of terminal
System display interface in status bar area information;
S42, judge whether preset window is located at state according to the location information of preset window and the area information of status bar
Column region;When preset window is located at status bar region, the system display interface of terminal is in full frame;When default window
When mouth is not located at status bar region, the system display interface of terminal is not in full frame;
S43a, when the system display interface of terminal is not in full frame, control notice pop-up;
Specifically, when the system display interface of terminal is not in full frame, at this time pop-up notification will not make user into
Full frame state is exited in the operations such as capable video, game or work, it is possible to send a notification message and be prompted for user.
S43b, when terminal system display interface be in it is full frame when, re-execute S41 according to default delaying policy;
Specifically, when the system display interface of terminal is in full frame, user is being carried out full frame by terminal at this time
Operation, if pop-up notification, may interrupt the ongoing operation of user, bring inconvenience to the use of user, influence user's
It uses, so after delay a period of time, judges whether system display interface is in full frame again, and be according to system display interface
It is no it is full frame come control notice send.
In above-described embodiment, the characteristic of status bar in the system display interface of terminal is utilized, that is, works as system display interface
During middle existence column, the interior perhaps control being created is under status bar, the area information of status bar is obtained, by pre-
If the location information of window judges preset window whether in status bar region, preset window is in status bar region
In, i.e., at this time there is no status bar, terminal is in full frame state, and the position that preset window is set is limited in system display interface
Window layers top below in predeterminable area, the height of the predeterminable area is less than the height of status bar, when preset window does not exist
In status bar region, i.e., existence column, terminal are in non-full frame state at this time.
As shown in figure 5, a kind of dialog box pop-up control method flow diagram that further embodiment of this invention provides, this hair
Bright embodiment is applied to terminal, including:
S51, when needing pop-up notification, obtain the location information of preset window in the system display interface of terminal;
S52, according to location information, judge the system display interface of terminal whether in full frame;
S53a, when the system display interface of terminal is not in full frame, control notice pop-up;
S53b, when terminal system display interface be in it is full frame when, delay m+n^k seconds after, re-execute S51;
Wherein, m, n are pre-set constant value;K is that the system display interface of terminal is in full frame, re-executes the number of S51.
In above-described embodiment, when the system display interface of terminal is in full frame, i.e., user carries out accordingly full frame at this time
Whether operation if sending the use that notice influences whether user at this time, therefore by after system delay m+n^k seconds, judges terminal again
In full frame state, the strategy of delay is increased using exponential form, and avoiding user, system is frequent when carrying out full frame operation for a long time
Detection terminal whether in full frame state, lower system loss, which can be according to different terminals using different
Mode, as being detected after fixed duration, according to time point of system when be detected.
As shown in fig. 6, further embodiment of this invention additionally provides a kind of dialog box pop-up control system, including:With being
The terminal of system display interface, terminal include:Detection module, acquisition module, judgment module, notification module and time delay module;Terminal
It further includes:Creation module
Creation module, for creating preset window in the system display interface of terminal, the attribute of preset window is positioned at aobvious
Show below the window layers top at interface in predeterminable area;
Whether detection module needs pop-up notification for detection terminal;
Acquisition module, for when needing pop-up notification, obtaining the position of preset window in the system display interface of terminal
Information;
Judgment module, for according to location information, judging the system display interface of terminal whether in full frame;
Notification module, for when the system display interface of terminal is not in full frame, control notice to pop up;
Time delay module, for when the system display interface of terminal is in full frame, after being delayed m+n^k seconds, calling and obtaining mould
Block and judgment module re-execute full frame judgement;
Wherein, m, n are pre-set constant value;K is that the system display interface of terminal is in full frame, re-executes full frame judgement
Number.
On the basis of above-described embodiment, a kind of specific embodiment is given, acquisition module is pre- specifically for obtaining
If the coordinate points of window;
Judgment module, specifically for according to the coordinate points of preset window judge preset window whether be located at terminal system show
Show the window layers top at interface;When preset window is located at the window layer tops of the system display interface of terminal, terminal
System display interface is in full frame.
On the basis of above-described embodiment, another specific embodiment is given, acquisition module is additionally operable to obtain eventually
The area information of status bar in the system display interface at end;
Judgment module is additionally operable to judge that preset window is according to the location information of preset window and the area information of status bar
It is no to be located at status bar region;When preset window is located at status bar region, the system display interface of terminal is in complete
Screen;When preset window is not located at status bar region, the system display interface of terminal is not in full frame.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that:It still may be used
To modify to the technical solution recorded in foregoing embodiments or carry out equivalent replacement to which part technical characteristic;
And these modification or replace, various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution spirit and
Range.