public class

SimpleFingerGestures

extends Object
java.lang.Object
   ↳ in.championswimmer.sfg.lib.SimpleFingerGestures

Summary

Nested Classes
interface SimpleFingerGestures.OnFingerGestureListener Interface definition for the callback to be invoked when 2-finger gestures are performed  
Constants
long GESTURE_SPEED_FAST
long GESTURE_SPEED_MEDIUM
long GESTURE_SPEED_SLOW
Fields
protected boolean[] tracking
Public Constructors
SimpleFingerGestures()
Constructor that creates an internal GestureAnalyser object as well
SimpleFingerGestures(int swipeSlopeIntolerance, int doubleTapMaxDelayMillis, int doubleTapMaxDownMillis)
Public Methods
boolean getConsumeTouchEvents()
boolean onTouch(View view, MotionEvent ev)
void setConsumeTouchEvents(boolean consumeTouchEvents)
void setDebug(boolean debug)
void setOnFingerGestureListener(SimpleFingerGestures.OnFingerGestureListener omfgl)
Register a callback to be invoked when multi-finger gestures take place



For the callbacks implemented via this, check the interface SimpleFingerGestures.OnFingerGestureListener

[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final long GESTURE_SPEED_FAST

Constant Value: 500 (0x00000000000001f4)

public static final long GESTURE_SPEED_MEDIUM

Constant Value: 1000 (0x00000000000003e8)

public static final long GESTURE_SPEED_SLOW

Constant Value: 1500 (0x00000000000005dc)

Fields

protected boolean[] tracking

Public Constructors

public SimpleFingerGestures ()

Constructor that creates an internal GestureAnalyser object as well

public SimpleFingerGestures (int swipeSlopeIntolerance, int doubleTapMaxDelayMillis, int doubleTapMaxDownMillis)

Public Methods

public boolean getConsumeTouchEvents ()

public boolean onTouch (View view, MotionEvent ev)

public void setConsumeTouchEvents (boolean consumeTouchEvents)

public void setDebug (boolean debug)

public void setOnFingerGestureListener (SimpleFingerGestures.OnFingerGestureListener omfgl)

Register a callback to be invoked when multi-finger gestures take place



For the callbacks implemented via this, check the interface SimpleFingerGestures.OnFingerGestureListener

Parameters
omfgl The callback that will run