LongPressDelegate

public protocol LongPressDelegate : AnyObject

Protocol for handling long-press gestures. Long-press gesture occurs after tapping and holding the finger for a long time on the screen.

  • Called when the double long press gesture occurs.

    Declaration

    Swift

    func onLongPress(state: GestureState, origin: Point2D)

    Parameters

    state

    Determines in which state the gesture is.

    origin

    Position of the touch point relative to the MapView in pixels.