PanListener (API Reference)
Package com.here.sdk.gestures
Interface PanListener
public interface PanListener
Interface for handling pan gestures. Pan gesture occurs when a finger is moving on the screen.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonPan(GestureState state, Point2D origin, Point2D translation, double velocity) Called when the pan gesture occurs.
-
Method Details
-
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.
-