GesturesPluginImpl

Manages gestures events on a MapView.

class GesturesPluginImpl : GesturesSettingsBase, GesturesPlugin

Constructors

GesturesPluginImpl
Link copied to clipboard
fun GesturesPluginImpl(context: Context, pixelRatio: Float)
GesturesPluginImpl
Link copied to clipboard
fun GesturesPluginImpl(context: Context, attributeSet: AttributeSet, pixelRatio: Float)

Types

Companion
Link copied to clipboard

Static variables and methods.

object Companion

Functions

addOnFlingListener
Link copied to clipboard

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

open override fun addOnFlingListener(onFlingListener: OnFlingListener)
addOnMapClickListener
Link copied to clipboard

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

open override fun addOnMapClickListener(onMapClickListener: OnMapClickListener)
addOnMapLongClickListener
Link copied to clipboard

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

open override fun addOnMapLongClickListener(onMapLongClickListener: OnMapLongClickListener)
addOnMoveListener
Link copied to clipboard

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

open override fun addOnMoveListener(onMoveListener: OnMoveListener)
addOnRotateListener
Link copied to clipboard

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

open override fun addOnRotateListener(onRotateListener: OnRotateListener)
addOnScaleListener
Link copied to clipboard

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

open override fun addOnScaleListener(onScaleListener: OnScaleListener)
addOnShoveListener
Link copied to clipboard

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

open override fun addOnShoveListener(onShoveListener: OnShoveListener)
addProtectedAnimationOwner
Link copied to clipboard

Add animator owner (see CameraAnimatorOptions.owner or MapAnimationOptions.owner which animation will not be canceled with when gesture animation is about to start. When specified, you are responsible for listening to gesture interactions and canceling the specified owners' animations to avoid competing with gestures.

open override fun addProtectedAnimationOwner(owner: String)
bind
Link copied to clipboard

Bind the Gestures plugin with current context. This will enable the map to use the Gesture plugin.

open override fun bind(context: Context, attrs: AttributeSet?, pixelRatio: Float)
cleanup
Link copied to clipboard

Called when the map is destroyed. Should be used to cleanup plugin resources for that map.

open override fun cleanup()
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getGesturesManager
Link copied to clipboard

Get the current configured AndroidGesturesManager.

open override fun getGesturesManager(): AndroidGesturesManager
getSettings
Link copied to clipboard
open override fun getSettings(): GesturesSettings
hashCode
Link copied to clipboard
open override fun hashCode(): Int
initialize
Link copied to clipboard

Called when the plugin is first added to the map.

open override fun initialize()
onDelegateProvider
Link copied to clipboard

Provides all map delegate instances.

open override fun onDelegateProvider(delegateProvider: MapDelegateProvider)
onGenericMotionEvent
Link copied to clipboard

Called for events that don't fit the other handlers.

Examples of such events are mouse scroll events, mouse moves, joystick & trackpad.

open override fun onGenericMotionEvent(event: MotionEvent): Boolean
onSizeChanged
Link copied to clipboard

Called when the size of the MapView has changed.

open override fun onSizeChanged(width: Int, height: Int)
onTouchEvent
Link copied to clipboard

Called when user touches the screen, all positions are absolute.

Forwards event to the related gesture detectors.

open override fun onTouchEvent(motionEvent: MotionEvent?): Boolean
removeOnFlingListener
Link copied to clipboard

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

open override fun removeOnFlingListener(onFlingListener: OnFlingListener)
removeOnMapClickListener
Link copied to clipboard

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

open override fun removeOnMapClickListener(onMapClickListener: OnMapClickListener)
removeOnMapLongClickListener
Link copied to clipboard

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

open override fun removeOnMapLongClickListener(onMapLongClickListener: OnMapLongClickListener)
removeOnMoveListener
Link copied to clipboard

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

open override fun removeOnMoveListener(listener: OnMoveListener)
removeOnRotateListener
Link copied to clipboard

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

open override fun removeOnRotateListener(listener: OnRotateListener)
removeOnScaleListener
Link copied to clipboard

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

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

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

open override fun removeOnShoveListener(listener: OnShoveListener)
removeProtectedAnimationOwner
Link copied to clipboard

Remove animator owner (see CameraAnimatorOptions.owner or MapAnimationOptions.owner) which animation will not be canceled with when gesture animation is about to start. When specified, you are responsible for listening to gesture interactions and canceling the specified owners' animations to avoid competing with gestures.

open override fun removeProtectedAnimationOwner(owner: String)
setGesturesManager
Link copied to clipboard

Set the AndroidGesturesManager instance.

open override fun setGesturesManager(internalGesturesManager: AndroidGesturesManager, attachDefaultListeners: Boolean, setDefaultMutuallyExclusives: Boolean)
toString
Link copied to clipboard
open override fun toString(): String
updateSettings
Link copied to clipboard
open override fun updateSettings(block: GesturesSettings.() -> Unit)

Properties

disableRotateWhenScaling
Link copied to clipboard
open override var disableRotateWhenScaling: Boolean
doubleTapToZoomEnabled
Link copied to clipboard
open override var doubleTapToZoomEnabled: Boolean
flingVelocityAnimationEnabled
Link copied to clipboard
open override var flingVelocityAnimationEnabled: Boolean
focalPoint
Link copied to clipboard
open override var focalPoint: ScreenCoordinate?
increaseRotateThresholdWhenScaling
Link copied to clipboard
open override var increaseRotateThresholdWhenScaling: Boolean
increaseScaleThresholdWhenRotating
Link copied to clipboard
open override var increaseScaleThresholdWhenRotating: Boolean
pitchEnabled
Link copied to clipboard
open override var pitchEnabled: Boolean
pixelRatio
Link copied to clipboard
open override var pixelRatio: Float
quickZoomEnabled
Link copied to clipboard
open override var quickZoomEnabled: Boolean
rotateEnabled
Link copied to clipboard
open override var rotateEnabled: Boolean
rotateVelocityAnimationEnabled
Link copied to clipboard
open override var rotateVelocityAnimationEnabled: Boolean
scaleVelocityAnimationEnabled
Link copied to clipboard
open override var scaleVelocityAnimationEnabled: Boolean
scrollEnabled
Link copied to clipboard
open override var scrollEnabled: Boolean
zoomEnabled
Link copied to clipboard
open override var zoomEnabled: Boolean
zoomRate
Link copied to clipboard
open override var zoomRate: Float