CN106484509A - A kind of output intent of pop-up, device and terminal - Google Patents
A kind of output intent of pop-up, device and terminal Download PDFInfo
- Publication number
- CN106484509A CN106484509A CN201610853933.4A CN201610853933A CN106484509A CN 106484509 A CN106484509 A CN 106484509A CN 201610853933 A CN201610853933 A CN 201610853933A CN 106484509 A CN106484509 A CN 106484509A
- Authority
- CN
- China
- Prior art keywords
- pop
- task
- output
- page
- class
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/4881—Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a kind of output intent of pop-up, device and terminal, by being managed collectively to pop-up task by pop-up task manager, explicit function is all comprised in each pop-up task, and in each explicit function, all comprise the mode realizing the call back function that class is realized by pop-up for the needs, reach and can either meet the diversity requirement that pop-up shows, be capable of the purpose of the display logic of complexity again.The invention provides the framework of pop-up output, under this framework, by being designed to the parameter in pop-up task and according to the related service of concrete pop-up, assignment is carried out to described parameter, can achieve the control that pop-up is shown with opportunity, and then solve the conflict that multiple pop-ups show simultaneously, when reducing display pop-up, user is bothered.Allow the output page that many is inconvenient to obtain the example realizing class of pop-up also can easily carry out the associative operation of pop-up simultaneously, thus effectively evade some common exceptions.
Description
Technical field
The present invention relates to computer communication technology field, more particularly, to a kind of output intent of pop-up, device and terminal.
Background technology
The window of automatic spring when pop-up refers to open webpage, software, mobile phone A PP etc., generally because of certain logic quilt
Triggering, cover the floating layer on screen page, prompting frame and control etc. are all referred to as pop-up.The conventional output intent of pop-up
For:Build the abstract base class of a pop-up, allow the pop-up in application program all to inherit in this abstract base class, safeguard one simultaneously
Pop-up queue, when multiple pop-ups export simultaneously according to the order of FIFO, allows pop-up to be sequentially output, however, this mode
There is problems with:
(1) it is not suitable for not supporting the programmed environments inherited more:Pop-up is varied, is not supporting the programming rings inherited more
It is difficult to be managed collectively a pop-up queue with the thought of public abstract base class under border, therefore, this mode is difficult to meet pop-up
The diversity requirement of display mode, thus affect Consumer's Experience.
(2) realize class (class of realizing of pop-up is to realize the display function of described pop-up for being inconvenient to obtain pop-up
Class) example module, need process pop-up when can only rely on complexity readjustment to realize the service logic related to pop-up,
The complexity leading to service code increases.
(3) it is difficult to the display logic of complexity, such as, following pop-up logics are difficult to:A pop-up can only be in the B page
Output, if the B page is hidden, needs to be extended down to after the B page returns to foreground and could export;Or, A pop-up output when, such as
Fruit currently has other pop-ups to export, then in this startup cycle, A pop-up must not export.
Content of the invention
In order to solve above-mentioned technical problem, the present invention proposes a kind of output intent of pop-up, device and terminal.By by
Pop-up task manager is managed collectively to pop-up task, all comprises explicit function in each pop-up task, and each display
All comprise in function needs by pop-up the call back function realizing class realization mode, reach can either meet that pop-up shows many
Sample demand, is capable of the purpose of the display logic of complexity again.
The present invention is to be realized with following technical scheme, a kind of output intent of pop-up, and methods described includes:
Detection activation instruction, if receiving described activation instruction, judges to whether there is pop-up in pop-up task manager
Task:
If so, then obtain the pop-up task ranking the first, the right of disposal of the explicit function in described pop-up task is transferred to
The output page of pop-up, is controlled the output of pop-up by the described output page, and by described pop-up task from described pop-up task pipe
Delete in reason device;Described explicit function includes the call back function for being shown to described pop-up.
Further, described pop-up task includes the explicit function of pop-up and the priority of pop-up, described pop-up task
Manager is ranked up to the pop-up task that pop-up is located according to the priority order from high to low of pop-up.
Further, after obtaining the pop-up task ranking the first, also include:
Determine whether to export the corresponding pop-up of described pop-up task in current operating environment:
If so, then the right of disposal of the explicit function in described pop-up task is transferred to the output page of described pop-up, and will
Described pop-up task is deleted from described pop-up task manager;
If it is not, directly described pop-up task is deleted from described pop-up task manager.
Further, also include:
The information of the output page of pop-up is obtained in described pop-up task;
According to described information, the right of disposal of the explicit function of described pop-up task is transferred to the output page of described pop-up.
Further, the right of disposal of the explicit function of described pop-up task is transferred to by bullet by event bus and/or broadcast
The output page of window.
Further, after the right of disposal of the explicit function of described pop-up task being transferred to the output page of pop-up, also include:
Judge whether described pop-up allows to be output according to the running environment of the described output page:
If so, then call back function is called to export described pop-up by the explicit function in described pop-up task;
If it is not, not exporting described pop-up.
Further, if described pop-up is closed, send for representing that described pop-up is closed to pop-up task manager
The notification message closing.
Further, described call back function is realized by pop-up class, described pop-up class include primary pop-up class, construction regard
Figure class and/or the window class of construction.
A kind of pop-up output device, including:
Activation instruction detection module, for detecting activation instruction;
Judge module, for judging to whether there is pop-up task in pop-up task manager;
Pop-up task disposes module, for obtaining the pop-up task ranking the first, by the display letter in described pop-up task
The right of disposal of number transfers to the output page of pop-up, and described pop-up task is deleted from described pop-up task manager;
Page output module, controls the output of pop-up for the described output page;
Pop-up task manager, for being managed to pop-up task.
Further, described pop-up task includes the explicit function of pop-up and the priority of pop-up, described pop-up task
Manager is ranked up to the pop-up task that pop-up is located according to the priority order from high to low of pop-up.
Further, described pop-up task manager also includes:
Pop-up judges the first submodule, is used for determining whether corresponding in the described pop-up task of current operating environment output
Pop-up:
If so, then module is disposed by pop-up task and the right of disposal of the explicit function in described pop-up task is transferred to pop-up
The output page, and described pop-up task is deleted from described pop-up task manager;If it is not, then module is disposed by pop-up task
Directly described pop-up task is deleted from described pop-up task manager.
Further, described pop-up task is disposed module and is also included:
Page info acquisition submodule, for obtaining the information of the output page of pop-up in described pop-up task;
Right of disposal shifts submodule, for according to described information, the right of disposal of the explicit function of described pop-up task being handed over
The output page by described pop-up.
Further, described page output module includes:
Pop-up judges the second submodule, for judging whether described pop-up allows according to the running environment of the described output page
It is output;
Display sub-module, for calling call back function that described pop-up is shown in the described output page by explicit function
Show.
Further, described page output module also includes:
Notifying submodule, if being closed for described pop-up, sending for representing described bullet to pop-up task manager
The pent notification message of window.
A kind of pop-up outlet terminal, described terminal includes above-mentioned pop-up output device..
A kind of output intent of pop-up proposed by the present invention, device and terminal, have the advantages that:
1st, by allowing the class (the realizing the class that class is the display function realizing described pop-up of pop-up) of realizing of pop-up to realize back
The method of letter of transfer number, the difference according to realizing class can obtain the output effect of different pop-ups, it is to avoid builds abstract public base
Class, and disclosure satisfy that the display diversity requirement of pop-up, lift Consumer's Experience.
2nd, pop-up is packaged into pop-up task, corresponding task utilizes priority for pop-up by pop-up task manager
Concept is managed, convenient display logic pop-up task being scheduling, being capable of complexity, meets complicated business need
Ask.
3rd, make some be difficult to obtain the output page of the examples realizing class of pop-up, can easily carry out having with pop-up
The UI operation closed.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, acceptable
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of output intent flow chart of pop-up that the embodiment of the present invention 1 provides;
Fig. 2 is the method flow diagram that the output page that the embodiment of the present invention 1 provides shows pop-up;
Fig. 3 is the class figure for representing the relevant classes relation realizing pop-up output that the embodiment of the present invention 1 provides;
Fig. 4 is the flow chart of the management method of pop-up task manager that the embodiment of the present invention 2 provides;
Fig. 5 is a kind of pop-up output device schematic diagram that the embodiment of the present invention 3 provides;
Fig. 6 is the structured flowchart of the terminal that the embodiment of the present invention 4 provides.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art obtained on the premise of not making creative work all its
His embodiment, broadly falls into the scope of protection of the invention.
Embodiment 1:
A kind of output intent of pop-up, as shown in figure 1, methods described includes:
S101. detect activation instruction,
At least there are two kinds of implementations in detection activation instruction:
(1) interface is provided to call for other threads, function or module by pop-up task manager, thus activating described pop-up
Task manager.
(2) described pop-up task manager monitors the notification message that other threads, function or module send, logical when listening to
When knowing message, pop-up task manager is activated.
If S102. receiving described activation instruction,
S103. then judge to whether there is pop-up task in pop-up task manager.
S104. if so, then obtain the pop-up task ranking the first, by the right of disposal of the explicit function in described pop-up task
Transfer to the output page of pop-up, controlled the output of pop-up by the described output page, and described pop-up task is appointed from described pop-up
Delete in business manager;Described explicit function includes the call back function for being shown to described pop-up.
Specifically, after obtaining the pop-up task ranking the first, also include:
Determine whether to export the corresponding pop-up of described pop-up task in current operating environment:
If so, in described pop-up task, then obtain the information of the output page of pop-up and according to described information by described bullet
The right of disposal of the explicit function of window task passes through event bus and/or the output page of described pop-up is transferred in broadcast, and will be described
Pop-up task is deleted from described pop-up task manager;
If it is not, directly described pop-up task is deleted from described pop-up task manager.
After the output page obtains the right of disposal of explicit function, by described output page in the face of described pop-up is exported, such as
Shown in Fig. 2, including:
A1. judge whether described pop-up allows to be output according to the running environment of the described output page:
B1. if so, then call back function is called to export described pop-up by the explicit function in described pop-up task;
C1. if it is not, not exporting described pop-up.
Described explicit function realizes the display of pop-up by call back function, and therefore described explicit function itself does not have aobvious
Show the function of pop-up, and only provide abstract common interface for the display of pop-up.In JAVA and C#, can be by connecing
Mouthful (interface) is representing explicit function, and in C++, can represent aobvious by abstract class (abstract class)
Show function.
Call back function is the function being called by function pointer.In the present embodiment, pointer (address) conduct of call back function
Parameter transmission gives explicit function, and this pointer is used to call its pointed function (to carry out the concrete letter that pop-up shows
Number).
It is that it is possible to allow different pop-up classes realize described call back function using the purpose of call back function in the present embodiment,
Thus ensure that the multiformity realizing class of pop-up.Described pop-up class includes but is not limited to primary pop-up class, the view of construction
Class and/or the window class of construction.The display effect of described pop-up class includes showing the floating layer covering on the full frame page, prompting frame
With control etc..
Wherein, primary pop-up class includes but is not limited to Dialog, AlertDialog and DialogFragment, construction
View class include but is not limited to View, the window class of construction includes but is not limited to PopupWindow, wherein the view class of construction
Can be customized according to specific business with the window class of construction.
Specifically, Dialog is conventional pop-up class in Android, the pop-up under most of scenes can with such and
Its subclass is showing pop-up;DialogFragment is in the Fragment framework being introduced into after Android3.0, by Fragment
Realize the effect of traditional Dialog, so that Dialog has the concept of life cycle, convenient management;View is view class,
One view occupies a rectangular area on screen, is responsible for drafting and the event of figure in described rectangular area by View
Process.
JAVA and C# does not all support to inherit more, and the type of pop-up class has multiformity, therefore, it is difficult to using abstract base
The thought of class is unifying pop-up is managed, and different pop-up classes is different for the display effect of pop-up.In the present embodiment
There is provided identical framework by explicit function for the different types of display packing of pop-up, meet pop-up the way of output various
Property demand, lifted Consumer's Experience.
Pass through the pop-up task record information relevant with pop-up in the present embodiment, described pop-up task include pop-up identify,
The information of the output page of the explicit function of described pop-up, the priority of pop-up and pop-up.Specifically, described pop-up task is permissible
Represented by class (class) or structure (struct).Described pop-up task manager according to pop-up priority from high to low
Order the pop-up task that pop-up is located is ranked up.
Pop-up task manager can safeguard one or more pop-up task queues, and described pop-up task manager is activated
Afterwards, the pop-up task in pop-up task manager is scheduling.Specifically, described pop-up task manager can be by class
(class) or structure (struct) represent.
For the method for the present embodiment, it is illustrated below:
The display demand of pop-up is:Business demand according to A module is needed in B page display A module with Dialog pattern
The pop-up of display;
The setting of pop-up and output intent are:
Build Dialog class, and by A module settings pop-up;
Explicit function (onShow) is realized by Dialog class, and call back function is realized according to described pop-up, specifically, described
Explicit function is arranged at DialogListener interface;
Build described pop-up corresponding pop-up task, described pop-up task is represented by self-defining DialogTask class,
DialogTask class includes described pop-up mark (tag), described explicit function (onShow), the priority of described pop-up
Priority (described priority is set by A) and the information (described information is inputted by A) of the B page;
Described DialogTask class is added to pop-up task manager, pop-up task manager is by self-defining
DialogManager class is realized, and DialogManager class is added to DialogTask class in task queue according to priority.
When task queue is activated, take out DialogTask, and it is total that explicit function onShow therein is passed through event
Line (EventBus) or broadcast (Broadcast) are transferred to the B page, and what the B page can obtain pop-up realizes class (Dialog
Class) example;The B page is using the Context (pop window information draws required context) of oneself as explicit function onShow's
Parameter, calls, by described explicit function onShow, the display that call back function completes pop-up.
Specifically, the relation of the class being related in said method is not as shown in figure 3, additionally, according to the display mode of pop-up
Can also be DialogFragment class, View class or other classes with the display class of, pop-up, event bus (EventBus) and
Broadcast (Broadcast) all can be provided by bag (package), and event bus (EventBus) and broadcast (Broadcast)
Realization all rely on Activity and/or Fragment.
It can be seen that, the pop-up output intent that the present embodiment provides only needs to realize explicit function, call back function and pop-up task,
And pop-up task is added in pop-up task manager, you can to determine that by pop-up task manager when executing pop-up appoints
Business, reduces artificial control.
Present embodiments provide a kind of output intent of pop-up, can be that the different display demand with regard to pop-up provides phase
Same solution framework, meets the diversity requirement of the way of output of pop-up, lifts Consumer's Experience.Meanwhile, by pop-up task pipe
Explicit function is transmitted to the output page of pop-up by reason device, enables to originally be difficult to obtain the defeated of the example realizing class of pop-up
Page-out, can easily carry out the UI operation relevant with pop-up.
Embodiment 2:
A kind of output intent of pop-up, methods described includes:
S201. detecting activation instruction, if receiving described activation instruction, judging to whether there is in pop-up task manager
Pop-up task.
S202. if so, then obtain the pop-up task ranking the first, by the right of disposal of the explicit function in described pop-up task
Transfer to the output page of pop-up, controlled the output of pop-up by the described output page, and described pop-up task is appointed from described pop-up
Delete in business manager;Described explicit function includes the call back function for being shown to described pop-up.
Specifically, the management method of described pop-up task manager is as shown in figure 4, include:
A2. according to the priority order from high to low of pop-up, pop-up corresponding pop-up task is ranked up.
B2. detecting activation instruction, if receiving described activation instruction, judging whether deposit in described pop-up task manager
In pop-up task.
C2. if so, then obtain the pop-up task ranking the first, determine whether to export described bullet in current operating environment
The corresponding pop-up of window task.
Specifically, this step can be realized by adding flag bit sign current operating environment in pop-up task manager
Rapid function.Flag bit is that 0 expression current operating environment does not allow to export any pop-up, otherwise it is allowed to export.
D2. if so, then the right of disposal of the explicit function in described pop-up task is transferred to the display page of pop-up, and by institute
State pop-up task to delete from described pop-up task manager.
E2. if it is not, directly deleting described pop-up task from described pop-up task manager.
After the output page obtains the right of disposal of explicit function, by described output page in the face of described pop-up is exported, bag
Include:
Judge whether described pop-up allows to be output according to the running environment of the described output page:
If so, then call back function is called to export described pop-up by the explicit function in described pop-up task;
If it is not, not exporting described pop-up.
Whether the page detects to allowing to export pop-up, it can be avoided that output pop-up institute may initiation exception.
Wherein, the modal exception that can be evaded by the method for offer in the present embodiment includes illegalArgumentException
And BadTokenException.
IllegalArgumentException is usually pop-up when showing or disappearing, because page context is corresponding
There is not the exception leading in Activity or Fragment example.
BadTokenException is usually pop-up when showing or disappearing, because of the corresponding Activity of page context
Or the exception that Fragment example is not dished out in running status.
Additionally, transferring to the right of disposal of the explicit function of described pop-up task after the display page of pop-up, the page obtains
The example realizing class of pop-up, can be monitored and respond with regard to the operation of pop-up to user by the class of realizing of pop-up, and not
Same class of realizing is likely to difference for the response method of user operation and response effect, right therefore, it is possible to further ensure
In the multiformity of the response effect of pop-up, lift Consumer's Experience.
Specifically, if described pop-up is closed, send for representing that described pop-up is closed to pop-up task manager
Notification message.Pop-up task manager obtains described notification message, then judge whether to need again according to described notification message
Enter state of activation.If not entering state of activation, continue waiting for activation instruction, if entering state of activation, repeat step
S201.
Judge whether to need to be again introduced into state of activation to have multiple implementations, such as, can be in specific pop-up
Realized by adding the parameter being used for indicating whether to activate pop-up task manager after pop-up is closed in task, if described
Parameter represents and does not activate, then, after the corresponding pop-up of described pop-up task is closed, carry described parameter, then bullet in notification message
Window task manager does not enter state of activation after obtaining described closing message.
By obtaining described notification message, activation can be circulated to described pop-up task manager, this activation side
Formula is capable of the pop-up display logic of complexity, realizes preferable display effect, such as:
(1) avoid multiple pop-ups to export generation display conflict simultaneously;
(2) realize the effect that each pop-up is sequentially output;
(3) pass through the priority that sets in pop-up task and combine pop-up task manager to the detection of notification message with
Process, realize the effective control on the output opportunity to pop-up message.
Present embodiments provide the output intent of another kind of pop-up, can further ensure the response effect for pop-up
Multiformity, lift Consumer's Experience, and reduce the exception that causes due to display pop-up;Additionally, present embodiments providing reality
The framework of existing pop-up output, under this framework, by being designed to the parameter in pop-up task and according to concrete pop-up
Related service carries out assignment to described parameter, you can realize pop-up is exported with the control on opportunity.
Embodiment 3:
A kind of pop-up output device, as shown in figure 5, include:
Activation instruction detection module 301, for detecting activation instruction;
Judge module 302, for judging to whether there is pop-up task in pop-up task manager;
Pop-up task disposes module 303, for obtaining the pop-up task ranking the first, by the display in described pop-up task
The right of disposal of function transfers to the output page of pop-up, and described pop-up task is deleted from described pop-up task manager;
Page output module 304, controls the output of pop-up for the described output page;
Pop-up task manager 305, for being managed to pop-up task.Described pop-up task includes the display of pop-up
Function and the priority of pop-up, described pop-up task manager is located to pop-up according to the priority order from high to low of pop-up
Pop-up task be ranked up.
Described pop-up task manager 305 also includes:
Pop-up judges the first submodule 3051, is used for determining whether exporting described pop-up task in current operating environment
Corresponding pop-up:
If so, then module 303 is disposed by pop-up task and the right of disposal of the explicit function in described pop-up task is transferred to bullet
The output page of window, and described pop-up task is deleted from described pop-up task manager 305;If it is not, then by pop-up task
Dispose module 303 directly to delete described pop-up task from described pop-up task manager.
Described pop-up task is disposed module 303 and is also included:
Page info acquisition submodule 3031, for obtaining the information of the output page of pop-up in described pop-up task;
Right of disposal shifts submodule 3032, for according to described information, by the disposal of the explicit function of described pop-up task
Power transfers to the output page of described pop-up.
Described page output module 304 includes:
Pop-up judges the second submodule 3041, for whether judging described pop-up according to the running environment of the described output page
Allow to be output;
Display sub-module 3042, for calling call back function that described pop-up is carried out in the described output page by explicit function
Display.
Notifying submodule 3043, if being closed for described pop-up, sending for representing to pop-up task manager
State the pent notification message of pop-up.
The present embodiment is based on inventive concept in the same manner as embodiment 1 and embodiment 2, there is provided a kind of pop-up output device,
The present embodiment is implemented for the pop-up output intent provide in above-described embodiment.
Embodiment 4:
Embodiments of the invention also provide a kind of pop-up outlet terminal, and described terminal includes pop-up output device.This terminal
Can be the terminal units such as mobile terminal.Alternatively, in the present embodiment, this terminal can also be terminal, acceptable
Replace with any one computer terminal in terminal group.
Alternatively, in the present embodiment, above computer terminal or mobile terminal may be located at the multiple of computer network
At least one of network equipment network equipment.
Alternatively, Fig. 6 is the structured flowchart of terminal according to embodiments of the present invention.As shown in fig. 6, this terminal can be wrapped
Include:One or more (in figure only illustrates one) processor, memorizer and transmitting device.
Wherein, memorizer can be used for storing software program and module, and processor passes through operation and is stored in memorizer
Software program and module, thus execute various function application and data processing.Memorizer may include high speed random access memory,
Nonvolatile memory can also be included, such as one or more magnetic storage device, flash memory or other nonvolatile solid state
Memorizer.In some instances, memorizer can further include the memorizer remotely located with respect to processor, and these are remotely deposited
Reservoir can be by network connection to terminal or mobile terminal.The example of above-mentioned network include but is not limited to the Internet,
Intranet, LAN, mobile radio communication and combinations thereof.
Above-mentioned transmitting device is used for receiving via a network or sends data.Above-mentioned network instantiation can wrap
Include cable network and wireless network.In an example, transmitting device includes a network adapter, its can by netting twine and its
His network equipment is connected with router thus can be communicated with the Internet or LAN.In an example, transmitting device is
Radio-frequency module, it is used for wirelessly being communicated with the Internet.
Wherein, specifically, memorizer is used for storage for carrying out data, code and the application program of pop-up output.
Processor can call information and the application program of memory storage by transmitting device, to execute following step:
Optionally, above-mentioned processor can also carry out the program code of following steps:
The first step, detecting activation instruction, if receiving described activation instruction, judging whether deposit in pop-up task manager
In pop-up task:
Second step, if so, then obtains the pop-up task ranking the first, by the disposal of the explicit function in described pop-up task
Power transfers to the output page of pop-up, is controlled the output of pop-up by the described output page, and by described pop-up task from described pop-up
Delete in task manager;Described explicit function includes the call back function for being shown to described pop-up.
If the integrated unit in above-described embodiment is realized and as independent product using in the form of SFU software functional unit
When selling or using, can be stored in the storage medium that can read.Based on such understanding, technical scheme essence
On all or part of the part that in other words prior art contributed or this technical scheme can be with the shape of software product
Formula embodies, and this computer software product is stored in storage medium, including some instructions with so that one or more moves
Dynamic terminal or computer equipment (can be personal computer, server or network equipment etc.) execution each embodiment institute of the present invention
State all or part of step of method.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not have in certain embodiment
The part describing in detail, may refer to the associated description of other embodiment.
It should be understood that disclosed terminal in several embodiments provided herein, can be by another way
Realize.Wherein, device embodiment described above is only the schematically division of for example described unit, is only one kind
Division of logic function, actual can have other dividing mode when realizing, for example multiple units or assembly can in conjunction with or can
To be integrated into another device, or some features can be ignored, or does not execute.Another, shown or discussed each other
Coupling or direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING of unit or module or communication connection,
It can be electrical or other form.
The described unit illustrating as separating component can be or may not be physically separate, show as unit
The part showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.The mesh to realize this embodiment scheme for some or all of unit therein can be selected according to the actual needs
's.
In addition, can be integrated in a processing unit in each functional unit in each embodiment of the present invention it is also possible to
It is that unit is individually physically present it is also possible to two or more units are integrated in a unit.Above-mentioned integrated list
Unit both can be to be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
The above is the preferred embodiment of the present invention it is noted that for those skilled in the art
For, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications are also considered as
Protection scope of the present invention.
Claims (15)
1. a kind of output intent of pop-up is it is characterised in that methods described includes:
Detection activation instruction, if receiving described activation instruction, judges to whether there is pop-up task in pop-up task manager:
If so, then obtain the pop-up task ranking the first, the right of disposal of the explicit function in described pop-up task is transferred to pop-up
The output page, controlled the output of pop-up by the described output page, and by described pop-up task from described pop-up task manager
Middle deletion;Described explicit function includes the call back function for being shown to described pop-up.
2. method according to claim 1 is it is characterised in that described pop-up task includes explicit function and the bullet of pop-up
The priority of window, described pop-up task manager is appointed according to the pop-up that the priority order from high to low of pop-up is located to pop-up
Business is ranked up.
3., after method according to claim 1 is it is characterised in that obtain the pop-up task ranking the first, also include:
Determine whether to export the corresponding pop-up of described pop-up task in current operating environment:
If so, then the right of disposal of the explicit function in described pop-up task is transferred to the output page of described pop-up, and will be described
Pop-up task is deleted from described pop-up task manager;
If it is not, directly described pop-up task is deleted from described pop-up task manager.
4. method according to claim 1 is it is characterised in that also include:
The information of the output page of pop-up is obtained in described pop-up task;
According to described information, the right of disposal of the explicit function of described pop-up task is transferred to the output page of described pop-up.
5. method according to claim 1 it is characterised in that:By event bus and/or broadcast by described pop-up task
The right of disposal of explicit function transfer to the output page of pop-up.
6. method according to claim 1 is it is characterised in that transfer to the right of disposal of the explicit function of described pop-up task
After the output page of pop-up, also include:
Judge whether described pop-up allows to be output according to the running environment of the described output page:
If so, then call back function is called to export described pop-up by the explicit function in described pop-up task;
If it is not, not exporting described pop-up.
If 7. method according to claim 6 is it is characterised in that described pop-up is closed, to pop-up task manager
Send for representing the pent notification message of described pop-up.
8. method according to claim 1 it is characterised in that:Described call back function, described pop-up class are realized by pop-up class
Window class including primary pop-up class, the view class of construction and/or construction.
9. a kind of pop-up output device is it is characterised in that include:
Activation instruction detection module, for detecting activation instruction;
Judge module, for judging to whether there is pop-up task in pop-up task manager;
Pop-up task disposes module, for obtaining the pop-up task ranking the first, by the explicit function in described pop-up task
Right of disposal transfers to the output page of pop-up, and described pop-up task is deleted from described pop-up task manager;
Page output module, controls the output of pop-up for the described output page;
Pop-up task manager, for being managed to pop-up task.
10. device according to claim 9 it is characterised in that described pop-up task include pop-up explicit function and
The priority of pop-up, the pop-up that described pop-up task manager is located to pop-up according to the priority order from high to low of pop-up
Task is ranked up.
11. devices according to claim 10 are it is characterised in that described pop-up task manager also includes:
Pop-up judges the first submodule, is used for determining whether exporting the corresponding bullet of described pop-up task in current operating environment
Window:
If so, then the output that the right of disposal of the explicit function in described pop-up task is transferred to pop-up by module is disposed by pop-up task
The page, and described pop-up task is deleted from described pop-up task manager;If it is not, it is direct then to dispose module by pop-up task
Described pop-up task is deleted from described pop-up task manager.
12. devices according to claim 9 are it is characterised in that described pop-up task disposal module also includes:
Page info acquisition submodule, for obtaining the information of the output page of pop-up in described pop-up task;
Right of disposal shifts submodule, for according to described information, the right of disposal of the explicit function of described pop-up task being transferred to institute
State the output page of pop-up.
13. devices according to claim 9 are it is characterised in that described page output module includes:
Pop-up judges the second submodule, defeated for judging whether described pop-up allows according to the running environment of the described output page
Go out;
Display sub-module, for calling call back function that described pop-up is shown in the described output page by explicit function.
14. devices according to claim 13 are it is characterised in that described page output module also includes:
Notifying submodule, if being closed for described pop-up, sending for representing described pop-up quilt to pop-up task manager
The notification message closed.
A kind of 15. pop-up outlet terminals are it is characterised in that described terminal includes the bullet described in any one in claim 9-14
Window output device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610853933.4A CN106484509B (en) | 2016-09-27 | 2016-09-27 | Output method and device of popup window and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610853933.4A CN106484509B (en) | 2016-09-27 | 2016-09-27 | Output method and device of popup window and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106484509A true CN106484509A (en) | 2017-03-08 |
CN106484509B CN106484509B (en) | 2020-09-25 |
Family
ID=58267604
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610853933.4A Active CN106484509B (en) | 2016-09-27 | 2016-09-27 | Output method and device of popup window and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106484509B (en) |
Cited By (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106941568A (en) * | 2017-03-30 | 2017-07-11 | 努比亚技术有限公司 | A kind of Toast pop-ups optimization display methods, device and Toast pop-ups dispatching method and device |
CN107092481A (en) * | 2017-03-23 | 2017-08-25 | 武汉斗鱼网络科技有限公司 | A kind of session prompting frame realization method and system for network interaction |
CN107092480A (en) * | 2017-03-23 | 2017-08-25 | 武汉斗鱼网络科技有限公司 | The realization method and system of the dialog box of website log |
CN107153545A (en) * | 2017-05-09 | 2017-09-12 | 北京酷我科技有限公司 | A kind of method that pop-up is managed collectively in iOS system |
CN107463440A (en) * | 2017-09-14 | 2017-12-12 | 北京奇艺世纪科技有限公司 | A kind of pop-up methods of exhibiting and device |
CN108132784A (en) * | 2017-11-09 | 2018-06-08 | 捷开通讯(深圳)有限公司 | The display methods of pop-up, storage device and mobile terminal in a kind of iOS system |
CN108536487A (en) * | 2018-04-12 | 2018-09-14 | 珠海横琴盛达兆业科技投资有限公司 | A kind of Get request method of load server data succinct based on Android platform, efficient |
CN108717371A (en) * | 2018-05-17 | 2018-10-30 | 成都六零加信息技术有限公司 | A kind of pop-up window management method and device |
CN108776585A (en) * | 2018-05-23 | 2018-11-09 | 武汉斗鱼网络科技有限公司 | Method, terminal installation and the storage medium of bubble prompt are generated in IOS |
CN109063202A (en) * | 2018-09-13 | 2018-12-21 | 北京三快在线科技有限公司 | The method, apparatus and computer equipment of pop-up are realized in mixed interface application |
CN109358935A (en) * | 2018-09-29 | 2019-02-19 | 北京金山安全软件有限公司 | Control method and device for popup window display, terminal equipment and storage medium |
WO2019041669A1 (en) * | 2017-08-31 | 2019-03-07 | 武汉斗鱼网络科技有限公司 | Method for realizing report function in video friend making, storage medium, device and system |
CN110673910A (en) * | 2019-09-11 | 2020-01-10 | 上海二三四五网络科技有限公司 | Control method and control device for controlling popup window display in app system |
CN111580899A (en) * | 2020-03-31 | 2020-08-25 | 深圳市麦谷科技有限公司 | Message popup window system based on hierarchical structure and electronic equipment |
CN111629248A (en) * | 2020-05-12 | 2020-09-04 | 深圳Tcl数字技术有限公司 | Dialog box control method, terminal device and readable storage medium |
WO2020192134A1 (en) * | 2019-03-28 | 2020-10-01 | 平安科技(深圳)有限公司 | Exception handling method and apparatus based on spring mvc, and computer device and storage medium |
CN112241297A (en) * | 2019-07-18 | 2021-01-19 | 上海幻电信息科技有限公司 | Data display method, system, computer equipment and readable storage medium |
CN112596828A (en) * | 2020-12-15 | 2021-04-02 | 平安普惠企业管理有限公司 | Application-based popup window generation method and device, electronic equipment and storage medium |
CN113900760A (en) * | 2021-10-26 | 2022-01-07 | 广州博冠信息科技有限公司 | Popup window display method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030169304A1 (en) * | 2002-03-07 | 2003-09-11 | International Business Machines Corporation | Pull-down menu manipulation of multiple open document windowns |
US20100083168A1 (en) * | 2008-09-24 | 2010-04-01 | Yokogawa Electric Corporation | Device information display apparatus |
CN103309697A (en) * | 2012-03-15 | 2013-09-18 | 宇龙计算机通信科技(深圳)有限公司 | Interface display method, system and display terminal for application |
-
2016
- 2016-09-27 CN CN201610853933.4A patent/CN106484509B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030169304A1 (en) * | 2002-03-07 | 2003-09-11 | International Business Machines Corporation | Pull-down menu manipulation of multiple open document windowns |
US20100083168A1 (en) * | 2008-09-24 | 2010-04-01 | Yokogawa Electric Corporation | Device information display apparatus |
CN103309697A (en) * | 2012-03-15 | 2013-09-18 | 宇龙计算机通信科技(深圳)有限公司 | Interface display method, system and display terminal for application |
Non-Patent Citations (3)
Title |
---|
CHUIYUAN: "EventBus and Broadcast", 《HTTPS://WWW.CNBLOGS.COM/CHUIYUAN/P/5462929.HTML》 * |
萧十七: "如何管理多个dialog弹出", 《HTTPS://BLOG.CSDN.NET/ANYWEY/ARTICLE/DETAILS/45722213》 * |
过天: "FIFO队列管理多个Dialog", 《HTTPS://WWW.CNBLOGS.COM/WARMWEI818/P/5351850.HTML》 * |
Cited By (24)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107092481A (en) * | 2017-03-23 | 2017-08-25 | 武汉斗鱼网络科技有限公司 | A kind of session prompting frame realization method and system for network interaction |
CN107092480A (en) * | 2017-03-23 | 2017-08-25 | 武汉斗鱼网络科技有限公司 | The realization method and system of the dialog box of website log |
CN106941568A (en) * | 2017-03-30 | 2017-07-11 | 努比亚技术有限公司 | A kind of Toast pop-ups optimization display methods, device and Toast pop-ups dispatching method and device |
CN107153545A (en) * | 2017-05-09 | 2017-09-12 | 北京酷我科技有限公司 | A kind of method that pop-up is managed collectively in iOS system |
WO2019041669A1 (en) * | 2017-08-31 | 2019-03-07 | 武汉斗鱼网络科技有限公司 | Method for realizing report function in video friend making, storage medium, device and system |
CN107463440A (en) * | 2017-09-14 | 2017-12-12 | 北京奇艺世纪科技有限公司 | A kind of pop-up methods of exhibiting and device |
CN108132784A (en) * | 2017-11-09 | 2018-06-08 | 捷开通讯(深圳)有限公司 | The display methods of pop-up, storage device and mobile terminal in a kind of iOS system |
CN108536487A (en) * | 2018-04-12 | 2018-09-14 | 珠海横琴盛达兆业科技投资有限公司 | A kind of Get request method of load server data succinct based on Android platform, efficient |
CN108717371B (en) * | 2018-05-17 | 2021-11-12 | 成都六零加信息技术有限公司 | Pop-up window management method and device |
CN108717371A (en) * | 2018-05-17 | 2018-10-30 | 成都六零加信息技术有限公司 | A kind of pop-up window management method and device |
CN108776585A (en) * | 2018-05-23 | 2018-11-09 | 武汉斗鱼网络科技有限公司 | Method, terminal installation and the storage medium of bubble prompt are generated in IOS |
CN109063202A (en) * | 2018-09-13 | 2018-12-21 | 北京三快在线科技有限公司 | The method, apparatus and computer equipment of pop-up are realized in mixed interface application |
CN109358935A (en) * | 2018-09-29 | 2019-02-19 | 北京金山安全软件有限公司 | Control method and device for popup window display, terminal equipment and storage medium |
WO2020192134A1 (en) * | 2019-03-28 | 2020-10-01 | 平安科技(深圳)有限公司 | Exception handling method and apparatus based on spring mvc, and computer device and storage medium |
CN112241297A (en) * | 2019-07-18 | 2021-01-19 | 上海幻电信息科技有限公司 | Data display method, system, computer equipment and readable storage medium |
CN112241297B (en) * | 2019-07-18 | 2024-05-14 | 上海幻电信息科技有限公司 | Data display method, system, computer equipment and readable storage medium |
CN110673910A (en) * | 2019-09-11 | 2020-01-10 | 上海二三四五网络科技有限公司 | Control method and control device for controlling popup window display in app system |
CN110673910B (en) * | 2019-09-11 | 2023-05-26 | 上海二三四五网络科技有限公司 | Control method and control device for controlling popup window display in app system |
CN111580899A (en) * | 2020-03-31 | 2020-08-25 | 深圳市麦谷科技有限公司 | Message popup window system based on hierarchical structure and electronic equipment |
CN111580899B (en) * | 2020-03-31 | 2024-04-30 | 深圳市麦谷科技有限公司 | Layered structure-based message popup window system and electronic equipment |
CN111629248A (en) * | 2020-05-12 | 2020-09-04 | 深圳Tcl数字技术有限公司 | Dialog box control method, terminal device and readable storage medium |
CN112596828A (en) * | 2020-12-15 | 2021-04-02 | 平安普惠企业管理有限公司 | Application-based popup window generation method and device, electronic equipment and storage medium |
CN113900760A (en) * | 2021-10-26 | 2022-01-07 | 广州博冠信息科技有限公司 | Popup window display method and device |
CN113900760B (en) * | 2021-10-26 | 2024-05-28 | 广州博冠信息科技有限公司 | Popup window display method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106484509B (en) | 2020-09-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106484509A (en) | A kind of output intent of pop-up, device and terminal | |
CN103226486B (en) | The method and apparatus that browser execution is optimized | |
CN105446755B (en) | A kind of method and apparatus quickly loading Activity data in android system | |
US20170099228A1 (en) | Mobile Device With In-Situ Network Activity Management | |
CN108268271A (en) | The upgrade method and update device of micro services | |
CN104134036B (en) | Method and device for obtaining Root permission | |
CN105930208A (en) | Thread scheduling method and thread scheduling apparatus | |
CN104468547B (en) | Establish the method, apparatus and system of long connection | |
US20140220958A1 (en) | Network system, terminal customization method, and customization service method | |
CN106469071A (en) | Application program subject replacement method and device | |
CN108496198A (en) | A kind of image processing method and equipment | |
CN105095749A (en) | Status bar notification takeover method and device | |
CN110633032A (en) | Icon display method and device for terminal equipment | |
CN106060899A (en) | Flow control method and device | |
CN108089970A (en) | Predict method, terminal and the storage medium of remaining capacity up time | |
CN102780987A (en) | Communication method and communication terminal | |
CN105426192A (en) | Information modification method and terminal | |
CN103761126B (en) | The upgrade method of application program and device | |
CN107526584A (en) | Data cut-in method and device | |
CN110113391A (en) | A kind of client loading method, device and a kind of client operation method, device | |
CN109150567B (en) | Monitoring method and device for virtual network function module and readable storage medium | |
CN109144884A (en) | Program error localization method, device and computer readable storage medium | |
CN107741883B (en) | A kind of method, apparatus and computer equipment avoiding thread block | |
CN107544722A (en) | A kind of monitoring method and terminal | |
CN108965412A (en) | More network interface cards simultaneously deposit communication means, device, storage medium and terminal device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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 |