public class

DoubleTap

extends Gesture
java.lang.Object
   ↳ com.neomades.gesture.Gesture
     ↳ com.neomades.gesture.DoubleTap

Class Overview

Represents a double tap gesture. A double tap occurs when two consecutive presses are made on the screen. This event can be obtained by using onDoubleTapGesture(DoubleTap, com.neomades.ui.View) .

To track for double tap event on a View use a GestureDetector.

Summary

Public Constructors
DoubleTap()
Public Methods
int getX()
Returns the current x position of the pointer in pixel.
int getY()
Returns the current y position of the pointer in pixel.
[Expand]
Inherited Methods
From class com.neomades.gesture.Gesture
From class java.lang.Object

Public Constructors

public DoubleTap ()

Public Methods

public int getX ()

Returns the current x position of the pointer in pixel. It is the position relatively to the top left corner of the View where the GestureDetector is attached.

Returns
  • the current x

public int getY ()

Returns the current y position of the pointer in pixel. It is the position relatively to the top left corner of the View where the GestureDetector is attached.

Returns
  • the current y