GestureConfig

constructor(scrollEnabled: Boolean = true, scaleEnabled: Boolean = true, flingEnabled: Boolean = false, exitTrackingOnGesture: Boolean = true)

Parameters

scrollEnabled

Whether pan/drag gestures are enabled. Default: true.

scaleEnabled

Whether pinch-to-zoom gestures are enabled. Default: true.

flingEnabled

Whether fling (momentum-based scrolling) gestures are forwarded to the callback. Default: false. The SDK provides no built-in fling implementation — the onFling() method is a no-op. Clients wanting momentum scrolling must: 1. Set flingEnabled = true in this config 2. Subclass MSDKSurfaceCallback and override onFling() with their own implementation

exitTrackingOnGesture

Whether any gesture should exit the GPS tracking mode (GUIDANCE_VIEW_AUTO → GUIDANCE_VIEW_FREE) and show the recenter button. If false, the map stays in auto-follow mode during gestures. Default: true.