Class ScrollHandler

java.lang.Object
com.here.NativeBase
com.here.sdk.gestures.ScrollHandler

public final class ScrollHandler extends NativeBase

This class handles scroll events by panning the map accordingly.

  • Method Details

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