Interface PinchRotateListener


  • public interface PinchRotateListener

    Interface for handling pinch rotate gestures. Pinch rotate gesture occurs when two fingers are on the screen and at least one of them moves.

    • 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.