onFling

open fun onFling(mapboxCarMapSurface: MapboxCarMapSurface, velocityX: Float, velocityY: Float): Boolean

Allows you to implement or observe the map fling gesture handler. The surface is onAttached before this can be triggered.

Return

true when the fling call was handled, false will trigger the default handler

See also

SurfaceCallback.onFling

for instructions to enable.

Parameters

mapboxCarMapSurface

loaded and ready car map surface

velocityX

the velocity of this fling measured in pixels per second along the x axis

velocityY

the velocity of this fling measured in pixels per second along the y axis