Class FlingHandler
Package com.here.sdk.gestures
Class FlingHandler
- java.lang.Object
-
- com.here.NativeBase
-
- com.here.sdk.gestures.FlingHandler
-
public final class FlingHandler extends NativeBase
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonFling(float velocityX, float velocityY)To be called to trigger fling gesture handling.
-
-
-
Method Detail
-
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.
-
-