public class MultiFingerTapGestureDetector
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
MultiFingerTapGestureDetector.MultiFingerTapMessageHandler
Message handler to distinguish between single and double taps
|
static interface |
MultiFingerTapGestureDetector.OnMultiFingerTapGestureListener
Interface for listening to finger tap events
|
static class |
MultiFingerTapGestureDetector.SimpleOnMultiFingerTapGestureListener
Minimal implementation of OnMultiFingerTapGestureListener
|
Constructor and Description |
---|
MultiFingerTapGestureDetector(MultiFingerTapGestureDetector.OnMultiFingerTapGestureListener listener)
Initializes an instance of the MultiFingerTapGestureDetector class
|
Modifier and Type | Method and Description |
---|---|
float |
getDownPositionX() |
float |
getDownPositionY() |
long |
getPointerCount()
Amount of pointers involved in the current event
|
boolean |
onTouchEvent(android.view.MotionEvent event)
Analyzes the given motion event
|
void |
reset()
Resets the multi finger tap detector to avoid unwanted
detection of double taps
|
public MultiFingerTapGestureDetector(MultiFingerTapGestureDetector.OnMultiFingerTapGestureListener listener)
listener
- listener for listening to finger tap eventspublic boolean onTouchEvent(android.view.MotionEvent event)
event
- the current event to analyzepublic float getDownPositionX()
public float getDownPositionY()
public long getPointerCount()
public void reset()