PinchRotateDelegate

public protocol PinchRotateDelegate : AnyObject

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

  • Called when the pinch rotate gesture occurs.

    Declaration

    Swift

    func onPinchRotate(state: GestureState, pinchOrigin: Point2D, rotationOrigin: Point2D, twoFingerDistance: Double, rotation: Angle)

    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.