BetterRouteVisualization
public protocol BetterRouteVisualization : AnyObject
Manages the visualization of better route proposals, e.g., visibility.
Important
To see the better route proposal theBetterProposalAcceptanceMode
should be set to
BetterProposalAcceptanceMode.manual
when configuring the TomTomNavigation
.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Reports whether visualization of a better route is enabled. It also enables or disables the visualization of better route proposals. The default value is
false
.Declaration
Swift
var isEnabled: Bool { get set }
-
Adds a
BetterRouteTapInteractionObserver
, that informs when a better route line is tapped.Declaration
Swift
func addTapInteractionObserver(_ observer: BetterRouteTapInteractionObserver)
Parameters
observer
The observer to be registered.
-
Removes a previously observed
BetterRouteTapInteractionObserver
.Declaration
Swift
func removeTapInteractionObserver(_ observer: BetterRouteTapInteractionObserver)
Parameters
observer
The registered observer.