sdk-maps / com.tomtom.online.sdk.map.gestures / GesturesConfiguration / Builder

Builder

class Builder

Builder used to create an instance of GesturesConfiguration. Once constructed, the user cannot change the field values.

Constructors

<init>

Builder()

Builder used to create an instance of GesturesConfiguration. Once constructed, the user cannot change the field values.

Functions

build

fun build(): GesturesConfiguration

Constructs a new GesturesConfiguration.

enableEventsIntercepting

fun enableEventsIntercepting(enableEventsIntercepting: Boolean): GesturesConfiguration.Builder

Specifies whether map events should be always propagated. By default, only the top-rendered feature event is triggered. For instance, when a user clicks on the marker, the map click event is not propagated.

forceMinMaxZoom

fun forceMinMaxZoom(forceMinMaxZoom: Boolean): GesturesConfiguration.Builder

Specifies if the max and min zoom levels are used without any adjustments and restrictions.

maxBounds

fun maxBounds(maxBounds: BoundingBox): GesturesConfiguration.Builder

Specifies the maximum bounds which can be set for the map view port.

maxZoom

fun maxZoom(maxZoom: Double): GesturesConfiguration.Builder

Specifies the maximum zoom level which can be set for the map view port.

minZoom

fun minZoom(minZoom: Double): GesturesConfiguration.Builder

Specifies the minimal zoom level which can be set for the map view port.

panningEnabled

fun panningEnabled(panningEnabled: Boolean): GesturesConfiguration.Builder

Specifies if the panning gestures are enabled.

rotationEnabled

fun rotationEnabled(rotationEnabled: Boolean): GesturesConfiguration.Builder

Specifies if the rotation gestures are enabled.

tiltEnabled

fun tiltEnabled(tiltEnabled: Boolean): GesturesConfiguration.Builder

Specifies if the tilt gestures are enabled.

zoomEnabled

fun zoomEnabled(zoomEnabled: Boolean): GesturesConfiguration.Builder

Specifies if the zooming gestures are enabled.