GesturesController

interface 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.

Important: This is a Public Preview API. It may be changed or removed at any time.

Functions

Link copied to clipboard
abstract fun addOnMapClickListener(listener: OnMapClickListener)

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

Link copied to clipboard
abstract fun addOnMapDoubleClickListener(listener: OnMapDoubleClickListener)

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

Link copied to clipboard
abstract fun addOnMapLongClickListener(listener: OnMapLongClickListener)

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

Link copied to clipboard
abstract fun addOnMapPanningListener(listener: OnMapPanningListener)

Registers OnMapPanningListener 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
abstract fun removeOnMapClickListener(listener: OnMapClickListener)

Removes the OnMapClickListener.

Link copied to clipboard
abstract fun removeOnMapDoubleClickListener(listener: OnMapDoubleClickListener)
Link copied to clipboard
abstract fun removeOnMapLongClickListener(listener: OnMapLongClickListener)
Link copied to clipboard
abstract fun removeOnMapPanningListener(listener: OnMapPanningListener)

Properties

Link copied to clipboard
abstract var isMultiPointerPanEnabled: Boolean

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

Link copied to clipboard
abstract var isRotationEnabled: Boolean

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.

Inheritors

Link copied to clipboard