A kind of method and system of quick start system function
[technical field]
The present invention relates to computer application technology, in particular to the method for a kind of quick start system function and it is
System.
[background technique]
For carrying the intelligent terminal of the operating systems such as IOS, android or YunOS, how to allow user quickly just
Promptly it is existing design person using system function and the problem of developer is thinking deeply, wherein system function includes but is not limited to:
Screenshotss, the selection of recent task choosing, hiden application, jump to an application, jump to next application, answer shortcut selection
With toggle, fast and safely function setting etc..The method of quick start system function is primarily present following several at present:
1) single one physical key is used.But since the single one physical number of keys of intelligent terminal is limited, it is generally used only for ten
Divide crucial scene, is less likely for quick start system function.
2) using combination physical button.For example, " power supply+volume " the bond number second is used to carry out screenshotss.However usual single object
Reason key all has existed the function of oneself, so combines physical button and is easy for maloperation;In order to improve system function
Starting success rate, user will certainly combination of pressing very firmly physical button and continue for some time, this will result in object
Manage the serious wear of key;In addition, this mode needs to wait the several seconds, real-time is also poor.
3) forms (such as status bar) of drop-down are manufactured to carry various prompt operations.But this operating process is more numerous
Trivial, the operation of progress needed for user at least needs to be implemented pull-down state column, searches in status bar, click icon operate etc.
Step it may also be desirable to the operation for carrying out page turning when action-item is more in status bar sometimes.
4) virtual key of mobile phone bottom row's navigation bar is utilized.However virtual key resource is than relatively limited, and virtual key
The gesture of upper operation is also relatively single, only single machine, double-click and three kinds of long-pressing, and these gestures also tend to by system
Other function or application occupy.
5) carry out quick start system function using multivalue slip gesture on the screen.But this mode is easy for and applies
Interior gesture generates conflict, such as: present IOS system realizes the left cunning of four fingers and right cunning to switch the function of application, this just with
The sliding of " the fruit person of bearing " game generates conflict, therefore is not just available the gesture in " the fruit person of bearing " application and answers to switch
With.
[summary of the invention]
In view of this, accidentally being grasped the present invention provides a kind of method and system of quick start system function in order to reduce
Make and hardware is worn.
Specific technical solution is as follows:
The present invention provides a kind of methods of quick start system function, preset edge kneading gesture and system function
Between corresponding relationship, this method comprises:
Identify touch event;
If identifying that touch event meets pre-set edge kneading gesture, the edge kneading gesture pair is triggered
The system function answered;Wherein, the edge kneading gesture includes: that the more fingers initiated from screen edge mediate slip gesture.
A preferred embodiment according to the present invention, the identification touch event are corresponding with the edge kneading gesture is triggered
The operation of system function is executed by global gesture control module;This method further include:
Touch event distribution module receives the touch event from operating system bottom module, and touch event is sent to institute
State global gesture control module.
A preferred embodiment according to the present invention, this method further include:
The touch event distribution module judges whether that the application for being prohibited showing to screen sends touch event,
If it is not, then touch event is sent to the application that screen is being shown;If it is, screen will not be sent to touch event
The application shown;
Wherein, the global gesture control module is identifying that touch event meets pre-set edge kneading gesture
When, the application for forbidding the touch event distribution module showing to screen sends touch event.
A preferred embodiment according to the present invention, this method further include:
The overall situation gesture control module is forbidden described in cancellation after the touch event;Alternatively,
The overall situation gesture control module, if touch gestures terminate, is forbidden after triggering system function described in cancellation.
A preferred embodiment according to the present invention, this method further include:
If the application that the touch event distribution module has been prohibited showing to screen sends touch event, to
The application that screen is being shown sends the message for cancelling identification touch event.
A preferred embodiment according to the present invention, the overall situation gesture control module obtain user by set interface to institute
State the setting of corresponding relationship.
A preferred embodiment according to the present invention, the more fingers initiated from screen edge mediate slip gesture, comprising:
That initiates respectively from at least two edges of screen close to each other singly refers to slip gesture;Or
The more finger slip gestures close to each other initiated respectively from at least two edges of screen.
A preferred embodiment according to the present invention, the identification touch event include:
S1, the type of the touch event is identified, if it is event is pressed, thens follow the steps S2;If it is cunning
Dynamic event, thens follow the steps S3;If it is event of lifting or cancel event, thens follow the steps S4;
S2, judge whether to press the total quantity of finger in the touch event for more than two and finger depressed position symbols
The initial position of preset edge kneading gesture is closed, if it is, setting distinguishing mark position is identification state;
S3, judge whether the distinguishing mark position is identification state, if so, judge finger glide direction whether with finger
The edge kneading gesture that depressed position is met is consistent, if so, identifying that the touch event meets preset edge and mediates
Gesture;
S4, determine that touch gestures terminate, setting distinguishing mark position is end state.
A preferred embodiment according to the present invention, the step S2 are specifically included:
S21, judge whether finger is pressed from screen edge in the touch event, if so, executing step S22;Otherwise,
Confirm that the touch event is not belonging to edge kneading gesture, setting distinguishing mark position is end state;
S22, identification press the total quantity of finger, if it is two or more, execute step S23;If it is one, setting is known
Other flag bit is beginning state;
S23, judge whether the depressed position of finger meets the initial position of preset edge kneading gesture, if it is,
Setting distinguishing mark position is identification state;Otherwise wait for next touch event.
A preferred embodiment according to the present invention, triggering the corresponding system function of the edge kneading gesture includes:
Judge whether the corresponding system function of the triggered edge kneading gesture, if it is not, then directly described in triggering
System function;If so, further determine the need for continuing to trigger according to the feature of the system function, if it is, after
The continuous triggering system function, otherwise no longer triggers the system function.
The present invention provides a kind of system of quick start system function, which includes global gesture control module;Institute
Stating global gesture control module includes touch event processing submodule;
The touch event handles submodule, and touch event, sets in advance if identifying that touch event meets for identification
The edge kneading gesture set then triggers the corresponding system function of the edge kneading gesture;Wherein, the edge kneading gesture packet
Include: the more fingers initiated from screen edge mediate slip gesture.
A preferred embodiment according to the present invention, the system further include:
Touch event distribution module sends out touch event for receiving the touch event from operating system bottom module
Give the touch event processing submodule.
A preferred embodiment according to the present invention, the touch event distribution module are also used to judge whether to be prohibited
The application shown to screen sends touch event, if it is not, then touch event is sent to the application that screen is being shown;
If it is, touch event will not be sent to the application that screen is being shown;
The touch event handles submodule, is also used to identifying that touch event meets pre-set edge and mediate hand
When gesture, the application for forbidding the touch event distribution module showing to screen sends touch event.
A preferred embodiment according to the present invention, the touch event handle submodule, are also used in the touch event
After, forbid described in cancellation, or after triggering system function, if touch gestures terminate, forbid described in cancellation.
A preferred embodiment according to the present invention, the touch event distribution module, if being also used to be prohibited to screen
The application shown sends touch event, then the application shown to screen sends the message for cancelling identification touch event.
A preferred embodiment according to the present invention, the overall situation gesture control module further include: touch event manages submodule
The corresponding relationship for obtaining user by setting of the set interface to the corresponding relationship, and is supplied to the touching by block
Touch event handling submodule.
A preferred embodiment according to the present invention, the more fingers initiated from screen edge mediate slip gesture, comprising:
That initiates respectively from at least two edges of screen close to each other singly refers to slip gesture;Or
The more finger slip gestures close to each other initiated respectively from at least two edges of screen.
A preferred embodiment according to the present invention, the touch event processing submodule specifically execute following operation:
S1, the type of the touch event is identified, if it is event of pressing, then executes operation S2;If it is cunning
Dynamic event then executes operation S3;If it is event of lifting or cancel event, then executes operation S4;
S2, judge whether to press the total quantity of finger in the touch event for more than two and finger depressed position symbols
The initial position of preset edge kneading gesture is closed, if it is, setting distinguishing mark position is identification state;
S3, judge whether the distinguishing mark position is identification state, if so, judge finger glide direction whether with finger
The edge kneading gesture that depressed position is met is consistent, if so, identifying that the touch event meets preset edge and mediates
Gesture;
S4, determine that touch gestures terminate, setting distinguishing mark position is end state.
A preferred embodiment according to the present invention, the touch event processing submodule are specifically held when executing operation S2
The following operation of row:
S21, judge whether finger is pressed from screen edge in the touch event, if so, executing step S22;Otherwise,
Confirm that the touch event is not belonging to edge kneading gesture, setting distinguishing mark position is end state;
S22, identification press the total quantity of finger, if it is two or more, execute step S23;If it is one, setting is known
Other flag bit is beginning state;
S23, judge whether the depressed position of finger meets the initial position of preset edge kneading gesture, if it is,
Setting distinguishing mark position is identification state;Otherwise wait for next touch event.
A preferred embodiment according to the present invention, the touch event processing subelement are triggering the edge kneading gesture
It is specific to execute when corresponding system function:
Judge whether the corresponding system function of the triggered edge kneading gesture, if it is not, then directly described in triggering
System function;If so, further determine the need for continuing to trigger according to the feature of the system function, if it is, after
The continuous triggering system function, otherwise no longer triggers the system function.
As can be seen from the above technical solutions, the present invention using edge kneading gesture come quick start system function, due to
Not yet exist in current existing application and slide kneading gesture by more fingers that edge is initiated, therefore will not be with the hand in existing application
Gesture conflict and cause maloperation;In addition, due to and be not used intelligent terminal physical button, reduce hardware abrasion.
[Detailed description of the invention]
Fig. 1 is several schematic diagrames for more referring to kneading slip gesture provided in an embodiment of the present invention;
Fig. 2 is system construction drawing provided in an embodiment of the present invention;
Fig. 3 is the method flow diagram of quick start system function provided in an embodiment of the present invention;
Fig. 4 is that touch event provided in an embodiment of the present invention handles submodule to the process flow diagram of touch event.
[specific embodiment]
To make the objectives, technical solutions, and advantages of the present invention clearer, right in the following with reference to the drawings and specific embodiments
The present invention is described in detail.
In view of operation convenience and reduce abrasion to physical button, the present invention using gesture on the screen come
Activation system function, but gesture used in the gesture and application for just needing to be considered as in order to avoid maloperation distinguishes, because
Using edge kneading gesture come quick start system function, so-called edge kneading gesture refers to sending out from screen edge this present invention
The more fingers risen mediate slip gesture, wherein " referring to " refers to two or more fingers more, " kneading " refers to sliding position
Be equipped with polymerization be intended to it is close, i.e., sliding position with sliding increasingly with it is close.The more fingers initiated from screen edge, which are mediated, to be slided
Start gesture, can include but is not limited to: initiated respectively from at least two edges of screen it is close to each other singly refer to slip gesture,
More finger slip gestures close to each other initiated respectively from at least two edges of screen etc., the more fingers initiated from screen edge are pinched
The example for closing slip gesture can be such as Fig. 1 (a) to Fig. 1 (h), wherein rectangle frame shown in figure indicates the screen of intelligent terminal
Edge, each arrow indicate that a finger, arrow indicate the track and direction of finger sliding.
Different edge kneading gestures can be preset and correspond to different system functions, several edges are named and mediate hand
The example of gesture, but it should be recognized that the these types of gesture and corresponding relationship that the present invention is not limited to be lifted.
For example, the inside gesture for mediating sliding initiated respectively from left and right two edges of screen using two fingers come
Start screenshotss function, as shown in figure 1 shown in (a), box indicates that the screen of intelligent terminal, arrow indicate the track and side of gesture in figure
To.It can also be started using the inside gesture for mediating sliding that two fingers are initiated from two upper and lower edges of screen respectively
Screenshotss function, as shown in figure 1 (b).It is using two fingers left from screen respectively, under two edges initiate inside mediate sliding
Gesture jumps to next application, as shown in figure 1 shown in (c).It is right from screen respectively using two fingers, under two edges initiate
The inside gesture for mediating sliding jump to a upper application, (d) is shown as shown in figure 1.Left from screen respectively using two fingers,
On two edges inside gestures for mediating sliding for initiating toggle between applications, as shown in figure 1 shown in (e).Using
Two fingers are right from screen respectively, on two edges inside gestures for mediating sliding for initiating carry out switchback between applications
It changes, as shown in figure 1 shown in (f).The inside hand for mediating sliding initiated respectively from two upper and lower edges of screen using four fingers
Gesture opens system function list, wherein two fingers are initiated from screen top edge, in addition two fingers are sent out from screen lower edge
It rises, as shown in figure 1 shown in (g).The inside hand for mediating sliding initiated respectively from two left and right edges of screen using four fingers
Gesture (includes whether accessible wifi, 3G, GPS, if can send short messages, make a phone call, if can to open security setting list
With accessing address list etc.), wherein two fingers are initiated from screen left edge, in addition two fingers are initiated from screen lower edge, such as
In Fig. 1 shown in (h).
It is described below to using edge kneading gesture come the specific implementation of quick start system function, first to this hair
The bright system framework being based on is described, as shown in Fig. 2, the system includes touch event distribution module and global gesture control
Module can further include touch event setup module.
Wherein the major function of touch event distribution module is to be responsible for receiving the touch thing from operating system bottom module
Part, by the application that the touch event is distributed to global gesture control module and current screen is just being shown.Operating system bottom module
It is the intelligent operating system of intelligent terminal itself, has the basic function of intelligent operating system, be related in embodiments of the present invention
To be touch event reporting functions, i.e., touch event is reported to touch event distribution module.So-called current screen is just shown
Application refer to application that user sees on intelligent terminal screen, being currently running display.
Global gesture control module plays a part of global control to gesture, mainly includes that two parts act on:
One is touch event is monitored, after analyzing touch event, however, it is determined that the gesture of touch event meets edge
Kneading gesture, then system function corresponding to the gesture of quick start touch event, and Do not touch case distribution module are to working as
The application that forth screen is just being shown sends touch event.The function of this part is completed by touch event processing submodule.
The second is be managed to the corresponding relationship of edge kneading gesture and system function, can read system intialization or from
The corresponding relationship of gesture and system function is downloaded in designated position, and is shown to user's study, can also setting up according to user
At the setting of the corresponding relationship of edge kneading gesture and system function, wherein user can start set interface by system function
It is configured.The function of this part is completed by touch event management submodule, and setting information is supplied to touch event processing
Submodule.
It is described below with reference to method flow of the Fig. 3 to the quick start system function of being realized based on above system, such as
Shown in Fig. 3, this method mainly includes following below scheme:
In step 301, when the user touches the screen, touch event can be reported to touch thing by operating system bottom module
Part distribution module.
It can include but is not limited in this touch event: pressing event, slip event, lift event and cancel event.It is right
Fingers number and location information can be identified in each event, and the acquisition and identification for touch event are existing
Technology, this will not be detailed here.
In step 302, touch event is sent to the touch in global gesture control module by touch event distribution module
Event handling submodule.At the same time, touch event distribution module determines whether that be prohibited showing to screen answers
With touch event is sent, if it is not, then touch event is also sent to the application that screen is being shown;If it is, will not incite somebody to action
Touch event is sent to the application that screen is being shown.
Wherein, touch event distribution module be by global gesture control module touch event processing submodule forbid to
The application that screen is being shown sends touch event, i.e. touch event processing submodule once identifies that touch event meets fastly
The edge kneading gesture of fast activation system function, then can Do not touch case distribution module shown to screen application send
Touch event, and after touch event or after triggering system function, touch event processing submodule can cancel this and forbid, i.e.,
The application for allowing touch event distribution module showing to screen sends touch event, subsequent to be specifically related to.It is preferred that
It ground can be to screen just if the application that touch event distribution module is prohibited showing to screen sends touch event
The message for cancelling identification is sent in the application of display.
For screen showing application for, if receiving touch event, to touch event carry out identification and
Processing, i.e., start the function of the gesture in this application according to the corresponding gesture of the touch event.What if screen was being shown
Using the message for cancelling identification is received, then cancel the identification and processing to touch event.
In step 303, touch event processing submodule identifies the touch event received, if identifying touch
Gesture meets preset edge kneading gesture, then triggers the corresponding system function of the touch gestures.Identifying touch event symbol
When closing preset edge kneading gesture, the application that Do not touch case distribution module is being shown to screen sends touch event.
If identifying that touch gestures do not meet edge kneading gesture, cancels touch event distribution module and current screen is being shown
Application send touch event and forbid;Or after the corresponding system function of triggering touch gestures, if touch gestures knot
Beam then cancels touch event distribution module and sends forbidding for touch event to the application that current screen is being shown.
Wherein, either trigger application processing touch event that system function or screen are being shown all can to user into
The feedback of row result allows user that can perceive processing result.
By the above process it is found that the application that specifically activation system function still allows screen showing handles touch event
It is to be controlled by the touch event processing submodule in touch event control module, if touch event processing submodule identifies
Touch event belongs to edge kneading gesture, then activation system function, and the application processing touch event for forbidding screen showing;
If touch event processing submodule identifies that touch event is not belonging to edge kneading gesture, what cancellation was showing screen
Forbid using processing touch event, the application that such screen is being shown touch event can be carried out normal processing and
Reaction.
The process flow of touch event is described in detail in touch event processing submodule below with reference to Fig. 4, such as Fig. 4
Shown in.First in step 401, touch event processing submodule can identify the type of the touch event received,
If it is event of pressing (touchstart), 402 are thened follow the steps;If it is slip event (touchmove), then follow the steps
405;If it is event of lifting (touchend) or cancel event (touchcancel), thens follow the steps 407.
In step 402, touch event processing submodule judges whether the touch event is pressed from screen edge, is touching
The location information that can be touched comprising user in event, according to the location information it may determine that whether being pressed from screen edge,
Here it can be set and belong to screen edge on screen in a certain range, if the position of user's initial touch is within this range,
Think to press from screen edge.
If it is judged that touch event is not pressed from screen edge, then confirm that the touch event is not belonging to edge and mediates hand
Gesture executes step 407, and setting distinguishing mark position is end state, that is, terminates the identifying processing to the touch event, can be into one
Step cancels touch event distribution module and sends forbidding for touch event to the application that screen is being shown.If it is judged that touching thing
Part is pressed from screen edge, continues to execute step 403.
In step 403, touch event processing submodule further identifies the total quantity that finger is pressed in touch event, such as
Fruit is a finger, thens follow the steps 408, setting distinguishing mark position is beginning state.If it is more than two fingers, then after
It is continuous to execute step 404.
It requires to be that the more fingers initiated from edge slide kneading gesture due to edge kneading gesture, so if pressing finger
Total quantity is a finger, then starts to identify, i.e., setting flag bit is beginning state, and the trigger event of other fingers is waited
Face.If the total quantity for pressing finger reaches more than two, it is preset can to differentiate that the position of gesture initiation and quantity meet
Edge kneading gesture,
In step 404, touch event processing submodule judges whether the depressed position of finger meets preset edge and pinch
The depressed position of gesture is closed, if so, thening follow the steps 409, setting distinguishing mark position is identification state, can further be forbidden
Touch event distribution module sends touch event to the application that screen is being shown.Otherwise, next touch event is waited.
Finger presses the edge kneading gesture of not necessarily activation system function, the depressed position of multiple fingers from edge
Combination must be consistent with the preset initial position of edge kneading gesture, mediates if it is inconsistent, not meeting preset edge
Gesture.Wherein, the initial position of preset edge kneading gesture can be the setting position at setting screen edge, setting screen side
The setting position range or setting screen edge of edge.
In step 405, touch event processing submodule judges whether distinguishing mark position is identification state, if so, holding
Row step 406 otherwise waits for next touch event.
If distinguishing mark position is identification state, illustrate that the launch position of user gesture meets preset edge and mediates hand
Gesture can carry out the judgement in next step about sliding.
In a step 406, whether identification touch event belongs to edge kneading gesture, i.e., finger glide direction whether with finger
The edge kneading gesture that depressed position is met is consistent, if so, executing step 410, triggers corresponding system function;Otherwise etc.
To next touch event.
If finger down position meets some preset or certain several edge kneading gesture, need further to judge to slide
Whether dynamic direction still conforms to one in some or certain several edge kneading gestures, and touch thing can just be identified by only meeting
The gesture of part meets preset edge kneading gesture, that is to say, that needs to carry out the combination of finger down position and glide direction
Judgement.
Wherein when triggering corresponding system function, if not yet triggering the system function, the system function is directly triggered
Energy;If having triggered the system function, need to determine the need for continuing to trigger according to the feature of the system function, such as
Fruit is then to continue to trigger the system function, is otherwise no longer triggered.Because some system functions only need to trigger once, such as cut
Shield function, and some system functions need to continue triggering, such as display shortcut selects, in the recent period due to needing dynamic effect
Task choosing, hiden application selective listing function.
In step 407, since gesture is over, setting distinguishing mark position is end state, cancels and touches thing
Part distribution module sends forbidding for touch event to the application that screen is being shown.
System and method provided by the invention have following advantages it can be seen from above description:
1) present invention using edge kneading gesture come quick start system function, due to not yet being deposited in existing application at present
Kneading gesture is slided in the more fingers initiated by edge, therefore will not be clashed with the gesture in existing application and cause accidentally to grasp
Make.
2) due to the present invention using the gesture on screen come quick start system function, and the physics of unused intelligent terminal
Key, therefore reduce hardware abrasion.
3) corresponding relationship of edge kneading gesture and system function, a gesture corresponding one have been pre-established in the present invention
A system function, the mode of the long-pressing physical button that compares combination, it is clear that real-time is higher, can be realized finding i.e. institute substantially
?.
4) in addition, gesture operation for a user once-through operation can be completed, the manufacture drop-down forms that compare carry
The mode of various prompt operations, it is clear that more conveniently and quickly.
In several embodiments provided by the present invention, it should be understood that disclosed system and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
Only a kind of logical function partition, there may be another division manner in actual implementation.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer
It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the present invention
The part steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-
Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. it is various
It can store the medium of program code.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.