CN104765563A - Control method and device for terminal application program - Google Patents

Control method and device for terminal application program Download PDF

Info

Publication number
CN104765563A
CN104765563A CN201510155544.XA CN201510155544A CN104765563A CN 104765563 A CN104765563 A CN 104765563A CN 201510155544 A CN201510155544 A CN 201510155544A CN 104765563 A CN104765563 A CN 104765563A
Authority
CN
China
Prior art keywords
application program
program interface
objective function
displacement information
information
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
Application number
CN201510155544.XA
Other languages
Chinese (zh)
Inventor
叶振华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Meizu Technology China Co Ltd
Original Assignee
Meizu Technology China Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Meizu Technology China Co Ltd filed Critical Meizu Technology China Co Ltd
Priority to CN201510155544.XA priority Critical patent/CN104765563A/en
Publication of CN104765563A publication Critical patent/CN104765563A/en
Pending legal-status Critical Current

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a control method and device for a terminal application program. The method comprises the following steps: detecting whether a dragging event corresponding to an application program interface is on a touch control screen of the terminal or not; if so, obtaining dragged displacement information on the application program interface in the dragging event, wherein the displacement information comprises distance information; triggering target functions corresponding to the displacement information, wherein corresponding relations between a plurality of the displacement information and a plurality of the target functions are preset in the terminal. With the adoption of the control method provided by the invention, the problem in the prior art that the control efficiency of the application program is lower due to that the functions, which can be triggered by pull-up or pull-down operation of the application program, are too simple can be solved.

Description

