on Scroll
open fun onScroll(mapboxCarMapSurface: MapboxCarMapSurface, visibleCenter: ScreenCoordinate, distanceX: Float, distanceY: Float)
Content copied to clipboard
Allows you to implement or observe the map scroll gesture handler. The surface is MapboxCarMapObserver.onAttached before this can be triggered.
See also
androidx. car. app. Surface Callback
for instructions to enable.
Parameters
mapbox Car Map Surface
loaded and ready car map surface
distance X
the distance in pixels along the X axis
distance Y
the distance in pixels along the Y axis