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 MapPluginExtensionsDelegate.addOnFlingListener(onFlingListener: OnFlingListener)
addOnMapClickListener
Link copied to clipboard

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

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

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

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

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

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

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

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

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

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

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

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

Get the current configured AndroidGesturesManager.

fun MapPluginExtensionsDelegate.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.

removeOnFlingListener
Link copied to clipboard

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Set the AndroidGesturesManager instance.

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