ManeuverNotificationOptions class
A class containing all options to be used when generating maneuver notifications.
Constructors
- ManeuverNotificationOptions(LanguageCode language, UnitSystem unitSystem)
- Creates a new instance of this class with specified language and unit system.
-
ManeuverNotificationOptions.withAllFields(LanguageCode language, UnitSystem unitSystem, List<
ManeuverNotificationType> includedNotificationTypes, bool enableRoundaboutNotification, bool enableDestinationReachedNotification, bool enableDoubleNotification, bool enablePhoneme, bool enableHighwayExit) - Creates a new instance of this class with full specified configurations.
-
ManeuverNotificationOptions.withAllFieldsNew(LanguageCode language, UnitSystem unitSystem, List<
ManeuverNotificationType> includedNotificationTypes, bool enableRoundaboutNotification, bool enableDestinationReachedNotification, bool enableDoubleNotification, bool enablePhoneme, NotificationFormatOption notificationFormatOption, bool enableHighwayExit) - Creates a new instance of this class with full specified configurations.
- ManeuverNotificationOptions.withDefaults()
- Creates a new instance of this class with default configurations.
-
ManeuverNotificationOptions.withTextUsageOption(LanguageCode language, UnitSystem unitSystem, List<
ManeuverNotificationType> includedNotificationTypes, bool enableRoundaboutNotification, bool enableDestinationReachedNotification, bool enableDoubleNotification, bool enablePhoneme, TextUsageOptions textUsageOptions, bool enableHighwayExit) - Creates a new instance of this class with full specified configurations.
Properties
- arrivalNotificationOption ↔ ArrivalNotificationOption
-
A flag that indicates whether notification for destination and/or stopover reached maneuvers should be generated.
Defaults to
ArrivalNotificationOption.BOTH.getter/setter pair - directionInformationUsageForActionNotificationOption ↔ DirectionInformationUsageOption
-
An option whether direction information should be used when generating notification with
ManeuverNotificationType.action. Defaults to DirectionInformationUsageOption.none.
getter/setter pair
- enableDestinationReachedNotification ↔ bool
-
A flag that indicates whether notification for destination/stopover reached maneuvers should be generated.
Defaults to
true.getter/setter pair - enableDoubleNotification ↔ bool
-
A flag that indicates whether combined maneuver notifications should be generated.
Such double notifications can be useful when maneuvers are very close.
Example: A combined message: 'After 300 meters turn left and then turn right.'.
This way a user can better anticipate the next-next maneuver.
Note that setting to
truewill make the notification longer as two maneuvers will be merged into one. When the next-next maneuver action takes place, the notification will be given as usual. Example: 'Now turn left and then then turn right.' will be followed by 'Now turn right.'. Defaults totrue.getter/setter pair - enableHighwayExit ↔ bool
-
A flag that indicates whether highway exit information should be used when generating notification.
Defaults to
true.getter/setter pair - enableLaneRecommendation ↔ bool
-
A flag that indicates whether lane recommendation should be used when generating notifications.
In case the flag is enabled, only the notification for the ManeuverNotificationType.distance
maneuver notification type will contain the lane recommendation. The lane recommandation will replace the
direction information in the notification.
Example: 'After 250 meters use the right two lanes and turn right.'.
Defaults to
false.getter/setter pair - enablePhoneme ↔ bool
-
A flag that indicates whether phonemes in selected notification format for proper nouns (e.g. road names,
road numbers, city names) should be used when generating notifications. Direction information comes usually
in orthographic form and phoneme (e.g. Wall Street and "wɔːl"striːt). However, when the notification is
synthesized by a TTS engine, the pronunciation of the orthographic form solely depends on its capability
and phoneme set. The use of our phoneme data in the notification usually makes the pronunciation of
direction information sound more natural.
Note: For now, this property is functional for road name and road number information only.
getter/setter pair
- enableRoundaboutNotification ↔ bool
-
A flag that indicates whether notification for roundabout-related maneuvers should be generated.
Defaults to
true.getter/setter pair - hashCode → int
-
The hash code for this object.
no setter
-
includedNaturalGuidanceTypes
↔ List<
NaturalGuidanceType> -
List of NaturalGuidanceType should be included in the notifications. Excluding
all of them will disable natural guidance information in the notifications completely.
getter/setter pair
-
includedNotificationTypes
↔ List<
ManeuverNotificationType> -
List of ManeuverNotificationType for which notifications should be generated. Excluding all of
them will disable the maneuver notifications completely.
By default, all types are included.
getter/setter pair
- language ↔ LanguageCode
-
The language in which the notifications will be generated. When the specified language
is not supported, the default language is used, which is English (American).
getter/setter pair
- notificationFormatOption ↔ NotificationFormatOption
-
A formatting option for the phoneme that is included in the notification. By default, no phoneme is used
and the NotificationFormatOption.plain orthographic form is included in the notification.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textUsageOptions ↔ TextUsageOptions
-
An option whether street name, road number and sign post direction should be used when generating notification.
Defaults to each attribute as LocalizedTextPreference.useAlways.
getter/setter pair
- unitSystem ↔ UnitSystem
-
Defines the measurement system used for distances. Defaults to metric.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool - The equality operator.