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

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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
Link copied to clipboard

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.

Inheritors

Link copied to clipboard