Class ScrollHandler


  • public final class ScrollHandler
    extends NativeBase

    This class handles scroll events by panning the map accordingly.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onScroll​(float translationX, float translationY)
      To be called to trigger scroll gesture handling.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onScroll

        public void onScroll​(float translationX,
                             float translationY)

        To be called to trigger scroll gesture handling.

        Parameters:
        translationX -

        Translation along x axis in pixels. Values > 0 are interpreted as translation left and values < 0 as translation right.

        translationY -

        Translation along y axis in pixels. Values > 0 are interpreted as translation up and values < 0 as translation down.