public static class MoveGestureDetector.SimpleOnMoveGestureListener extends java.lang.Object implements MoveGestureDetector.OnMoveGestureListener
| Constructor and Description |
|---|
SimpleOnMoveGestureListener() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
onMove(MoveGestureDetector detector,
float distanceX,
float distanceY)
Called for every move change during the gesture.
|
boolean |
onMoveBegin(MoveGestureDetector detector)
Indicates that the move gesture started.
|
void |
onMoveEnd(MoveGestureDetector detector,
float velocityX,
float velocityY)
Indicates that the move gesture ended.
|
public boolean onMoveBegin(MoveGestureDetector detector)
MoveGestureDetector.OnMoveGestureListeneronMoveBegin in interface MoveGestureDetector.OnMoveGestureListenerdetector - this detectorMoveGestureDetector.OnMoveGestureListener.onMove(MoveGestureDetector, float, float) callbacks,
false if you want to ignore this gesture.public boolean onMove(MoveGestureDetector detector, float distanceX, float distanceY)
MoveGestureDetector.OnMoveGestureListeneronMove in interface MoveGestureDetector.OnMoveGestureListenerdetector - this detectordistanceX - X distance of the focal point in pixel since last calldistanceY - Y distance of the focal point in pixel since last callpublic void onMoveEnd(MoveGestureDetector detector, float velocityX, float velocityY)
MoveGestureDetector.OnMoveGestureListeneronMoveEnd in interface MoveGestureDetector.OnMoveGestureListenerdetector - this detectorvelocityX - velocityX of the gesture in the moment of lifting the fingersvelocityY - velocityY of the gesture in the moment of lifting the fingers