Added in API level 3

OnDoubleTapListener

interface OnDoubleTapListener
android.view.GestureDetector.OnDoubleTapListener

The listener that is used to notify when a double-tap or a confirmed single-tap occur.

Summary

Public methods
abstract Boolean

Notified when a double-tap occurs.

abstract Boolean

Notified when an event within a double-tap gesture occurs, including the down, move, and up events.

abstract Boolean

Notified when a single-tap occurs.

Public methods

onDoubleTap

Added in API level 3
abstract fun onDoubleTap(e: MotionEvent): Boolean

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.
Return
Boolean true if the event is consumed, else false

onDoubleTapEvent

Added in API level 3
abstract fun onDoubleTapEvent(e: MotionEvent): Boolean

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.
Return
Boolean true if the event is consumed, else false

onSingleTapConfirmed

Added in API level 3
abstract fun onSingleTapConfirmed(e: MotionEvent): Boolean

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.
Return
Boolean true if the event is consumed, else false