Interface PanListener


  • public interface PanListener

    Interface for handling pan gestures. Pan gesture occurs when a finger is moving on the screen.

    • Method Detail

      • onPan

        void onPan​(@NonNull
                   GestureState state,
                   @NonNull
                   Point2D origin,
                   @NonNull
                   Point2D translation,
                   double velocity)

        Called when the pan gesture occurs.

        Parameters:
        state -

        Determines in which state the gesture is.

        origin -

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

        translation -

        Translation offset since the last position in pixels.

        velocity -

        Velocity of panning in pixels per millisecond.