public final class ConsecutiveTapsGestureDetector extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ConsecutiveTapsGestureDetector.OnConsecutiveTapsListener |
Constructor and Description |
---|
ConsecutiveTapsGestureDetector(ConsecutiveTapsGestureDetector.OnConsecutiveTapsListener listener,
View view) |
Modifier and Type | Method and Description |
---|---|
void |
onTouchEvent(MotionEvent ev)
This method should be called from the relevant activity or view, typically in
onTouchEvent, onInterceptTouchEvent or dispatchTouchEvent.
|
void |
resetCounter()
Resets the consecutive-tap counter to zero.
|
public ConsecutiveTapsGestureDetector(ConsecutiveTapsGestureDetector.OnConsecutiveTapsListener listener, View view)
listener
- The listener that responds to the gesture.view
- The target view that associated with consecutive-tap gesture.public void onTouchEvent(MotionEvent ev)
ev
- The motion eventpublic void resetCounter()