Java android.view GestureDetector fields, constructors, methods, implement or subclass

Example usage for Java android.view GestureDetector fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.view GestureDetector.

The text is from its open source code.

Subclass

android.view.GestureDetector has subclasses.
Click this link to see all its subclasses.

Constructor

GestureDetector(OnGestureListener listener, Handler handler)
Creates a GestureDetector with the supplied listener.
GestureDetector(Context context, OnGestureListener listener)
Creates a GestureDetector with the supplied listener.
GestureDetector(OnGestureListener listener)
Creates a GestureDetector with the supplied listener.

Method

booleanonTouchEvent(MotionEvent ev)
Analyzes the given motion event and if applicable triggers the appropriate callbacks on the OnGestureListener supplied.
voidsetIsLongpressEnabled(boolean isLongpressEnabled)
Set whether longpress is enabled, if this is enabled when a user presses and holds down you get a longpress event and nothing further.
voidsetOnDoubleTapListener(OnDoubleTapListener onDoubleTapListener)
Sets the listener which will be called for double-tap and related gestures.