ScrollHandler (API Reference)
Package com.here.sdk.gestures
Class ScrollHandler
java.lang.Object
com.here.NativeBase
com.here.sdk.gestures.ScrollHandler
This class handles scroll events by panning the map accordingly.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonScroll(float translationX, float translationY) To be called to trigger scroll gesture handling.
-
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.
-