NavigationSettings
@objc(MBNavigationSettings)
public class NavigationSettings : NSObject
A wrapper for the UserDefaults
class for navigation-specific settings.
Properties are prefixed before they are stored in UserDefaults.standard
.
To specify criteria when calculating routes, use the NavigationRouteOptions
class. To customize the user experience during a particular turn-by-turn navigation session, use the NavigationOptions
class when initializing a NavigationViewController
.
-
The volume that the voice controller will use.
This volume is relative to the system’s volume where 1.0 is same volume as the system.
Declaration
Swift
@objc public dynamic var voiceVolume: Float
-
Specifies whether to mute the voice controller or not.
Declaration
Swift
@objc public dynamic var voiceMuted: Bool
-
Specifies the preferred distance measurement unit.
Note
Anything butkilometer
andmile
will fall back to the default measurement for the current locale. Meters and feets will be used when the presented distances are small enough. SeeDistanceFormatter
for more information.Declaration
Swift
@objc public dynamic var distanceUnit: LengthFormatter.Unit