FlingHandler (API Reference)
Package com.here.sdk.gestures
Class FlingHandler
java.lang.Object
com.here.NativeBase
com.here.sdk.gestures.FlingHandler
This class handles fling events by performing a kinetic move on the map. Initial velocity of
kinetic move is the one provided to onFling(float, float). Subsequently, velocity
decays exponentially.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonFling(float velocityX, float velocityY) To be called to trigger fling gesture handling.
-
Method Details
-
onFling
public void onFling(float velocityX, float velocityY) To be called to trigger fling gesture handling.
- Parameters:
velocityX-Velocity of fling in pixels per second along the x axis. Values > 0 are interpreted as fling left and values < 0 as fling right.
velocityY-Velocity of fling in pixels per second along the y axis. Values > 0 are interpreted as fling up and values < 0 as fling down.
-