Home > @magiclane/maps-sdk > SdkSettings
SdkSettings class
Signature:
export declare class SdkSettings Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
| Get the actual images & texts render theme This will return the actual used theme (dark/light) when SDK theme was set to automatic | ||
| boolean | ||
| string | ||
| string | ||
| |||
| Set<SdkCapability> | Get the set of SdkCapability for the current build. | |
| string | ||
| string | Get device model. | |
| string | ||
| string | ||
| boolean | Check if the current thread is the main thread. | |
| boolean | ||
| Get the API language. | ||
| Language[] | Get the API language list. | |
| |||
| Get the offboard listener | ||
| string | Get SDK version '0.1.2' 0 -> version, 1 -> subVersion, 2 -> revision The revision is unsigned hexadecimal | |
| number | Get maximum storage space/cache size to use for downloaded tiles in kilobytes (Kb). | |
| Get the transfer statistics | ||
|
Methods
Method | Modifiers | Description |
|---|---|---|
| Forces auto update in respect to the configured AutoUpdateSettings. Might also trigger the OffBoardListener callbacks | |
| Check if the given service type is allowed on the extra charged network. | |
getBestLanguageMatch(languageCode, regionCode, scriptCode, variant) |
| Find the best language match for the provided input. |
| ||
| ||
| Get the image by its ID | |
| Get online service restrictions. | |
| Get topic notifications service restrictions. | |
| Get the current voice. | |
| Allow/deny internet connection. | |
setAllowOffboardServiceOnExtraChargedNetwork(serviceType, allow) |
| Allow the given service type on the extra charged network type. By default all are allowed. |
| ||
| Set the SDK version | |
| Set the current TTS (computer) voice used for text-to-speech instructions. The best voice is selected based on the provided language. | |
| Set the current voice by specifying the absolute path to the voice file. | |
| Verifies an app token. Validates the provided token and reports progress through the specified callback. |