public static class RotateGestureDetector.SimpleOnRotateGestureListener extends java.lang.Object implements RotateGestureDetector.OnRotateGestureListener
| Constructor and Description |
|---|
SimpleOnRotateGestureListener() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
onRotate(RotateGestureDetector detector,
float rotationDegreesSinceLast,
float rotationDegreesSinceFirst)
Called for every rotation change during the gesture.
|
boolean |
onRotateBegin(RotateGestureDetector detector)
Indicates that the rotation gesture started.
|
void |
onRotateEnd(RotateGestureDetector detector,
float velocityX,
float velocityY,
float angularVelocity)
Indicates that the rotation gesture ended.
|
public boolean onRotateBegin(RotateGestureDetector detector)
RotateGestureDetector.OnRotateGestureListeneronRotateBegin in interface RotateGestureDetector.OnRotateGestureListenerdetector - this detectorRotateGestureDetector.OnRotateGestureListener.onRotate(RotateGestureDetector, float, float) callbacks,
false if you want to ignore this gesture.public boolean onRotate(RotateGestureDetector detector, float rotationDegreesSinceLast, float rotationDegreesSinceFirst)
RotateGestureDetector.OnRotateGestureListeneronRotate in interface RotateGestureDetector.OnRotateGestureListenerdetector - this detectorrotationDegreesSinceLast - rotation change since the last callrotationDegreesSinceFirst - rotation change since the start of the gesturepublic void onRotateEnd(RotateGestureDetector detector, float velocityX, float velocityY, float angularVelocity)
RotateGestureDetector.OnRotateGestureListeneronRotateEnd in interface RotateGestureDetector.OnRotateGestureListenerdetector - this detectorvelocityX - velocityX of the gesture in the moment of lifting the fingersvelocityY - velocityY of the gesture in the moment of lifting the fingersangularVelocity - angularVelocity of the gesture in the moment of lifting the fingers