public class MultiFingerTapGestureDetector extends MultiFingerGesture<MultiFingerTapGestureDetector.OnMultiFingerTapGestureListener>
| Modifier and Type | Class and Description |
|---|---|
static interface |
MultiFingerTapGestureDetector.OnMultiFingerTapGestureListener |
context, listener, windowManager| Constructor and Description |
|---|
MultiFingerTapGestureDetector(android.content.Context context,
AndroidGesturesManager gesturesManager) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
analyzeEvent(android.view.MotionEvent motionEvent) |
protected boolean |
canExecute(int invokedGestureType) |
float |
getMultiFingerTapMovementThreshold()
Get maximum movement allowed for any finger before rejecting this gesture.
|
long |
getMultiFingerTapTimeThreshold()
Get maximum time in millis that fingers can have a contact with the screen before rejecting this gesture.
|
protected void |
reset() |
void |
setMultiFingerTapMovementThreshold(float multiFingerTapMovementThreshold)
Set maximum movement allowed in pixels for any finger before rejecting this gesture.
|
void |
setMultiFingerTapMovementThresholdResource(int multiFingerTapMovementThresholdDimen)
Set maximum movement allowed in dp for any finger before rejecting this gesture.
|
void |
setMultiFingerTapTimeThreshold(long multiFingerTapTimeThreshold)
Set maximum time in millis that fingers can have a contact with the screen before rejecting this gesture.
|
analyzeMovement, getCurrentSpan, getCurrentSpanX, getCurrentSpanY, getFocalPoint, getPointersCount, getPreviousSpan, getPreviousSpanX, getPreviousSpanY, getRequiredPointersCount, getSpanThreshold, isSloppyGesture, setSpanThreshold, setSpanThresholdResourcegetCurrentEvent, getGestureDuration, getPreviousEvent, isEnabled, onTouchEvent, removeListener, setEnabled, setListenerpublic MultiFingerTapGestureDetector(android.content.Context context,
AndroidGesturesManager gesturesManager)
protected boolean analyzeEvent(android.view.MotionEvent motionEvent)
analyzeEvent in class MultiFingerGesture<MultiFingerTapGestureDetector.OnMultiFingerTapGestureListener>protected boolean canExecute(int invokedGestureType)
canExecute in class MultiFingerGesture<MultiFingerTapGestureDetector.OnMultiFingerTapGestureListener>protected void reset()
reset in class MultiFingerGesture<MultiFingerTapGestureDetector.OnMultiFingerTapGestureListener>public long getMultiFingerTapTimeThreshold()
public void setMultiFingerTapTimeThreshold(long multiFingerTapTimeThreshold)
multiFingerTapTimeThreshold - maximum touch time for tap gesture.public float getMultiFingerTapMovementThreshold()
public void setMultiFingerTapMovementThreshold(float multiFingerTapMovementThreshold)
We encourage to set those values from dimens to accommodate for various screen sizes.
multiFingerTapMovementThreshold - movement threshold.public void setMultiFingerTapMovementThresholdResource(int multiFingerTapMovementThresholdDimen)
multiFingerTapMovementThresholdDimen - movement threshold.