Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Fig. 1 shows the realization flow figure of the interface response method that the embodiment of the present invention provides, and details are as follows:
In step S101, when receiving N number of click event, determine the click event type that click on area corresponding to described N number of click event is supported, wherein, N be greater than 1 integer.
It should be noted that, the executive agent of the embodiment of the present invention can be mobile terminal, can be also other computer equipment, not limit at this.Mobile terminal can comprise mobile phone (or being called " honeycomb " phone) and have the computing machine of mobile terminal, such as, can be portable, pocket, hand-held, built-in computer or vehicle-mounted mobile device, they and wireless access network exchange language and/or data.Such as, Personal Communications Services (Personal Communication Service, PCS) phone, wireless phone, Session initiation Protocol (Session Initiation Protocol, SIP) phone, wireless local loop (Wireless Local Loop, WLL) stand, personal digital assistant (Personal Digital Assistant, the equipment such as PDA), in this no limit.
In embodiments of the present invention, once click or a vice-minister by generation click event.Once double-click and then generate two click event, by that analogy.Here, click event can be generated by touch operation, also can be generated by button operation, not limit at this.The click event type that each click on area is supported may be different.Such as, a certain click on area may only be supported to click, and also may both support to click and also support to double-click.Here, suppose that the click event type of the first click on area support is for clicking, the click event type of the second click on area support is for clicking and double-clicking.
In step s 102, retain M click event in described N number of click event according to described click event type, and respond a described M click event, wherein, M is the integer being more than or equal to 1 and being less than or equal to N.
If be the first click on area according to the click on area that N number of click event is determined, and the click event type of the first click on area support is for clicking, then retain a click event in N number of click event, and responds this click event, namely respond click event.
If be the second click on area according to the click on area that N number of click event is determined, and the click event type of the second click on area support is for clicking and double-clicking, then retain two click event in N number of click event, and respond this two click event, namely respond double-click event.
Alternatively, when described N number of click event corresponds to same click on area, described M the click event retained in described N number of click event according to described click event type is specially:
The preceding M of a time of origin click event in described N number of click event is retained according to described click event type.
If be the first click on area according to the click on area that N number of click event is determined, then retain first click event in N number of click event, and respond this click event, namely respond click event.
If be the second click on area according to the click on area that N number of click event is determined, then retain the first two click event in N number of click event, and respond this two click event, namely respond double-click event.
Alternatively, when described N number of click event corresponds at least two click on area, described M the click event retained in described N number of click event according to described click event type is specially:
The posterior M of a time of origin click event in described N number of click event is retained according to described click event type.
If the click on area determined according to N number of click event had both comprised the first click on area and had also comprised the second click on area, and click on area corresponding to last click event in N number of click event is the first click on area, then retain last click event in N number of click event, and respond this click event, namely respond click event.
If the click on area determined according to N number of click event had both comprised the first click on area and had also comprised the second click on area, and the click on area that latter two click event is corresponding in N number of click event is the second click on area, then retain latter two click event in N number of click event, and respond this two click event, namely respond double-click event.
If the click on area determined according to N number of click event had both comprised the first click on area and had also comprised the second click on area, and click on area corresponding to last click event in N number of click event is the second click on area, click on area corresponding to the penultimate click event in N number of click event is the first click on area, then retain last click event in N number of click event, and respond this click event, namely respond click event.
Fig. 2 shows the specific implementation process flow diagram of the interface response method step S101 that the embodiment of the present invention provides, with reference to Fig. 2:
Described when receiving N number of click event, determine that the click event type that click on area corresponding to described N number of click event is supported comprises:
In step s 201, when receiving N number of click event, obtain the coordinate information of described N number of click event;
In step S202, determine according to the coordinate information of described N number of click event the click on area that described N number of click event is corresponding;
In step S203, determine the application icon that described click on area is corresponding or the click event type that interface is supported.
In embodiments of the present invention, when click event is generated by touch operation, the click on area corresponding according to the coordinate information determination clicking operation of click event.Touch operation is each time all corresponding to a coordinate information, and namely each click event is all corresponding to a coordinate information.
Further, described retain M click event in described N number of click event according to described click event type after, described method also comprises:
Abandon N-M click event in described N number of click event except a described M click event.
In embodiments of the present invention, retain M click event in N number of click event, abandon other N-M click event, avoid the interface repeatedly redirect because click event continuous response causes thus.
Should be understood that in embodiments of the present invention, the size of the sequence number of above-mentioned each process does not also mean that the priority of execution sequence, and the execution sequence of each process should be determined with its function and internal logic, and should not form any restriction to the implementation process of the embodiment of the present invention.
The embodiment of the present invention is by when receiving N number of click event, determine the click event type that click on area is supported, M click event in N number of click event is retained again according to click event type, and M the click event that response retains, thus the number of the click event received exceed interface support number of clicks or system card immediately, avoid interface repeatedly redirect, thus realize the interface response of user's expection.
Fig. 3 shows the structured flowchart of the interface responding device that the embodiment of the present invention is passed through, and this device may be used for the interface response method shown in service chart 1 or Fig. 2.For convenience of explanation, illustrate only the part relevant to the embodiment of the present invention.
With reference to Fig. 3, described device comprises:
Click event type determining units 31, for when receiving N number of click event, determines the click event type that click on area corresponding to described N number of click event is supported, wherein, N be greater than 1 integer;
Interface response unit 32, for retaining M click event in described N number of click event according to described click event type, and respond a described M click event, wherein, M is the integer being more than or equal to 1 and being less than or equal to N.
Preferably, described click event type determining units 31 comprises:
Coordinate information obtains subelement 311, for when receiving N number of click event, obtains the coordinate information of described N number of click event;
Click on area determination subelement 312, for determining according to the coordinate information of described N number of click event the click on area that described N number of click event is corresponding;
Click event type determination unit 313, for determining the application icon that described click on area is corresponding or the click event type that interface is supported.
Alternatively, described interface response unit 32 specifically for:
When described N number of click event corresponds to same click on area, retain the preceding M of a time of origin click event in described N number of click event according to described click event type, and respond a described M click event.
Alternatively, described interface response unit 32 specifically for:
When described N number of click event corresponds at least two click on area, retain the posterior M of a time of origin click event in described N number of click event according to described click event type, and respond a described M click event.
Further, described interface response unit 32 also for:
Abandon N-M click event in described N number of click event except a described M click event.
The embodiment of the present invention is by when receiving N number of click event, determine the click event type that click on area is supported, M click event in N number of click event is retained again according to click event type, and M the click event that response retains, thus the number of the click event received exceed interface support number of clicks or system card immediately, avoid interface repeatedly redirect, thus realize the interface response of user's expection.
Those of ordinary skill in the art can recognize, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with the combination of electronic hardware or computer software and electronic hardware.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the device of foregoing description and the specific works process of unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that disclosed apparatus and method can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.
If described function using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection domain of claim.