ViewModel
public final class ViewModel : ObservableObject
-
Initializer.
Declaration
Swift
public convenience init( _ navigation: TomTomNavigation, tts: TextToSpeechEngine )
Parameters
navigation
Defines the functionality of the navigation.
tts
Provides interface of the text to speech engine.
-
Declaration
Swift
public var destination: String?
-
Declaration
Swift
@Published public private(set) var navigationRoute: TomTomSDKRoute.Route? { get set }
-
Declaration
Swift
@Published public private(set) var proposedRoute: TomTomSDKRoute.Route? { get set }
-
If
true
the language, voice, and accent of guidance announcements is changed to the language specified in the message when the message language is different from the current voice guidance language and the message language is supported.Declaration
Swift
public var adaptVoiceLanguage: Bool
-
If
true
, the waypoint arrival panel is shown after the waypoint is reached.Declaration
Swift
public var showWaypointArrivalView: Bool
-
The value is always the same as in
Navigation
instance passed in initiliazer.Declaration
Swift
public var unitSystem: UnitSystemType { get set }
-
Declaration
Swift
public func startInstruction()
-
Declaration
Swift
public func showError(title: String, message: String)
-
Declaration
Swift
public func start()
-
Declaration
Swift
public func start(_ navigationOptions: NavigationOptions)
-
Declaration
Swift
public func stop()
-
Declaration
Swift
public func hideCombinedInstruction()
-
Declaration
Swift
public func hideLanes()
-
Declaration
Swift
public func setTextToSpeechLocale(locale: Locale) throws
-
Declaration
Swift
public func stopTextToSpeech()
-
Declaration
Swift
public func muteTextToSpeech(mute: Bool)