GestureDetector.OnDoubleTapListener
public
static
interface
GestureDetector.OnDoubleTapListener
android.view.GestureDetector.OnDoubleTapListener
|
Known indirect subclasses
|
The listener that is used to notify when a double-tap or a confirmed
single-tap occur.
Summary
Public methods
onDoubleTap
public abstract boolean onDoubleTap (MotionEvent e)
Notified when a double-tap occurs. Triggered on the down event of second tap.
Parameters |
e |
MotionEvent : The down motion event of the first tap of the double-tap.
This value cannot be null . |
Returns |
boolean |
true if the event is consumed, else false |
onDoubleTapEvent
public abstract boolean onDoubleTapEvent (MotionEvent e)
Notified when an event within a double-tap gesture occurs, including
the down, move, and up events.
Parameters |
e |
MotionEvent : The motion event that occurred during the double-tap gesture.
This value cannot be null . |
Returns |
boolean |
true if the event is consumed, else false |
onSingleTapConfirmed
public abstract boolean onSingleTapConfirmed (MotionEvent e)
Notified when a single-tap occurs.
Unlike OnGestureListener.onSingleTapUp(MotionEvent)
, this
will only be called after the detector is confident that the user's
first tap is not followed by a second tap leading to a double-tap
gesture.
Parameters |
e |
MotionEvent : The down motion event of the single-tap.
This value cannot be null . |
Returns |
boolean |
true if the event is consumed, else false |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[]]