|
Maps SDK for C++ 1.0.0
|
SdkSettings object. More...


Public Member Functions | |
| SdkSettings (const SdkSettings &)=delete | |
| SdkSettings (SdkSettings &&)=default | |
| Default move constructor noexcept is deduced. | |
| SdkSettings & | operator= (const SdkSettings &)=delete |
| SdkSettings & | operator= (SdkSettings &&sdksettings)=default |
| Default move assignment noexcept is deduced. | |
| EUnitSystem | getUnitSystem () const noexcept |
| Get the unit system used by the SDK. | |
| SdkSettings & | setUnitSystem (EUnitSystem unitSystem) noexcept |
| Set the unit system to be used by the SDK. | |
| SdkSettings & | setDecimalSeparator (char16_t sep) noexcept |
| Set a custom decimal separator. | |
| char16_t | getDecimalSeparator () const noexcept |
| Get the current decimal separator. | |
| SdkSettings & | setDigitGroupSeparator (char16_t sep) noexcept |
| Set a custom digit group separator. | |
| char16_t | getDigitGroupSeparator () const noexcept |
| Get the current digit group separator. | |
| bool | getAllowConnection () const noexcept |
| Check if the connection is allowed or not. | |
| SdkSettings & | setAllowConnection (bool allow, OffboardListener listener) noexcept |
| Allow/deny internet connection. | |
| SdkSettings & | setAllowOffboardServiceOnExtraChargedNetwork (EServiceGroupType serviceType, bool allow) noexcept |
| Allow the given service type on the extra charged network type By default all are allowed. | |
| bool | getAllowOffboardServiceOnExtraChargedNetwork (EServiceGroupType serviceType) const noexcept |
| Check if the given service type is allowed on the extra charged network. | |
| int | getOnlineServiceRestriction (EServiceGroupType svc) const noexcept |
| Get online service restrictions. | |
| int | getTopicNotificationsServiceRestriction () const noexcept |
| Get topic notifications service restrictions. | |
| TransferStatisticsRef | getTransferStatistics (EServiceGroupType serviceType) |
| Get transfer statistics using extra charge network, for the given service type. | |
| Language | getLanguage () const noexcept |
| Get the API language. | |
| Language | getBestLanguageMatch (const String &languageCode, const String ®ionCode=String(), const String &scriptCode=String(), int variant=0) const noexcept |
| Find the best language match for the provided input(language code,
region code, variant and script code). | |
| LanguageList | getLanguageList () const noexcept |
| Get the API language list. | |
| SdkSettings & | setLanguage (const Language &language) noexcept |
| Set the API language. | |
| SdkSettings & | setLanguageByName (const String &languageName) noexcept |
| Set the API language. | |
| SdkSettings & | setLanguage (const String &languageCode, const String ®ionCode=String(), const String &scriptCode=String(), int variant=0) noexcept |
| Set the API language based on language ISO. | |
| EMapLanguage | getMapLanguage () const noexcept |
| Get the current setting for the map language selection. | |
| SdkSettings & | setMapLanguage (EMapLanguage mapLanguage) noexcept |
| Set the map language selection method. | |
| Voice | getVoice () const noexcept |
| Get the voice. | |
| VoiceList | getBestVoiceMatch (const String &languageCode, const String ®ionCode) const noexcept |
| Find the best voice match for the provided input (language code, region code). | |
| SdkSettings & | setNetworkProvider (NetworkProvider networkProvider) noexcept |
| Set the network service provider. | |
| SdkSettings & | setTilesMaxSpace (int maxSpace) noexcept |
| Set maximum cache size/storage space to use for downloaded tiles in kilobytes (Kb). | |
| int | getTilesMaxSpace () const noexcept |
| Get maximum storage space/cache size to use for downloaded tiles in kilobytes (Kb). | |
| SdkSettings & | setApplicationName (const String &name) noexcept |
| Set application name. | |
| const StringRef | getApplicationName () const noexcept |
| Get application name. | |
| SdkSettings & | setApplicationVersion (int version, int subVersion, int revision) noexcept |
| Set application version. | |
| std::tuple< int, int, int > | getApplicationVersion () const noexcept |
| Get application version 0 -> version, 1 -> subVersion, 2 -> revision. | |
| SdkSettings & | setDeviceName (const String &deviceName) noexcept |
| Set the device name. | |
| const StringRef | getDeviceName () const noexcept |
| Get the device name. | |
| SdkSettings & | setDeviceModel (const String &deviceModel) noexcept |
| Set the device model. | |
| const StringRef | getDeviceModel () const noexcept |
| Get the device model. | |
| SdkSettings & | setVoiceByPath (const String &filePath, const Language &lang=Language()) noexcept |
| Set the current voice by specifying the path to the voice file. | |
| SdkSettings & | setVoice (const Voice &voice, const Language &lang=Language()) noexcept |
| Set the current voice. | |
| NetworkProvider | getNetworkProvider () noexcept |
| Get the network service provider. | |
| SdkSettings & | setAppAuthorization (const String &token) noexcept |
| Set the application authorization API token. | |
| String | getAppAuthorization () const noexcept |
| Get the application authorization API token. | |
| void | verifyAppAuthorization (const String &token, ProgressListener listener) const noexcept |
| Verify an app token. | |
| int | getStripeDonateSession (String &session, double amount, const String ¤cy, ProgressListener listener, bool dryRun=false) const noexcept |
| Get Stripe secret for a donate session creation. | |
| int | getStripePublicKey (String &session, ProgressListener listener, bool dryRun=false) const noexcept |
| Get Stripe public key. | |
| ETheme | getTheme () const noexcept |
| Get the images & texts render theme. | |
| ETheme | getActualTheme () const noexcept |
| Get the actual images & texts render theme. | |
| void | setTheme (ETheme sel) noexcept |
| Set images & texts render theme. | |
SdkSettings object.
Manages the settings regarding units, localization, network connection, tile space policy.
Implements share read/write Api object over ISdkSettings.
This behaves like a singleton, i.e. all instances are shared behind the same API interface
|
inlinenoexcept |
Get the actual images & texts render theme.
This will return the actual used theme ( THEME_Dark / THEME_Light ) when SDK theme was set to THEME_Automatic
|
inlinenoexcept |
Check if the connection is allowed or not.
|
inlinenoexcept |
Check if the given service type is allowed on the extra charged network.
| serviceType | The service type |
|
inlinenoexcept |
Get the application authorization API token.
Return empty if no valid authorization API token is used
|
inlinenoexcept |
Get application name.
|
inlinenoexcept |
Get application version 0 -> version, 1 -> subVersion, 2 -> revision.
|
inlinenoexcept |
Find the best language match for the provided input(language code, region code, variant and script code).
| [in] | languageCode | ISO 639-3 three-letter language code. |
| [in] | regionCode | ISO 3166-1_3 three-letter region code, can be empty |
| [in] | scriptCode | ISO 15924 four-letter script code, can be empty |
| [in] | variant | script variant( |
|
inlinenoexcept |
Find the best voice match for the provided input (language code, region code).
| [in] | languageCode | ISO 639-3 three letters language code. |
| [in] | regionCode | ISO 3166-1 alpha 3 region code, can be empty |
|
inlinenoexcept |
Get the current decimal separator.
|
inlinenoexcept |
Get the device model.
|
inlinenoexcept |
Get the device name.
|
inlinenoexcept |
Get the current digit group separator.
|
inlinenoexcept |
Get the API language.
|
inlinenoexcept |
Get the API language list.
|
inlinenoexcept |
Get the current setting for the map language selection.
|
inlinenoexcept |
Get the network service provider.
The network service provider interface enables the API client to customize the network access. If this is set then the SDK will use it for network access.
|
inlinenoexcept |
Get online service restrictions.
| svc | The service group id |
|
inlinenoexcept |
Get Stripe secret for a donate session creation.
| [out] | session | String where to return the Stripe pay session secret |
| [in] | amount | Amount of currency sent. If a too small value is provided, the server will return error:;KInvalidValue |
| [in] | currency | The currency of the amount value, e.g. "eur" for Euro |
| [in] | listener | Operation progress listener |
| [in] | dryRun | Enables a dry run call for testing |
Get stripe secret for donate operation. The secret is
|
inlinenoexcept |
Get Stripe public key.
| [in] | listener | Operation progress listener |
| [out] | session | If the function succeeds, the Stripe session secret. If fails, the error code |
| [in] | dryRun | Enables a dry run call for testing |
Get public key for stripe initialization
|
inlinenoexcept |
Get the images & texts render theme.
Default is THEME_Automatic
|
inlinenoexcept |
Get maximum storage space/cache size to use for downloaded tiles in kilobytes (Kb).
|
inlinenoexcept |
Get topic notifications service restrictions.
|
inline |
Get transfer statistics using extra charge network, for the given service type.
| serviceType | The service type |
|
inlinenoexcept |
Get the unit system used by the SDK.
|
inlinenoexcept |
Get the voice.
|
default |
Default move assignment noexcept is deduced.
| sdksettings | SdkSettings object to move |
|
inlinenoexcept |
Allow/deny internet connection.
| allow | Allow/deny value. |
| listener | Offboard listener that will get notifications regarding connection changes. |
|
inlinenoexcept |
Allow the given service type on the extra charged network type By default all are allowed.
| serviceType | The service type |
| allow | Allow/deny value |
|
inlinenoexcept |
Set the application authorization API token.
The HTTP services are available through this API token
| token | Token. |
|
inlinenoexcept |
Set application name.
| [in] | name | The application name |
|
inlinenoexcept |
Set application version.
| [in] | version | The application version |
| [in] | subVersion | The application sub version |
| [in] | revision | The application revision |
|
inlinenoexcept |
Set a custom decimal separator.
| sep | The decimal separator |
|
inlinenoexcept |
Set the device model.
| [in] | deviceModel | The device model. |
|
inlinenoexcept |
Set the device name.
| [in] | deviceName | The device name. |
|
inlinenoexcept |
Set a custom digit group separator.
| sep | The digit group separator |
|
inlinenoexcept |
Set the API language.
| [in] | language | The selected language from the SDK list |
|
inlinenoexcept |
Set the API language based on language ISO.
| [in] | languageCode | ISO 639-3 three-letter language code. |
| [in] | regionCode | ISO 3166-1_3 three-letter region code, can be empty |
| [in] | scriptCode | ISO 15924 four-letter script code, can be empty |
| [in] | variant | script variant( |
|
inlinenoexcept |
Set the API language.
| [in] | languageName | The selected language name, see Language::getName for details |
|
inlinenoexcept |
Set the map language selection method.
| [in] | mapLanguage | Language type |
|
inlinenoexcept |
Set the network service provider.
| networkProvider | Network provider. |
The network service provider interface enables the API client to customize the network access. If this is set then the SDK will use it for network access.
|
inlinenoexcept |
Set images & texts render theme.
| [in] | sel | The selected theme |
|
inlinenoexcept |
Set maximum cache size/storage space to use for downloaded tiles in kilobytes (Kb).
| maxSpace | Size in Kb. If maxSpace is 0 there are no restriction for tiles space |
|
inlinenoexcept |
Set the unit system to be used by the SDK.
This setting will affect the text of the route / navigation instructions and the voice instructions.
| unitSystem | The unit system to be used. |
|
inlinenoexcept |
Set the current voice.
| [in] | voice | The voice object. |
| [in] | lang | The desired voice language. Used only in the case of TTS voice for accurate match in the underlying OS support |
|
inlinenoexcept |
Set the current voice by specifying the path to the voice file.
The voice can be chosen from a VoiceList provided by getBestVoiceMatch method.
| [in] | filePath | The voice file path. See Voice::getFileName for details. |
| [in] | lang | The desired voice language. Used only in the case of TTS voice for accurate match in the underlying OS support |
|
inlinenoexcept |
Verify an app token.
| [in] | token | Token to be verified |
| [in] | listener | Operation progress listener |
Error codes come through progress listener on notifyComplete KInvalidInput if token format is invalid ( i.e. not a jwt token ) KExpired if token is expired KAccessDenied if token is blacklisted ( i.e. token jti or aud is blacklisted ) All other error codes are related to the validation process and should not be related to token validity ( e.g. KConnectionRequired, etc )