A kind of control method of end application and device
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of control method and device of end application.
Background technology
In recent years, touch screen technology development is swift and violent, and touch-screen has been applied on various terminal widely.A lot of application programs on touch screen terminal are all provided with pullup or pulldown operation, and such as, when microblogging enters main interface, touching touch screen interface slide downward, can trigger the refresh operation of microblogging; For another example, when QQ is in chat interface, touching touch screen interface upward sliding, can trigger the input operation of QQ.
But it is too single that pullup or pulldown of the prior art operates the function that can trigger, and makes the control efficiency of application program not high.
Summary of the invention
The embodiment of the invention discloses a kind of control method and device of end application, the function that the pullup or pulldown operation that can solve application program in prior art triggers is too single, makes the problem that the control efficiency of application program is not high.
First aspect, the embodiment of the present invention provides a kind of control method of end application, comprising:
Whether the touch-screen detecting described terminal there is the drag events for Application Program Interface;
If described drag events detected, then obtain described Application Program Interface trailing displacement information in described drag events, institute's displacement information comprises range information;
Trigger the objective function corresponding with institute displacement information, wherein, in described terminal, prestore the corresponding relation between multiple displacement information and multiple objective function.
In conjunction with first party, in the first possible implementation of first aspect,
The objective function that described triggering is corresponding with institute displacement information, wherein, prestores the corresponding relation between multiple displacement information and multiple objective function, comprising in described terminal:
Judge whether the trailing distance of described Application Program Interface falls in default distance regions according to described range information;
If so, then trigger the objective function corresponding with between described default distance regions, prestore in described terminal between multiple distance regions with the corresponding relation of multiple objective function.
In conjunction with first party, in the implementation that the second of first aspect is possible,
Institute's displacement information also comprises directional information;
The objective function that described triggering is corresponding with institute displacement information, wherein, prestores the corresponding relation between multiple displacement information and multiple objective function, comprising in described terminal:
Judge whether the trailing distance of described Application Program Interface falls in default distance regions according to described range information; And
Judge that whether the trailing direction of described Application Program Interface is consistent with preset direction according to described directional information;
If, then trigger between described distance regions and the common corresponding objective function of described preset direction, wherein, the multiple binding relationships prestored in described terminal between multiple preset direction and multiple distance regions, and the corresponding relation between described multiple binding relationship and multiple objective function.
In conjunction with first party, in the third possible implementation of first aspect,
The described Application Program Interface of described acquisition trailing displacement information in described drag events comprises:
Obtain described Application Program Interface from being dragged to trailing displacement information in d/d process.
Further,
Detect described Application Program Interface operated by the stop in dragging process;
After described stop operation being detected, judge whether the described duration stopping operation reaches Preset Time;
If so, described Application Program Interface is then obtained from being dragged to trailing displacement information holding process.
Second aspect, the embodiment of the invention also discloses a kind of control device of end application, comprising:
Whether detecting unit, have the drag events for Application Program Interface on the touch-screen detecting described terminal;
Acquiring unit, for described drag events being detected when described detecting unit, obtain described Application Program Interface trailing displacement information in described drag events, institute's displacement information comprises range information;
Trigger element, for triggering the objective function corresponding with institute displacement information, wherein, prestores the corresponding relation between multiple displacement information and multiple objective function in described terminal.
In conjunction with second party, in the first possible implementation of second aspect,
Described trigger element comprises judgment sub-unit and triggers unit, wherein,
Judgment sub-unit, for judging according to described range information whether the trailing distance of described Application Program Interface falls in default distance regions;
Triggers unit, for when the judged result of described judgment sub-unit is for being, triggers the objective function corresponding with described predeterminable range interval, prestore in described terminal between multiple distance regions with the corresponding relation of multiple objective function.
In conjunction with second party, in the implementation that the second of second aspect is possible,
Institute's displacement information also comprises directional information; Described trigger element comprises Distance Judgment subelement, walking direction subelement and triggers unit, wherein,
Distance Judgment subelement, for judging according to described range information whether the trailing distance of described Application Program Interface falls in predeterminable range interval; And
Walking direction subelement, for judging that according to described directional information whether the trailing direction of described Application Program Interface is consistent with preset direction;
Triggers unit, for when the judged result of described Distance Judgment subelement and walking direction subelement is for being, trigger between described distance regions and the common corresponding objective function of described preset direction, wherein, the multiple binding relationships prestored in described terminal between multiple preset direction and multiple distance regions, and the corresponding relation between described multiple binding relationship and multiple objective function.
In conjunction with second party, in the third possible implementation of second aspect,
Described acquiring unit specifically for,
Obtain described Application Program Interface from being dragged to trailing displacement information in d/d process.
Further,
Detect described Application Program Interface operated by the stop in dragging process;
After described stop operation being detected, judge whether the described duration stopping operation reaches Preset Time;
If so, described Application Program Interface is then obtained from being dragged to trailing displacement information holding process.
By implementing the embodiment of the present invention, user can slide on the touchscreen and Application Program Interface is dragged, and the distance dragged is different, and the function triggered is also different, makes user slide on the touchscreen and can trigger several functions respectively, improve the control efficiency of application programs.The direction of dragging and distance are combined, determines to trigger which function from two dimensions, considerably increase the quantity of controllable function.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of the control method of a kind of end application that the embodiment of the present invention provides.
Figure 1A is the scene schematic diagram of a kind of Application Program Interface that the embodiment of the present invention provides.
Figure 1B is the scene schematic diagram of the another kind of Application Program Interface that the embodiment of the present invention provides.
Fig. 1 C is the scene schematic diagram of the another kind of Application Program Interface that the embodiment of the present invention provides.
Fig. 2 is the schematic flow sheet of the control method of the another kind of end application that the embodiment of the present invention provides.
Fig. 3 is the structural representation of the control device of a kind of end application that the embodiment of the present invention provides.
Fig. 4 is the structural representation of the control device of the another kind of end application that the embodiment of the present invention provides.
Fig. 5 is the structural representation of the control device of the another kind of end application that the embodiment of the present invention provides.
Fig. 6 is the structural representation of the control device of the another kind of end application that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only a part of embodiment of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
It should be noted that, the term used in embodiments of the present invention is only for the object describing specific embodiment, and not intended to be limiting the present invention." one ", " described " and " being somebody's turn to do " of the singulative used in the embodiment of the present invention and appended claims is also intended to comprise most form, unless context clearly represents other implications.It is also understood that term "and/or" used herein refer to and comprise one or more project of listing be associated any or all may combine.In addition, term " first ", " second ", " the 3rd " and " the 4th " etc. in instructions of the present invention and claims and above-mentioned accompanying drawing are for distinguishing different object, instead of for describing particular order.In addition, term " comprises " and " having " and their any distortion, and intention is to cover not exclusive comprising.Such as contain the process of series of steps or unit, method, system, product or equipment and be not defined in the step or unit listed, but also comprise the step or unit do not listed alternatively, or also comprise alternatively for other intrinsic step of these processes, method, product or equipment or unit.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of the control method of a kind of end application that the embodiment of the present invention provides, and the method includes but not limited to following steps.
Step S101: whether the touch-screen detecting described terminal has the drag events for Application Program Interface.
Particularly, Application Program Interface is the interface in application program, further, it can be the interface of specifying in this application program, for example, a social application total total " messaging list interface ", " buddy list interface " and " personal information interface ", " described Application Program Interface " in step S101 refers at least one interface in three interfaces, specifically how one still can preset as required, when " the described Application Program Interface " in setting procedure S101 is " buddy list interface " and " personal information " interface, only have when application program enters " buddy list interface " or " personal information ", terminal just performs " detection " action in above-mentioned steps S101, or terminal is performing " detection " action in above-mentioned steps S101 always, just when " detection " action is somebody's turn to do in execution, also need to judge that social application is current further and whether be in " buddy list interface " or " personal information " interface.
Above-mentioned drag events can be specially: after touching touch-screen slides a segment distance toward a direction, stop this touch-screen of touching, make the part in this Application Program Interface or this Application Program Interface along with the event of glide direction (or decomposition direction of glide direction) movement.
For example, please refer to Figure 1A and Figure 1B, 101 is Application Program Interface, 102 is the part (can be referred to as trailer portion for convenience of description) in this Application Program Interface, Figure 1A interface 101 is by after drag events process (finger touching touch-screen down slides and then looses one's grip), display effect as shown in Figure 1B, namely a part 102 entirety in whole Application Program Interface 101 moves down, there is dragging effect, except described a part of 102, other parts remain unchanged, certainly, reach the display effect of Figure 1B, can also be moved toward lower right or lower left by finger touching touch-screen, whether the direction that finger slides on the touchscreen is consistent with the direction of described part movement presets, be not restricted herein.
Further, above-mentioned drag events can also be specially: after touching touch-screen slides a segment distance toward a direction, continue on the touchscreen to stay for some time, make the part in this Application Program Interface or this Application Program Interface along with the event of glide direction (or decomposition direction of glide direction) movement.
For example, please refer to Figure 1A and Figure 1B, 101 is Application Program Interface, 102 is the part (can be referred to as trailer portion for convenience of description) in this Application Program Interface, Figure 1A interface 101 is by after drag events process (finger touching touch-screen down slides and then continues to stay for some time), display effect as shown in Figure 1B, namely a part 102 entirety in whole Application Program Interface 101 moves down, there is dragging effect, except described a part of 102, other parts remain unchanged, certainly, reach the display effect of Figure 1B, can also be moved toward lower right or lower left by finger touching touch-screen, whether the direction that finger slides on the touchscreen is consistent with the direction of described part movement presets, be not restricted herein.
Step S102: if described drag events detected, then obtain described Application Program Interface trailing displacement information in described drag events, institute's displacement information comprises range information.
Particularly, this drag events is to having displacement information, and this displacement information can comprise range information, and this range information is specially the distance that the described part in this Application Program Interface moves integrally.When being in Application Program Interface, terminal can be noted down to the position of a described part, when detecting operation touch-screen having touching and disappearing, the position of a described part when touching operation disappears and the original position of a described part are compared, draw the former displacement variable compared to the latter, this displacement variable comprises the distance between the former with the latter, and this distance is range information.
For example, please refer to Figure 1A and Fig. 1 C, the position of described trailer portion 102 before Figure 1A illustrates and touches touch-screen, when Fig. 1 C touching operation illustrated on touch-screen disappears, (now finger should leave touch-screen, in order to but be produce drag events, just so remain finger in fig. 1 c by touching touch-screen before embodying) position of described trailer portion 102, by Figure 1A to Fig. 1 C, the position of trailer portion 102 there occurs and moves integrally, and the distance of movement is 103.
Step S103: trigger the objective function corresponding with institute displacement information.
Particularly, the corresponding relation of multiple displacement information and multiple objective function has been prestored in the terminal, the corresponding relation of multiple range information and multiple objective function more precisely.After terminal obtains the range information of Application Program Interface, from corresponding relation, find out objective function corresponding to the range information of Application Program Interface and trigger this objective function.
In order to better understand the corresponding relation of above-mentioned range information and objective function, please refer to table 1.
Range information (cm) Objective function
1 Refresh list
2 Return upper level
3 Return master menu
4 Eject search box
Table 1
When the trailing range information of Application Program Interface is 2cm, return the previous menu of Application Program Interface, when the trailing range information of Application Program Interface is 3cm, return master menu, other by that analogy.It should be noted that, the data in table 1 are only limitted to citing, and in actual applications, the corresponding relation of range information and objective function can preset as required.
Further, in the optional scheme of one, the described triggering objective function corresponding with institute displacement information comprises: judge whether the trailing distance of described Application Program Interface falls in the distance regions that objective function triggers according to described range information; If so, then the objective function corresponding with between described distance regions is triggered.
Particularly, Application Program Interface by the range information dragging rear generation can be have numerous, but be not that each range information is corresponding with objective function separately, but one group of distance is common corresponding with objective function, for example, range information desirable between 1cm to 2cm has numerous, but all range informations between 1cm ~ 2cm are corresponding one group of objective function (at least one function) jointly, the common corresponding another group of objective function (at least one function) of range information between 2cm ~ 3cm, generally speaking, before determining the objective function that range information is corresponding, need first to determine between the distance regions belonging to range information, when range information gives timing, can judge between the distance regions belonging to given range information according to list between the distance regions prestored in terminal, in addition, also prestore the corresponding relation with objective function between distance regions in terminal, draw after between distance regions, between distance regions, corresponding objective function can be found out with the corresponding relation of objective function, and trigger this objective function.
Can analogy table 2 with the corresponding relation of objective function between distance regions.
Between distance regions (cm) Objective function
1~2 Refresh list
2~3 Return upper level
3~4 Return master menu
4~5 Eject search box
Table 2
Please refer to table 2, when determining that the trailing range information of a described part is 2.5cm, first can judge that this range information belongs to 2cm ~ 3cm between distance regions, then, the function of " returning upper level " that 2cm ~ 3cm is corresponding between distance regions is triggered, in like manner, when determining that the trailing range information of a described part is 3.25cm, first can judge that this range information belongs to 3cm ~ 4cm between distance regions, then, trigger the function of " returning master menu " that 3cm ~ 4cm is corresponding between distance regions.
Again further, reference point is comprised in described Application Program Interface, the described Application Program Interface of described acquisition trailing displacement information in described drag events comprises: record the position of described reference point when described drag events starts and at the end of position, and according to described start time position and at the end of position draw the trailing range information of described Application Program Interface.
Particularly, comprise reference point in the described part more precisely in Application Program Interface, the displacement information drawn by the change in location of point is more accurate.
Again further, the described Application Program Interface of described acquisition trailing displacement information in described drag events comprises: the position of to record on described touch-screen first and last induction point triggered by described drag events, and draws the trailing range information of described Application Program Interface according to the position of described first and last induction point triggered by described drag events.
Particularly, because terminal can detect the situation about being triggered of each induction point on touch-screen in real time, in some scenes, the displacement that hand slides on the touchscreen is identical with the displacement of the described part movement in Application Program Interface, therefore, the displacement can slided on the touchscreen by detecting hand draws the displacement of a described part, in practical operation, in drag events, on touch-screen last by the induction point of being pointed triggering with start most one and namely reflected by the line pointing the induction point triggered the displacement that hand slides on the touchscreen.
Again further, trigger the objective function corresponding with institute displacement information can also comprise: after find out objective function corresponding to displacement information from default corresponding relation, directly do not trigger this objective function, but at icon corresponding to this objective function of touch screen display of terminal, selected the objective function needing to trigger with indicating user by clickable icon, or selected the need of the confirmed objective function of triggering terminal by clickable icon.
Again further, institute's displacement information also comprises directional information; The objective function that described triggering is corresponding with institute displacement information, wherein, prestore the corresponding relation between multiple displacement information and multiple objective function in described terminal, comprising: judge whether the trailing distance of described Application Program Interface falls in default distance regions according to described range information; And judge that whether the trailing direction of described Application Program Interface is consistent with preset direction according to described directional information; If, then trigger between described distance regions and the common corresponding objective function of described preset direction, wherein, the multiple binding relationships prestored in described terminal between multiple preset direction and multiple distance regions, and the corresponding relation between described multiple binding relationship and multiple objective function.
Refer to Fig. 2, Fig. 2 is the control method schematic flow sheet of the another kind of end application that the embodiment of the present invention provides, and the method includes but not limited to following steps.
Step S201: whether the touch-screen detecting described terminal has the drag events for Application Program Interface.
Particularly, step S201 can be corresponding to step S101, repeats no more herein.
Step S202: if described drag events detected, then obtain described Application Program Interface trailing displacement information in described drag events, institute's displacement information comprises range information and directional information.
Particularly, this drag events is to having displacement information, this displacement information can comprise range information and directional information, this range information is specially the distance of the described part movement in this Application Program Interface, compared to the direction before movement after this directional information described part be specially in this Application Program Interface moves.When application program is in described Application Program Interface, terminal can be noted down to the position of a described part, when detection touch-screen has touching to operate disappearance, by a described part touching operation disappear time position and described part position originally compare, draw the former displacement variable compared to the latter, this displacement variable comprises the distance between the former with the latter, and the former is compared to the direction of the latter, this distance is range information, and this direction is directional information.
For example, please refer to Figure 1A and Fig. 1 C, the position of described trailer portion 102 before Figure 1A illustrates and touches touch-screen, the position of described trailer portion 102 when Fig. 1 C touching operation illustrated on touch-screen disappears, by Figure 1A to Fig. 1 C, the position of trailer portion 102 there occurs and moves integrally, and the distance of movement is the below of trailer portion 102 trailer portion in figure ia in 103, Fig. 1 C.
Step S203: judge whether the trailing distance of described Application Program Interface falls in the distance regions of objective function triggering according to described range information.
Particularly, application program median surface by the range information dragging rear generation can be have numerous, but be not that each range information is corresponding with objective function separately, but one group of distance is common corresponding with objective function, for example, range information desirable between 1cm to 2cm has numerous, but all range informations between 1cm ~ 2cm are corresponding one group of objective function (at least one function) jointly, the common corresponding another group of objective function (at least one function) of range information between 2cm ~ 3cm, generally speaking, before determining the objective function that range information is corresponding, need first to determine between the distance regions belonging to range information, when range information gives timing, can judge between the distance regions belonging to given range information according to list between the distance regions prestored in terminal.
Step S204: judge whether the trailing direction of described Application Program Interface falls in the Direction interval of objective function triggering according to described directional information.
Particularly, the trailing directional information of Application Program Interface can have numerous, but be not that each directional information is corresponding with objective function separately, but one group of directional information is common corresponding with objective function, for example, position when not dragged with a described part as a reference, between its 90 ° to 180 °, desirable directional information has numerous, but the directional information between 90 ° ~ 180 ° is corresponding one group of objective function (at least one function) jointly, the common corresponding another group of objective function (at least one function) of directional information between 180 ° ~ 270 °.Generally speaking, before determining the objective function that directional information is corresponding, need the Direction interval first determined belonging to directional information, when directional information gives timing, the Direction interval belonging to given direction can be judged according to the Direction interval list prestored in terminal.
Step S205: when the judged result of step S203 and step S204 is for during all for being, trigger between described distance regions and the common corresponding objective function of Direction interval.
Particularly, when judging between the distance regions belonging to range information, and after Direction interval belonging to directional information, trigger between this distance regions and the common corresponding objective function of Direction interval, wherein, deposit the corresponding relation with Direction interval and multinomial objective function between many distance regions in terminal, this corresponding relation can analogy table 3.
Between distance regions (cm) Direction interval (°) Objective function
1~2 0~90 Refresh list
2~3 90~180 Return upper level
3~4 180~270 Return master menu
4~5 270~360 Eject search box
Table 3
Please refer to table 3, when determining that the trailing range information of a described part is 2.5cm, and the described part after dragging is when being 100 ° compared to the directional information of a described part before dragging, can determine that a described part falls into 2cm ~ 3cm and Direction interval 90 ° ~ 180 ° between distance regions, therefore the function of " returning upper level " is triggered, in like manner, when determining that the trailing range information of a described part is 3.25cm, and the described part after dragging is when being 200 ° compared to the directional information of a described part before dragging, can determine that a described part falls into 3cm ~ 4cm and Direction interval 180 ° ~ 270 ° between distance regions, therefore the function of " returning master menu " is triggered.
Further, reference point point is comprised in described Application Program Interface; The described Application Program Interface of described acquisition trailing displacement information in described drag events comprises: record the position of described reference point when described drag events starts and at the end of position, and according to described start time position and at the end of position draw the trailing range information of described Application Program Interface and directional information.
Particularly, comprise reference point in the described part more precisely in Application Program Interface, the displacement information drawn by the change in location of point is more accurate.
Again further, the described Application Program Interface of described acquisition trailing displacement information in described drag events comprises: the position of to record on described touch-screen first and last induction point triggered by described drag events, and draws the trailing range information of described Application Program Interface and directional information according to the position of described first and last induction point triggered by described drag events.
Particularly, because terminal can detect the situation about being triggered of each induction point on touch-screen in real time, in some scenes, the displacement that hand slides on the touchscreen is identical with the displacement of the described part movement in Application Program Interface, therefore, the displacement can slided on the touchscreen by detecting hand draws the displacement of a described part, in practical operation, in drag events, on touch-screen last by the induction point of being pointed triggering with start most one and can be withdrawn deposit the displacement of selling and sliding on the touchscreen by the line pointing the induction point triggered.
The above-mentioned method illustrating the embodiment of the present invention, for the ease of implementing the such scheme of the embodiment of the present invention better, correspondingly, provided below is the device of the embodiment of the present invention.
Refer to Fig. 3, Fig. 3 is the structural representation of the control device 30 of a kind of end application that the embodiment of the present invention provides, and this device 30 can comprise detecting unit 301, acquiring unit 302 and trigger element 303, wherein, and being described in detail as follows of unit.
Whether detecting unit 301 has the drag events for Application Program Interface on the touch-screen detecting described terminal;
Acquiring unit 302 is for described drag events being detected when described detecting unit 301, and obtain described Application Program Interface trailing displacement information in described drag events, institute's displacement information comprises range information;
Trigger element 303, for triggering the objective function corresponding with institute displacement information, wherein, prestores the corresponding relation between multiple displacement information and multiple objective function in described terminal.
In the optional scheme of one, the control device of end application can be structure as shown in Figure 4, and in the diagram, trigger element 303 can comprise judgment sub-unit 3031 and triggers unit 3032, wherein, and being described in detail as follows of each subelement.
Judgment sub-unit 3031 is for judging according to described range information whether the trailing distance of described Application Program Interface falls in predeterminable range interval;
Triggers unit 3032, for when the judged result of described judgment sub-unit 3031 is for being, triggers the objective function corresponding with between described distance regions, prestore in described terminal between multiple distance regions with the corresponding relation of multiple objective function.
In another optional scheme, the control device of end application can be structure as shown in Figure 5, and in Figure 5, trigger element 303 can comprise Distance Judgment subelement 3033, walking direction subelement 3034 and triggers unit 3032, wherein, being described in detail as follows of each subelement.
Distance Judgment subelement 3033 is for judging according to described range information whether the trailing distance of described Application Program Interface falls in predeterminable range interval; And
Walking direction subelement 3034 is for judging that according to described directional information whether the trailing direction of described Application Program Interface is consistent with preset direction;
Triggers unit 3032 is for when the judged result of described Distance Judgment subelement 3033 and described walking direction subelement 3034 is all for being, trigger between described distance regions and the common corresponding objective function of described preset direction, wherein, the multiple binding relationships prestored in described terminal between multiple preset direction and multiple distance regions, and the corresponding relation between described multiple binding relationship and multiple objective function.
It should be noted that, in embodiments of the present invention, the specific implementation of unit can corresponding see figures.1.and.2 the corresponding description of shown embodiment of the method, repeats no more herein.
Please refer to Fig. 6, Fig. 6 is the structural representation of the control device 60 of the another kind of end application that the embodiment of the present invention provides.The control device 60 of this end application can comprise: at least one processor 601, such as CPU, at least one network interface 604, user interface 603, storer 605, at least one communication bus 602 and display screen 606.Wherein, communication bus 602 is for realizing the connection communication between these assemblies.Wherein, user interface 603 can comprise display screen (Display) 606, and optional user interface 603 can also comprise wireline interface, the wave point of standard.Communication interface 604 optionally can comprise wireline interface (as data line interface, cable interface etc.), the wave point (as WI-FI interface, blue tooth interface, near-field communication interface) of standard.Storer 605 can be high-speed RAM storer, also can be non-labile storer (non-volatile memory), such as at least one magnetic disk memory.Storer 605 can also be optionally that at least one is positioned at the memory storage away from aforementioned processor 601.As shown in Figure 6, as the control program that can comprise operating system, network communication module, Subscriber Interface Module SIM and application program in a kind of storer 605 of computer-readable storage medium.
In the control device 60 of the application program shown in Fig. 6, communication interface 604 is mainly used in connection second terminal, carries out data communication with the second terminal; And processor 601 may be used for calling the control program of the application program stored in storer 605, and perform following operation:
Whether the touch-screen detecting described terminal there is the drag events for Application Program Interface;
If described drag events detected, then obtain described Application Program Interface trailing displacement information in described drag events, institute's displacement information comprises range information;
Trigger the objective function corresponding with institute displacement information, wherein, in described terminal, prestore the corresponding relation between multiple displacement information and multiple objective function.
Further, the objective function that described triggering is corresponding with institute displacement information, wherein, prestores the corresponding relation between multiple displacement information and multiple objective function, comprising in described terminal:
Judge whether the trailing distance of described Application Program Interface falls in default distance regions according to described range information;
If so, then trigger the objective function corresponding with described predeterminable range interval, prestore in described terminal between multiple distance regions with the corresponding relation of multiple objective function.
Further, institute's displacement information also comprises directional information;
The objective function that described triggering is corresponding with institute displacement information, wherein, prestores the corresponding relation between multiple displacement information and multiple objective function, comprising in described terminal:
Judge whether the trailing distance of described Application Program Interface falls in default distance regions according to described range information; And
Judge that whether the trailing direction of described Application Program Interface is consistent with preset direction according to described directional information;
If, then trigger between described distance regions and the common corresponding objective function of described preset direction, wherein, the multiple binding relationships prestored in described terminal between multiple preset direction and multiple distance regions, and the corresponding relation between described multiple binding relationship and multiple objective function.
Further, the described Application Program Interface of described acquisition trailing displacement information in described drag events comprises:
Obtain described Application Program Interface from being dragged to trailing displacement information in d/d process.
Further, the described Application Program Interface of described acquisition trailing displacement information in described drag events comprises:
Detect described Application Program Interface operated by the stop in dragging process;
After described stop operation being detected, judge whether the described duration stopping operation reaches Preset Time;
If so, described Application Program Interface is then obtained from being dragged to trailing displacement information holding process.
In sum, by implementing the embodiment of the present invention, user can slide on the touchscreen and Application Program Interface is dragged, and the distance dragged is different, and the function triggered is also different, user is slided on the touchscreen and can trigger several functions respectively, improve the control efficiency of application programs.The direction of dragging and distance are combined, determines to trigger which function from two dimensions, considerably increase the quantity of controllable function.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosedly be only a kind of preferred embodiment of the present invention, certainly the interest field of the present invention can not be limited with this, one of ordinary skill in the art will appreciate that all or part of flow process realizing above-described embodiment, and according to the equivalent variations that the claims in the present invention are done, still belong to the scope that invention is contained.

Claims (10)

1. a control method for end application, is characterized in that, comprising:
Whether the touch-screen detecting described terminal there is the drag events for Application Program Interface;
If described drag events detected, then obtain described Application Program Interface trailing displacement information in described drag events, institute's displacement information comprises range information;
Trigger the objective function corresponding with institute displacement information, wherein, in described terminal, prestore the corresponding relation between multiple displacement information and multiple objective function.
2. method according to claim 1, is characterized in that, the objective function that described triggering is corresponding with institute displacement information, wherein, prestores the corresponding relation between multiple displacement information and multiple objective function, comprising in described terminal:
Judge whether the trailing distance of described Application Program Interface falls in default distance regions according to described range information;
If so, then trigger the objective function corresponding with described predeterminable range interval, prestore in described terminal between multiple distance regions with the corresponding relation of multiple objective function.
3. method according to claim 1, is characterized in that,
Institute's displacement information also comprises directional information;
The objective function that described triggering is corresponding with institute displacement information, wherein, prestores the corresponding relation between multiple displacement information and multiple objective function, comprising in described terminal:
Judge whether the trailing distance of described Application Program Interface falls in default distance regions according to described range information; And
Judge that whether the trailing direction of described Application Program Interface is consistent with preset direction according to described directional information;
If, then trigger between described distance regions and the common corresponding objective function of described preset direction, wherein, the multiple binding relationships prestored in described terminal between multiple preset direction and multiple distance regions, and the corresponding relation between described multiple binding relationship and multiple objective function.
4. method according to claim 1, is characterized in that, the described Application Program Interface of described acquisition trailing displacement information in described drag events comprises:
Obtain described Application Program Interface from being dragged to trailing displacement information in d/d process.
5. method according to claim 1, is characterized in that, the described Application Program Interface of described acquisition trailing displacement information in described drag events comprises:
Detect described Application Program Interface operated by the stop in dragging process;
After described stop operation being detected, judge whether the described duration stopping operation reaches Preset Time;
If so, described Application Program Interface is then obtained from being dragged to trailing displacement information holding process.
6. a control device for end application, is characterized in that, comprising:
Whether detecting unit, have the drag events for Application Program Interface on the touch-screen detecting described terminal;
Acquiring unit, for described drag events being detected when described detecting unit, obtain described Application Program Interface trailing displacement information in described drag events, institute's displacement information comprises range information;
Trigger element, for triggering the objective function corresponding with institute displacement information, wherein, prestores the corresponding relation between multiple displacement information and multiple objective function in described terminal.
7. device according to claim 6, is characterized in that, described trigger element comprises judgment sub-unit and triggers unit, wherein,
Judgment sub-unit, for judging according to described range information whether the trailing distance of described Application Program Interface falls in predeterminable range interval;
Triggers unit, for when the judged result of described judgment sub-unit is for being, triggers the objective function corresponding with described predeterminable range interval, prestore in described terminal between multiple distance regions with the corresponding relation of multiple objective function.
8. device according to claim 6, is characterized in that, institute's displacement information also comprises directional information; Described trigger element comprises Distance Judgment subelement, walking direction subelement and triggers unit, wherein,
Distance Judgment subelement, for judging according to described range information whether the trailing distance of described Application Program Interface falls in predeterminable range interval; And
Walking direction subelement, for judging that according to described directional information whether the trailing direction of described Application Program Interface is consistent with preset direction;
Triggers unit, for when the judged result of described Distance Judgment subelement and walking direction subelement is for being, trigger between described distance regions and the common corresponding objective function of described preset direction, wherein, the multiple binding relationships prestored in described terminal between multiple preset direction and multiple distance regions, and the corresponding relation between described multiple binding relationship and multiple objective function.
9. device according to claim 6, is characterized in that,
Described acquiring unit specifically for,
Obtain described Application Program Interface from being dragged to trailing displacement information in d/d process.
10. device according to claim 6, is characterized in that, described acquiring unit specifically for:
Detect described Application Program Interface operated by the stop in dragging process;
After described stop operation being detected, judge whether the described duration stopping operation reaches Preset Time;
If so, described Application Program Interface is then obtained from being dragged to trailing displacement information holding process.
CN201510155544.XA 2015-04-02 2015-04-02 Control method and device for terminal application program Pending CN104765563A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510155544.XA CN104765563A (en) 2015-04-02 2015-04-02 Control method and device for terminal application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510155544.XA CN104765563A (en) 2015-04-02 2015-04-02 Control method and device for terminal application program

Publications (1)

Publication Number Publication Date
CN104765563A true CN104765563A (en) 2015-07-08

Family

ID=53647427

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510155544.XA Pending CN104765563A (en) 2015-04-02 2015-04-02 Control method and device for terminal application program

Country Status (1)

Country Link
CN (1) CN104765563A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105607860A (en) * 2016-03-07 2016-05-25 上海斐讯数据通信技术有限公司 Drag-photographing method and system
CN106354411A (en) * 2016-08-26 2017-01-25 维沃移动通信有限公司 Interface startup method and mobile terminal
CN106909288A (en) * 2017-03-29 2017-06-30 广州阿里巴巴文学信息技术有限公司 The method for refreshing of application program, device and electronic equipment
CN107832002A (en) * 2017-11-22 2018-03-23 广州市动景计算机科技有限公司 Data processing method, device and terminal device
CN111782298A (en) * 2020-06-30 2020-10-16 Oppo(重庆)智能科技有限公司 Application program management method and device, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2701048A1 (en) * 2011-12-19 2014-02-26 Tencent Technology (Shenzhen) Company Limited Method and device for software interface display on terminal, and computer storage medium
CN103793241A (en) * 2012-10-05 2014-05-14 宏达国际电子股份有限公司 Communication device, and method of activating update of home screen of mobile communication device
CN103885691A (en) * 2014-03-20 2014-06-25 小米科技有限责任公司 Method and device for executing backspacing operation
CN103927100A (en) * 2014-04-21 2014-07-16 北京金山安全软件有限公司 Method and system for opening application program in mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2701048A1 (en) * 2011-12-19 2014-02-26 Tencent Technology (Shenzhen) Company Limited Method and device for software interface display on terminal, and computer storage medium
CN103793241A (en) * 2012-10-05 2014-05-14 宏达国际电子股份有限公司 Communication device, and method of activating update of home screen of mobile communication device
CN103885691A (en) * 2014-03-20 2014-06-25 小米科技有限责任公司 Method and device for executing backspacing operation
CN103927100A (en) * 2014-04-21 2014-07-16 北京金山安全软件有限公司 Method and system for opening application program in mobile terminal

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105607860A (en) * 2016-03-07 2016-05-25 上海斐讯数据通信技术有限公司 Drag-photographing method and system
CN106354411A (en) * 2016-08-26 2017-01-25 维沃移动通信有限公司 Interface startup method and mobile terminal
CN106354411B (en) * 2016-08-26 2019-08-20 维沃移动通信有限公司 A kind of interface starting method and mobile terminal
CN106909288A (en) * 2017-03-29 2017-06-30 广州阿里巴巴文学信息技术有限公司 The method for refreshing of application program, device and electronic equipment
CN106909288B (en) * 2017-03-29 2020-05-22 广州阿里巴巴文学信息技术有限公司 Application program refreshing method and device and electronic equipment
CN107832002A (en) * 2017-11-22 2018-03-23 广州市动景计算机科技有限公司 Data processing method, device and terminal device
CN111782298A (en) * 2020-06-30 2020-10-16 Oppo(重庆)智能科技有限公司 Application program management method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
US20200371656A1 (en) Icon Control Method and Terminal
US10739947B2 (en) Swiping functions for messaging applications
US10275151B2 (en) Apparatus and method for cursor control and text selection and editing based on gesture-based touch inputs received in a virtual keyboard display area
CN103365529B (en) A kind of icon management method and mobile terminal
CN104765563A (en) Control method and device for terminal application program
CN105740078B (en) Memory management method, device and terminal
CN108064368A (en) The control method and device of flexible display device
CN103116453B (en) A kind of operation management method of Drawing Object and operation management device
CN103777842B (en) The icon moving method and touch type terminal of touch type terminal
CN104536643B (en) A kind of icon drag method and terminal
CN104991696A (en) Information processing method and electronic equipment
CN103235692A (en) Touch-screen device and method for touch-screen device to select target objects
CN103713828A (en) Method of deleting two desktop icons by collision
CN103473014A (en) Multitask switching method and terminal
CN104615337A (en) Method and device for managing icons on main interface of intelligent terminal
CN107728873A (en) The method and its device of contents selection
CN107577404B (en) Information processing method and device and electronic equipment
CN104978135A (en) Icon display method and device, and mobile terminal
CN107291564B (en) Information copying and pasting method and device and electronic equipment
CN105320412B (en) The processing method and mobile terminal of video file
KR101060175B1 (en) Method for controlling touch screen, recording medium for the same, and method for controlling cloud computing
CN104317492A (en) Wallpaper setting method
CN105159555A (en) User equipment control method and user equipment
CN105117151A (en) Display interface operation method and terminal
CN104123094A (en) Method and system for generating icon operating instructions according to touch width

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150708