GesturesController

Controls gestures related to the user interactions on the TomTomMap. It allows to enable and disable certain gestures as well as listen for certain gesture events.

Inheritors

Properties

Link copied to clipboard

Flag determining whether the map panning with two or more fingers is enabled. True by default.

Link copied to clipboard

Flag determining whether the rotation is enabled. True by default.

Link copied to clipboard
abstract var isScrollEnabled: Boolean

Flag determining whether the scroll gesture is enabled. True by default.

Link copied to clipboard
abstract var isTiltEnabled: Boolean

Flag determining whether the tilt (aka shove) gesture is enabled. True by default.

Link copied to clipboard
abstract var isZoomEnabled: Boolean

Flag determining whether the zoom gesture is enabled. True by default.

Functions

Link copied to clipboard
abstract fun addMapClickListener(listener: MapClickListener)

Registers MapClickListener which is notified when the map has been clicked (tapped).

Link copied to clipboard

Registers MapDoubleClickListener which is notified when the map double click (double tap) gesture has been recognized.

Link copied to clipboard

Registers MapLongClickListener which is notified when the map long click (long press) gesture has been recognized.

Link copied to clipboard

Registers MapPanningListener which is notified when user performs the panning gesture on the map.

Link copied to clipboard
abstract fun changeGestureExclusions(gesture: GestureType, exclusions: Set<GestureType>)

Allows to change the default gesture detection behaviour. For example invocation of this method with the following parameters: setExclusiveGestures(GestureType.Rotation, setOf(GestureType.Scale)) results in GestureType.Rotation being ignored if its not already ongoing before GestureType.Scale.

Link copied to clipboard

Removes the MapClickListener.

Link copied to clipboard
Link copied to clipboard