Interface PinchRotateListener
Package com.here.sdk.gestures
Interface PinchRotateListener
-
public interface PinchRotateListenerInterface for handling pinch rotate gestures. Pinch rotate gesture occurs when two fingers are on the screen and at least one of them moves.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonPinchRotate(GestureState state, Point2D pinchOrigin, Point2D rotationOrigin, double twoFingerDistance, Angle rotation)Called when the pinch rotate gesture occurs.
-
-
-
Method Detail
-
onPinchRotate
void onPinchRotate(@NonNull GestureState state, @NonNull Point2D pinchOrigin, @NonNull Point2D rotationOrigin, double twoFingerDistance, @NonNull Angle rotation)Called when the pinch rotate gesture occurs.
- Parameters:
state-Determines in which state the gesture is.
pinchOrigin-Position where the pinch happened relative to the MapView in pixels.
rotationOrigin-Position where the rotation happened relative to the MapView in pixels.
twoFingerDistance-Distance between the two fingers in pixels.
rotation-Fingers rotation angle delta. Indicates how much the fingers rotation angle has changed since the previous gesture update. Clockwise finger rotation gives positive deltas, counter clockwise finger rotation gives negative deltas.
-
-