MapboxCarMapGestureHandler

interface MapboxCarMapGestureHandler

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

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
onFling
Link copied to clipboard
open fun onFling(mapboxCarMapSurface: MapboxCarMapSurface, velocityX: Float, velocityY: Float)
Allows you to implement or observe the map fling gesture handler.
onScale
Link copied to clipboard
open fun onScale(mapboxCarMapSurface: MapboxCarMapSurface, focusX: Float, focusY: Float, scaleFactor: Float)
Allows you to implement or observe the map scale gesture handler.
onScroll
Link copied to clipboard
open fun onScroll(mapboxCarMapSurface: MapboxCarMapSurface, visibleCenter: ScreenCoordinate, distanceX: Float, distanceY: Float)
Allows you to implement or observe the map scroll gesture handler.
toString
Link copied to clipboard
open fun toString(): String

Inheritors

DefaultMapboxCarMapGestureHandler
Link copied to clipboard