public final class Swiper
extends android.view.GestureDetector.SimpleOnGestureListener
Constructor and Description |
---|
Swiper(int variableToChange,
int limit,
Swipeable s) |
Modifier and Type | Method and Description |
---|---|
boolean |
onDown(android.view.MotionEvent e) |
boolean |
onFling(android.view.MotionEvent e1,
android.view.MotionEvent e2,
float velocityX,
float velocityY) |
public Swiper(int variableToChange, int limit, Swipeable s)
variableToChange
- the integer variable to change on detection of swipe actionlimit
- the maximum value of that integers
- the swipe-enabled Activity
that implements Swipeable
public boolean onFling(android.view.MotionEvent e1, android.view.MotionEvent e2, float velocityX, float velocityY)
onFling
in interface android.view.GestureDetector.OnGestureListener
onFling
in class android.view.GestureDetector.SimpleOnGestureListener
public boolean onDown(android.view.MotionEvent e)
onDown
in interface android.view.GestureDetector.OnGestureListener
onDown
in class android.view.GestureDetector.SimpleOnGestureListener