public static class ShoveGestureDetector.SimpleOnShoveGestureListener extends java.lang.Object implements ShoveGestureDetector.OnShoveGestureListener
| Constructor and Description |
|---|
SimpleOnShoveGestureListener() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
onShove(ShoveGestureDetector detector,
float deltaPixelsSinceLast,
float deltaPixelsSinceStart)
Called for every shove change during the gesture.
|
boolean |
onShoveBegin(ShoveGestureDetector detector)
Indicates that the shove gesture started.
|
void |
onShoveEnd(ShoveGestureDetector detector,
float velocityX,
float velocityY)
Indicates that the shove gesture ended.
|
public boolean onShoveBegin(ShoveGestureDetector detector)
ShoveGestureDetector.OnShoveGestureListeneronShoveBegin in interface ShoveGestureDetector.OnShoveGestureListenerdetector - this detectorShoveGestureDetector.OnShoveGestureListener.onShove(ShoveGestureDetector, float, float) callbacks,
false if you want to ignore this gesture.public boolean onShove(ShoveGestureDetector detector, float deltaPixelsSinceLast, float deltaPixelsSinceStart)
ShoveGestureDetector.OnShoveGestureListeneronShove in interface ShoveGestureDetector.OnShoveGestureListenerdetector - this detectordeltaPixelsSinceLast - pixels delta change since the last calldeltaPixelsSinceStart - pixels delta change since the start of the gesturepublic void onShoveEnd(ShoveGestureDetector detector, float velocityX, float velocityY)
ShoveGestureDetector.OnShoveGestureListeneronShoveEnd in interface ShoveGestureDetector.OnShoveGestureListenerdetector - this detectorvelocityX - velocityX of the gesture in the moment of lifting the fingersvelocityY - velocityY of the gesture in the moment of lifting the fingers