Package com.mapbox.maps.plugin.gestures

Types

GesturesPlugin
Link copied to clipboard

Define the interfaces for the Layer plugin.

GesturesPluginImpl
Link copied to clipboard

Manages gestures events on a MapView.

class GesturesPluginImpl : GesturesSettingsBase, GesturesPlugin
OnFlingListener
Link copied to clipboard

Interface definition for a callback to be invoked when the map is flinged.

fun fun interface OnFlingListener
OnMapClickListener
Link copied to clipboard

Interface definition for a callback to be invoked when the user clicks on the map view.

fun fun interface OnMapClickListener
OnMapLongClickListener
Link copied to clipboard

Interface definition for a callback to be invoked when the user long clicks on the map view.

fun fun interface OnMapLongClickListener
OnMoveListener
Link copied to clipboard

Interface definition for a callback to be invoked when the map is moved.

interface OnMoveListener
OnRotateListener
Link copied to clipboard

Interface definition for a callback to be invoked when the map is rotated.

interface OnRotateListener
OnScaleListener
Link copied to clipboard

Interface definition for a callback to be invoked when the map is scaled.

interface OnScaleListener
OnShoveListener
Link copied to clipboard

Interface definition for a callback to be invoked when the map is shoved with two fingers.

interface OnShoveListener

Functions

addOnFlingListener
Link copied to clipboard

Add a callback that is invoked when the map is has received a fling gesture.

fun MapListenerDelegate.addOnFlingListener(onFlingListener: OnFlingListener)
addOnMapClickListener
Link copied to clipboard

Add a callback that is invoked when the map is clicked.

fun MapListenerDelegate.addOnMapClickListener(onMapClickListener: OnMapClickListener)
addOnMapLongClickListener
Link copied to clipboard

Add a callback that is invoked when the map is long clicked.

fun MapListenerDelegate.addOnMapLongClickListener(onMapLongClickListener: OnMapLongClickListener)
addOnMoveListener
Link copied to clipboard

Add a callback that is invoked when the map is moved.

fun MapListenerDelegate.addOnMoveListener(listener: OnMoveListener)
addOnRotateListener
Link copied to clipboard

Add a callback that is invoked when the map is rotated.

fun MapListenerDelegate.addOnRotateListener(listener: OnRotateListener)
addOnScaleListener
Link copied to clipboard

Add a callback that is invoked when the map is scaled.

fun MapListenerDelegate.addOnScaleListener(listener: OnScaleListener)
addOnShoveListener
Link copied to clipboard

Add a callback that is invoked when the map is shoved.

fun MapListenerDelegate.addOnShoveListener(listener: OnShoveListener)
getGesturesManager
Link copied to clipboard

Get the current configured AndroidGesturesManager.

fun MapListenerDelegate.getGesturesManager(): AndroidGesturesManager?
getGesturesPlugin
Link copied to clipboard

Extension function for MapView to get the Gestures plugin instance.

getGesturesSettings
Link copied to clipboard

The gesture configuration object.

fun MapListenerDelegate.getGesturesSettings(): GesturesSettings?
removeOnFlingListener
Link copied to clipboard

Remove a callback that is invoked when the map is has received a fling gesture.

fun MapListenerDelegate.removeOnFlingListener(onFlingListener: OnFlingListener)
removeOnMapClickListener
Link copied to clipboard

Remove a callback that is invoked when the map is clicked.

fun MapListenerDelegate.removeOnMapClickListener(onMapClickListener: OnMapClickListener)
removeOnMapLongClickListener
Link copied to clipboard

Remove a callback that is invoked when the map is long clicked.

fun MapListenerDelegate.removeOnMapLongClickListener(onMapLongClickListener: OnMapLongClickListener)
removeOnMoveListener
Link copied to clipboard

Remove a callback that is invoked when the map is moved.

fun MapListenerDelegate.removeOnMoveListener(listener: OnMoveListener)
removeOnRotateListener
Link copied to clipboard

Remove a callback that is invoked when the map is rotated.

fun MapListenerDelegate.removeOnRotateListener(listener: OnRotateListener)
removeOnScaleListener
Link copied to clipboard

Remove a callback that is invoked when the map is scaled.

fun MapListenerDelegate.removeOnScaleListener(listener: OnScaleListener)
removeOnShoveListener
Link copied to clipboard

Remove a callback that is invoked when the map is shoved.

fun MapListenerDelegate.removeOnShoveListener(listener: OnShoveListener)
setGesturesManager
Link copied to clipboard

Set the AndroidGesturesManager instance.

fun MapListenerDelegate.setGesturesManager(androidGesturesManager: AndroidGesturesManager, attachDefaultListeners: Boolean, setDefaultMutuallyExclusives: Boolean)