Builder

class Builder

Composes and builds a GesturesSettings object.

This is a concrete implementation of the builder design pattern.

Constructors

Link copied to clipboard
fun Builder()

Functions

Link copied to clipboard

Returns a GesturesSettings reference to the object being constructed by the builder.

Link copied to clipboard
fun setDoubleTapToZoomInEnabled(doubleTapToZoomInEnabled: Boolean): GesturesSettings.Builder

Setter for doubleTapToZoomInEnabled: whether double tapping the map with one touch results in a zoom-in animation. Default value: true.

Link copied to clipboard
fun setDoubleTouchToZoomOutEnabled(doubleTouchToZoomOutEnabled: Boolean): GesturesSettings.Builder

Setter for doubleTouchToZoomOutEnabled: whether single tapping the map with two touches results in a zoom-out animation. Default value: true.

Link copied to clipboard
fun setFocalPoint(focalPoint: ScreenCoordinate?): GesturesSettings.Builder

Setter for focalPoint: by default, gestures rotate and zoom around the center of the gesture. Set this property to rotate and zoom around a fixed point instead.

fun setIncreasePinchToZoomThresholdWhenRotating(increasePinchToZoomThresholdWhenRotating: Boolean): GesturesSettings.Builder

Setter for increasePinchToZoomThresholdWhenRotating: whether pinch to zoom threshold increases when rotating. true by default. Default value: true.

fun setIncreaseRotateThresholdWhenPinchingToZoom(increaseRotateThresholdWhenPinchingToZoom: Boolean): GesturesSettings.Builder

Setter for increaseRotateThresholdWhenPinchingToZoom: whether rotate threshold increases when pinching to zoom. true by default. Default value: true.

Link copied to clipboard
fun setPinchScrollEnabled(pinchScrollEnabled: Boolean): GesturesSettings.Builder

Setter for pinchScrollEnabled: whether pan is enabled for the pinch gesture. Default value: true.

Link copied to clipboard
fun setPinchToZoomDecelerationEnabled(pinchToZoomDecelerationEnabled: Boolean): GesturesSettings.Builder

Setter for pinchToZoomDecelerationEnabled: whether a deceleration animation following a pinch-to-zoom gesture is enabled. True by default. Default value: true.

Link copied to clipboard
fun setPinchToZoomEnabled(pinchToZoomEnabled: Boolean): GesturesSettings.Builder

Setter for pinchToZoomEnabled: whether the pinch to zoom gesture is enabled. Default value: true.

Link copied to clipboard
fun setPitchEnabled(pitchEnabled: Boolean): GesturesSettings.Builder

Setter for pitchEnabled: whether the pitch gesture is enabled. Default value: true.

Link copied to clipboard
fun setQuickZoomEnabled(quickZoomEnabled: Boolean): GesturesSettings.Builder

Setter for quickZoomEnabled: whether the quick zoom gesture is enabled. Default value: true.

Link copied to clipboard
fun setRotateDecelerationEnabled(rotateDecelerationEnabled: Boolean): GesturesSettings.Builder

Setter for rotateDecelerationEnabled: whether a deceleration animation following a rotate gesture is enabled. True by default. Default value: true.

Link copied to clipboard
fun setRotateEnabled(rotateEnabled: Boolean): GesturesSettings.Builder

Setter for rotateEnabled: whether the rotate gesture is enabled. Default value: true.

Link copied to clipboard
fun setScrollDecelerationEnabled(scrollDecelerationEnabled: Boolean): GesturesSettings.Builder

Setter for scrollDecelerationEnabled: whether a deceleration animation following a scroll gesture is enabled. True by default. Default value: true.

Link copied to clipboard
fun setScrollEnabled(scrollEnabled: Boolean): GesturesSettings.Builder

Setter for scrollEnabled: whether the single-touch scroll gesture is enabled. Default value: true.

Link copied to clipboard

Setter for scrollMode: configures the directions in which the map is allowed to move during a scroll gesture. Default value: "horizontal-and-vertical".

fun setSimultaneousRotateAndPinchToZoomEnabled(simultaneousRotateAndPinchToZoomEnabled: Boolean): GesturesSettings.Builder

Setter for simultaneousRotateAndPinchToZoomEnabled: whether rotation is enabled for the pinch to zoom gesture. Default value: true.

Link copied to clipboard
fun setZoomAnimationAmount(zoomAnimationAmount: Float): GesturesSettings.Builder

Setter for zoomAnimationAmount: the amount by which the zoom level increases or decreases during a double-tap-to-zoom-in or double-touch-to-zoom-out gesture. 1.0 by default. Must be positive. Default value: 1.

Properties

Link copied to clipboard
var doubleTapToZoomInEnabled: Boolean = true

Whether double tapping the map with one touch results in a zoom-in animation. Default value: true.

Link copied to clipboard
var doubleTouchToZoomOutEnabled: Boolean = true

Whether single tapping the map with two touches results in a zoom-out animation. Default value: true.

Link copied to clipboard
var focalPoint: ScreenCoordinate? = null

By default, gestures rotate and zoom around the center of the gesture. Set this property to rotate and zoom around a fixed point instead.

Link copied to clipboard

Whether pinch to zoom threshold increases when rotating. true by default. Default value: true.

Whether rotate threshold increases when pinching to zoom. true by default. Default value: true.

Link copied to clipboard
var pinchScrollEnabled: Boolean = true

Whether pan is enabled for the pinch gesture. Default value: true.

Link copied to clipboard
var pinchToZoomDecelerationEnabled: Boolean = true

Whether a deceleration animation following a pinch-to-zoom gesture is enabled. True by default. Default value: true.

Link copied to clipboard
var pinchToZoomEnabled: Boolean = true

Whether the pinch to zoom gesture is enabled. Default value: true.

Link copied to clipboard
var pitchEnabled: Boolean = true

Whether the pitch gesture is enabled. Default value: true.

Link copied to clipboard
var quickZoomEnabled: Boolean = true

Whether the quick zoom gesture is enabled. Default value: true.

Link copied to clipboard
var rotateDecelerationEnabled: Boolean = true

Whether a deceleration animation following a rotate gesture is enabled. True by default. Default value: true.

Link copied to clipboard
var rotateEnabled: Boolean = true

Whether the rotate gesture is enabled. Default value: true.

Link copied to clipboard
var scrollDecelerationEnabled: Boolean = true

Whether a deceleration animation following a scroll gesture is enabled. True by default. Default value: true.

Link copied to clipboard
var scrollEnabled: Boolean = true

Whether the single-touch scroll gesture is enabled. Default value: true.

Link copied to clipboard

Configures the directions in which the map is allowed to move during a scroll gesture. Default value: "horizontal-and-vertical".

Link copied to clipboard

Whether rotation is enabled for the pinch to zoom gesture. Default value: true.

Link copied to clipboard
var zoomAnimationAmount: Float = 1.0f

The amount by which the zoom level increases or decreases during a double-tap-to-zoom-in or double-touch-to-zoom-out gesture. 1.0 by default. Must be positive. Default value: 1.