on Fling
open fun onFling(@NonNull mapboxCarMapSurface: MapboxCarMapSurface, velocityX: Float, velocityY: Float)
Content copied to clipboard
Allows you to implement or observe the map fling gesture handler. The surface is onAttached before this can be triggered.
See also
androidx. car. app. Surface Callback
SurfaceCallback#onFlingfor instructions to enable.
Parameters
mapbox Car Map Surface
loaded and ready car map surface
velocity X
the velocity of this fling measured in pixels per second along the x axis
velocity Y
the velocity of this fling measured in pixels per second along the y axis