AutoUpdateSettings class Core

Configuration for auto update

Constructors

AutoUpdateSettings({bool isAutoUpdateForRoadMapEnabled = true, bool isAutoUpdateForViewStyleHighResEnabled = true, bool isAutoUpdateForViewStyleLowResEnabled = true, bool isAutoUpdateForHumanVoiceEnabled = false, bool isAutoUpdateForComputerVoiceEnabled = false, bool isAutoUpdateForCarModelEnabled = false, bool isAutoUpdateForResourcesEnabled = true, void onAutoUpdateComplete(ContentType type, GemError error)?})
Constructor for initializing the auto-update settings with default values.
const
AutoUpdateSettings.allDisabled({void onAutoUpdateComplete(ContentType type, GemError error)?})
Factory constructor to create an instance where all update options are disabled.
factory
AutoUpdateSettings.allEnabled({void onAutoUpdateComplete(ContentType type, GemError error)?})
Factory constructor to create an instance where all update options are enabled.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isAutoUpdateForCarModelEnabled bool
Whether the update for the car models is enabled
final
isAutoUpdateForComputerVoiceEnabled bool
Whether the update for the computer voices is enabled
final
isAutoUpdateForHumanVoiceEnabled bool
Whether the update for the human voices is enabled
final
isAutoUpdateForResourcesEnabled bool
Whether the update for the resources (icons, translations) is enabled
final
isAutoUpdateForRoadMapEnabled bool
Whether the update for the road maps is enabled
final
isAutoUpdateForViewStyleHighResEnabled bool
Whether the update for the map styles high resolution is enabled
final
isAutoUpdateForViewStyleLowResEnabled bool
Whether the update for the map styles low resolution is enabled
final
onAutoUpdateComplete → void Function(ContentType type, GemError error)?
Callback to be called when an auto update is completed
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

isUpdateAllowedForType(ContentType type) bool
Determines if updates are allowed for a given content type.
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.
inherited