Class 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
      void onFling​(float velocityX, float velocityY)
      To be called to trigger fling gesture handling.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.