SdkSettings class abstract Core

SDK settings class

Constructors

SdkSettings()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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.
inherited

Static Properties

actualAppTheme AppTheme
Get the actual images & texts render theme
no setter
allowConnection bool
Set if the connection is allowed or not.
no setter
appAuthorization String
Get the application authorization API token.
getter/setter pair
applicationName String
Get application name.
getter/setter pair
appTheme AppTheme
Get the images & texts render theme
getter/setter pair
decimalSeparator String
Get the current decimal separator.
getter/setter pair
deviceModel String
Get device model.
getter/setter pair
deviceName String
Get device name.
getter/setter pair
digitGroupSeparator String
Get the current digit group separator.
getter/setter pair
isCurrentThreadMainThread bool
Check if the current thread is the main thread.
no setter
isSDkInitialized bool
Check if the SDK has initialized
no setter
language Language
Get the API language.
getter/setter pair
languageList List<Language>
Get the API language list.
no setter
mapLanguage MapLanguage
Get the current setting for the map language selection.
getter/setter pair
offBoardListener OffBoardListener
Get the offboard listener
no setter
osInfo int
Get the OS version number
no setter
sdkVersion String
Get SKD version
no setter
tilesMaxSpace int
Get maximum storage space/cache size to use for downloaded tiles in kilobytes (Kb).
getter/setter pair
transferStatistics TransferStatistics
Get the transfer statistics
no setter
unitSystem UnitSystem
Get the unit system used by the SDK.
getter/setter pair

Static Methods

autoUpdate() GemError
Forces auto update in respect to the configured AutoUpdateSettings.
getAllowOffboardServiceOnExtraChargedNetwork(ServiceGroupType serviceType) bool
Check if the given service type is allowed on the extra charged network.
getBestLanguageMatch(String languageCode, String regionCode, String scriptCode, int variant) Language
Find the best language match for the provided input(language code, region code, variant and script code).
getDefaultWidthHeightImageFormat() SizeAndFormat
Get the default width, height and format for the image used in automatically returned images.
getImageById({required int id, Size? size, ImageFileFormat? format}) Uint8List?
Get the image by its ID
getImgById(int id) Img?
Get the image by its ID
getOnlineServiceRestriction(ServiceGroupType serviceType) OnlineRestrictions
Get online service restrictions.
getTopicNotificationsServiceRestriction(ServiceGroupType serviceType) OnlineRestrictions
Get topic notifications service restrictions.
setAllowConnection(bool allowInternetConnection, {bool canDoAutoUpdateResources = true, void onConnectionStatusUpdatedCallback(bool isConnected)?, void onConnectionStatusUpdated2Callback(ServiceGroupType serviceType, bool isConnected)?, void onTopicNotificationsStatusUpdatedCallback(bool isAvailable)?, void onWorldwideRoadMapSupportDisabledCallback(Reason reason)?, void onWorldwideRoadMapSupportStatusCallback(Status status)?, void onWorldwideRoadMapSupportEnabledCallback()?, void onResourcesReadyToDeployCallback()?, void onOnlineCacheSizeChangeCallback(int size)?, void onWorldwideRoadMapVersionUpdatedCallback()?, void onAvailableContentUpdateCallback(ContentType type, Status status)?, void onWorldwideRoadMapUnsupportedCapabilitiesCallback()?, void onApiTokenRejectedCallback()?, void onApiTokenUpdatedCallback()?, void onLoginStatusUpdatedCallback(bool isLoggedIn)?}) → void
Allow/deny internet connection.
setAllowInternetConnection(bool allowInternetConnection) → void
Allow/deny internet connection.
setAllowOffboardServiceOnExtraChargedNetwork(ServiceGroupType serviceType, bool allow) → void
Allow the given service type on the extra charged network type. By default all are allowed.
setDefaultWidthHeightImageFormat(Size size, {ImageFileFormat format = ImageFileFormat.png}) → void
Set the default width, height and format for the image used in automatically returned images.
setSdkVersion(int version, int subVersion, int revision) → void
Set the SDK version
setTTSLanguage(Language language) GemError
Set the current language used for text-to-speech (TTS) instructions.
verifyAppAuthorization(String token, void callback(GemError err)) → void
Verifies an app token.