DefaultMapboxCarMapGestureHandler

open class DefaultMapboxCarMapGestureHandler : MapboxCarMapGestureHandler

This class contains the default map gestures. It Handles the gestures received from SurfaceCallback and applies them to the MapboxMap camera. If you would like to customize the map gestures, use MapboxCarMap.setGestureHandler.

Constructors

DefaultMapboxCarMapGestureHandler
Link copied to clipboard
fun DefaultMapboxCarMapGestureHandler()

Functions

onFling
Link copied to clipboard
open override fun onFling(mapboxCarMapSurface: MapboxCarMapSurface, velocityX: Float, velocityY: Float)
onScale
Link copied to clipboard
open override fun onScale(mapboxCarMapSurface: MapboxCarMapSurface, focusX: Float, focusY: Float, scaleFactor: Float)
onScroll
Link copied to clipboard
open override fun onScroll(mapboxCarMapSurface: MapboxCarMapSurface, visibleCenter: ScreenCoordinate, distanceX: Float, distanceY: Float)