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 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.