@Beta(2020, 12) interface DrivingSettings : Persistable
Advanced settings for driving options manipulation. To obtain this interface, call TomtomMap#getDrivingSettings()
.
abstract fun addChevron(builder: ChevronBuilder!): Chevron!
Add custom chevron to the map. Currently, it is possible to add only one custom chevron. Exception is thrown when the user tries to add second chevron. |
|
abstract fun disableMapBearingSmoothing(): Unit
Disable low-pass filtering with camera bearing. |
|
abstract fun enableMapBearingSmoothing(smoothFactor: Long): Unit
Enable low-pass filtering so that camera can follow the chevron in more smoother way. |
|
abstract fun getChevrons(): MutableList<Chevron!>!
Get list of currently added chevrons. |
|
abstract fun isTracking(): Boolean
True when any chevron is currently tracked, false otherwise. |
|
abstract fun removeChevron(chevron: Chevron!): Unit
Remove selected chevron from the map. |
|
abstract fun removeChevrons(): Unit
Remove all chevrons from the map. |
|
abstract fun startTracking(chevron: Chevron!): Unit
Start tracking the specific chevron. In the tracking mode, rotate and pan gestures are blocked. The user can change only zoom level, map camera is automatically adjusted to follow the chevron. |
|
abstract fun stopTracking(): Unit
Stop tracking the chevron, all gestures are enabled again. |
abstract fun onViewStateRestored(savedState: MapState!): Unit
Called internally to restore state, e.g. when app is resumed from the background. |