public static interface ShoveGestureDetector.OnShoveGestureListener
| 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.
|
boolean onShoveBegin(ShoveGestureDetector detector)
detector - this detectoronShove(ShoveGestureDetector, float, float) callbacks,
false if you want to ignore this gesture.boolean onShove(ShoveGestureDetector detector, float deltaPixelsSinceLast, float deltaPixelsSinceStart)
detector - this detectordeltaPixelsSinceLast - pixels delta change since the last calldeltaPixelsSinceStart - pixels delta change since the start of the gesturevoid onShoveEnd(ShoveGestureDetector detector, float velocityX, float velocityY)
velocityX - velocityX of the gesture in the moment of lifting the fingersvelocityY - velocityY of the gesture in the moment of lifting the fingersdetector - this detector