Mapbox Car Map Gesture Handler
interface MapboxCarMapGestureHandler
Content copied to clipboard
This interface captures gesture events from Android Auto's SurfaceCallback. If you would like to customize observe the map gestures provided, you can set your own gestures with MapboxCarMap.setGestureHandler.
Functions
on Fling
Link copied to clipboard
open fun onFling(mapboxCarMapSurface: MapboxCarMapSurface, velocityX: Float, velocityY: Float)
Content copied to clipboard
Allows you to implement or observe the map fling gesture handler. The surface is MapboxCarMapObserver.onAttached before this can be triggered.
on Scale
Link copied to clipboard
open fun onScale(mapboxCarMapSurface: MapboxCarMapSurface, focusX: Float, focusY: Float, scaleFactor: Float)
Content copied to clipboard
Allows you to implement or observe the map scale gesture handler. The surface is MapboxCarMapObserver.onAttached before this can be triggered.
on Scroll
Link copied to clipboard
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.
Inheritors
DefaultMapboxCarMapGestureHandler
Link copied to clipboard