docs/javadoc/reference/com/facebook/drawee/gestures/GestureDetector.html
|
|
Summary: Nested Classes | Ctors | Methods | Inherited Methods | [Expand All]
public class
extends Object
| java.lang.Object | | ↳ | com.facebook.drawee.gestures.GestureDetector |
Gesture detector based on touch events.
This class allows us to get click events when we need them, but not to consume them when we are temporarily not interested in them. Doing View.setClickable(true) will cause for the view always to consume click event, even if View.performClick is overridden to return false. That means even though our view didn't handle the click event, the event will not get propagated upwards. Result of View.onTouchEvent is handled correctly though so we use that instead.
This class currently only detects clicks.
| Nested Classes |
|---|
| interface |
| Public Constructors |
|---|
| Public Methods |
|---|
| void |
| Initializes this component to its initial state. |
| boolean |
| Returns whether the gesture capturing is in progress. |
| static GestureDetector |
| Creates a new instance of this gesture detector. |
| boolean |
| Handles the touch event |
| void |
| Resets component. |
| void |
| Sets the click listener. |
| [Expand] Inherited Methods | | --- | | From class java.lang.Object
| Object | clone() | | boolean | equals(Object arg0) | | void | finalize() | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | toString() | | final void | wait(long arg0, int arg1) | | final void | wait(long arg0) | | final void | wait() |
|
Initializes this component to its initial state.
Returns whether the gesture capturing is in progress.
Creates a new instance of this gesture detector.
Handles the touch event
Resets component.
This will drop any gesture recognition that might currently be in progress.
Sets the click listener.
+Generated by Doclava. +