MapListenerDelegate

Definition of a listener manager delegate to manage all kinds of listeners.

interface MapListenerDelegate

Functions

addOnCameraChangeListener
Link copied to clipboard

Add a listener that's going to be invoked whenever the camera position changes.

abstract fun addOnCameraChangeListener(onCameraChangeListener: OnCameraChangeListener)
addOnDidFinishRenderingFrameListener
Link copied to clipboard

Add a listener that's going to be invoked whenever frame finished rendering.

abstract fun addOnDidFinishRenderingFrameListener(onDidFinishRenderingFrameListener: OnDidFinishRenderingFrameListener)
addOnDidFinishRenderingMapListener
Link copied to clipboard

Add a listener that's going to be invoked whenever the map finished rendering.

abstract fun addOnDidFinishRenderingMapListener(onDidFinishRenderingMapListener: OnDidFinishRenderingMapListener)
addOnMapChangedListener
Link copied to clipboard

Add a listener that's going to be invoked whenever map state changes.

abstract fun addOnMapChangedListener(onMapChangeListener: OnMapChangedListener)
addOnMapLoadErrorListener
Link copied to clipboard

Add a listener that's going to be invoked whenever a map load error occurs.

abstract fun addOnMapLoadErrorListener(onMapLoadErrorListener: OnMapLoadErrorListener)
addOnSourceChangeListener
Link copied to clipboard

Add a listener that's going to be invoked whenever a source changes.

abstract fun addOnSourceChangeListener(onSourceChangeListener: OnSourceChangeListener)
addOnStyleImageChangeListener
Link copied to clipboard

Add a listener that's going to be invoked whenever style image state changes.

abstract fun addOnStyleImageChangeListener(onStyleImageChangeListener: OnStyleImageChangeListener)
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
removeOnCameraChangeListener
Link copied to clipboard

Remove the camera change listener.

abstract fun removeOnCameraChangeListener(onCameraChangeListener: OnCameraChangeListener)
removeOnDidFinishRenderingFrameListener
Link copied to clipboard

Remove the finish rendering frame listener.

abstract fun removeOnDidFinishRenderingFrameListener(onDidFinishRenderingFrameListener: OnDidFinishRenderingFrameListener)
removeOnDidFinishRenderingMapListener
Link copied to clipboard

Remove the did finish rendering map listener.

abstract fun removeOnDidFinishRenderingMapListener(onDidFinishRenderingMapListener: OnDidFinishRenderingMapListener)
removeOnMapChangedListener
Link copied to clipboard

Remove the map change listener.

abstract fun removeOnMapChangedListener(onMapChangedListener: OnMapChangedListener)
removeOnMapLoadErrorListener
Link copied to clipboard

Remove the map load error listener.

abstract fun removeOnMapLoadErrorListener(onMapLoadErrorListener: OnMapLoadErrorListener)
removeOnSourceChangeListener
Link copied to clipboard

Remove the source change listener.

abstract fun removeOnSourceChangeListener(onSourceChangeListener: OnSourceChangeListener)
removeOnStyleImageChangeListener
Link copied to clipboard

Remove the style image change listener.

abstract fun removeOnStyleImageChangeListener(onStyleImageChangeListener: OnStyleImageChangeListener)
toString
Link copied to clipboard
open override fun toString(): String

Inheritors

MapboxMap
Link copied to clipboard

Extensions

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?
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)