public class

GestureAnalyser

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

Class Overview

Internal API class to analyse the recorded gestures.

Summary

Nested Classes
class GestureAnalyser.GestureType  
Constants
boolean DEBUG
int DOUBLE_TAP_1
int PINCHING
int PINCH_2
int PINCH_3
int PINCH_4
int SWIPE_1_DOWN
int SWIPE_1_LEFT
int SWIPE_1_RIGHT
int SWIPE_1_UP
int SWIPE_2_DOWN
int SWIPE_2_LEFT
int SWIPE_2_RIGHT
int SWIPE_2_UP
int SWIPE_3_DOWN
int SWIPE_3_LEFT
int SWIPE_3_RIGHT
int SWIPE_3_UP
int SWIPE_4_DOWN
int SWIPE_4_LEFT
int SWIPE_4_RIGHT
int SWIPE_4_UP
int SWIPING_1_DOWN
int SWIPING_1_LEFT
int SWIPING_1_RIGHT
int SWIPING_1_UP
int SWIPING_2_DOWN
int SWIPING_2_LEFT
int SWIPING_2_RIGHT
int SWIPING_2_UP
int UNPINCHING
int UNPINCH_2
int UNPINCH_3
int UNPINCH_4
Public Constructors
GestureAnalyser()
GestureAnalyser(int swipeSlopeIntolerance, int doubleTapMaxDelayMillis, int doubleTapMaxDownMillis)
Public Methods
GestureAnalyser.GestureType getGesture(MotionEvent ev)
int getOngoingGesture(MotionEvent ev)
boolean isDoubleTap()
void trackGesture(MotionEvent ev)
void untrackGesture()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final boolean DEBUG

Constant Value: true

public static final int DOUBLE_TAP_1

Constant Value: 107 (0x0000006b)

public static final int PINCHING

Constant Value: 205 (0x000000cd)

public static final int PINCH_2

Constant Value: 25 (0x00000019)

public static final int PINCH_3

Constant Value: 35 (0x00000023)

public static final int PINCH_4

Constant Value: 45 (0x0000002d)

public static final int SWIPE_1_DOWN

Constant Value: 12 (0x0000000c)

public static final int SWIPE_1_LEFT

Constant Value: 13 (0x0000000d)

public static final int SWIPE_1_RIGHT

Constant Value: 14 (0x0000000e)

public static final int SWIPE_1_UP

Constant Value: 11 (0x0000000b)

public static final int SWIPE_2_DOWN

Constant Value: 22 (0x00000016)

public static final int SWIPE_2_LEFT

Constant Value: 23 (0x00000017)

public static final int SWIPE_2_RIGHT

Constant Value: 24 (0x00000018)

public static final int SWIPE_2_UP

Constant Value: 21 (0x00000015)

public static final int SWIPE_3_DOWN

Constant Value: 32 (0x00000020)

public static final int SWIPE_3_LEFT

Constant Value: 33 (0x00000021)

public static final int SWIPE_3_RIGHT

Constant Value: 34 (0x00000022)

public static final int SWIPE_3_UP

Constant Value: 31 (0x0000001f)

public static final int SWIPE_4_DOWN

Constant Value: 42 (0x0000002a)

public static final int SWIPE_4_LEFT

Constant Value: 43 (0x0000002b)

public static final int SWIPE_4_RIGHT

Constant Value: 44 (0x0000002c)

public static final int SWIPE_4_UP

Constant Value: 41 (0x00000029)

public static final int SWIPING_1_DOWN

Constant Value: 102 (0x00000066)

public static final int SWIPING_1_LEFT

Constant Value: 103 (0x00000067)

public static final int SWIPING_1_RIGHT

Constant Value: 104 (0x00000068)

public static final int SWIPING_1_UP

Constant Value: 101 (0x00000065)

public static final int SWIPING_2_DOWN

Constant Value: 202 (0x000000ca)

public static final int SWIPING_2_LEFT

Constant Value: 203 (0x000000cb)

public static final int SWIPING_2_RIGHT

Constant Value: 204 (0x000000cc)

public static final int SWIPING_2_UP

Constant Value: 201 (0x000000c9)

public static final int UNPINCHING

Constant Value: 206 (0x000000ce)

public static final int UNPINCH_2

Constant Value: 26 (0x0000001a)

public static final int UNPINCH_3

Constant Value: 36 (0x00000024)

public static final int UNPINCH_4

Constant Value: 46 (0x0000002e)

Public Constructors

public GestureAnalyser ()

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

Public Methods

public GestureAnalyser.GestureType getGesture (MotionEvent ev)

public int getOngoingGesture (MotionEvent ev)

public boolean isDoubleTap ()

public void trackGesture (MotionEvent ev)

public void untrackGesture ()