@magiclane/maps-sdk
    Preparing search index...

    Class SdkSettings

    Index

    Constructors

    Accessors

    • get actualAppTheme(): AppTheme

      Get the actual images & texts render theme This will return the actual used theme (dark/light) when SDK theme was set to automatic

      Returns AppTheme

      The app theme

      An exception if it fails.

    • get allowConnection(): boolean

      Returns boolean

    • get appAuthorization(): string

      Returns string

    • set appAuthorization(token: string): void

      Parameters

      • token: string

      Returns void

    • get applicationName(): string

      Returns string

    • set applicationName(name: string): void

      Parameters

      • name: string

      Returns void

    • get appTheme(): AppTheme

      Returns AppTheme

    • set appTheme(theme: AppTheme): void

      Parameters

      Returns void

    • get capabilities(): Set<SdkCapability>

      Get the set of SdkCapability for the current build.

      Returns Set<SdkCapability>

      The features available for the current release

      An exception if it fails.

    • get decimalSeparator(): string

      Returns string

    • set decimalSeparator(separator: string): void

      Parameters

      • separator: string

      Returns void

    • get deviceModel(): string

      Get device model.

      Returns string

      The device model

      An exception if it fails.

    • set deviceModel(model: string): void

      Set device model.

      Parameters

      • model: string

        The device model.

      Returns void

      An exception if it fails.

    • get deviceName(): string

      Returns string

    • set deviceName(name: string): void

      Parameters

      • name: string

      Returns void

    • get digitGroupSeparator(): string

      Returns string

    • set digitGroupSeparator(separator: string): void

      Parameters

      • separator: string

      Returns void

    • get isCurrentThreadMainThread(): boolean

      Check if the current thread is the main thread.

      Returns boolean

      true if the current thread is the main thread, false otherwise

      An exception if it fails.

    • get isSDkInitialized(): boolean

      Returns boolean

    • get language(): Language

      Get the API language.

      Returns Language

      Language object

      An exception if it fails.

    • set language(language: Language): void

      Set the API language.

      Parameters

      • language: Language

        The selected language from the SDK list

      Returns void

      An exception if it fails.

    • get languageList(): Language[]

      Get the API language list.

      Returns Language[]

      The languages list

      An exception if it fails.

    • get sdkVersion(): string

      Get SDK version '0.1.2' 0 -> version, 1 -> subVersion, 2 -> revision The revision is unsigned hexadecimal

      Returns string

      The sdk version as String

      An exception if it fails.

    • get tilesMaxSpace(): number

      Get maximum storage space/cache size to use for downloaded tiles in kilobytes (Kb).

      Returns number

      Size in Kb

      An exception if it fails.

    • set tilesMaxSpace(maxSpace: number): void

      Set maximum cache size/storage space to use for downloaded tiles in kilobytes (Kb).

      Parameters

      • maxSpace: number

        Size in Kb. If maxSpace is 0 there are no restrictions for tiles space.

      Returns void

      An exception if it fails.

    • get transferStatistics(): TransferStatistics

      Get the transfer statistics

      Returns TransferStatistics

      The transfer statistics

      An exception if it fails.

    • get unitSystem(): UnitSystem

      Returns UnitSystem

    • set unitSystem(unitSystem: UnitSystem): void

      Parameters

      Returns void

    Methods

    • Forces auto update in respect to the configured AutoUpdateSettings. Might also trigger the OffBoardListener callbacks

      Returns GemError

      GemError.success if the operation could be started

      An exception if it fails.

    • Check if the given service type is allowed on the extra charged network.

      Parameters

      Returns boolean

      True if the service is allowed on the extra charged network, false otherwise

      An exception if it fails.

    • Find the best language match for the provided input.

      Parameters

      • languageCode: string

        ISO 639-3 three-letter language code.

      • regionCode: string = ''

        ISO 3166-1_3 three-letter region code, can be empty.

      • scriptCode: string = ''

        ISO 15924 four-letter script code, can be empty.

      • variant: ScriptVariant = ScriptVariant.Native

        script variant

      Returns Language | null

      Language object if a match is found, otherwise null.

      An exception if it fails.

    • Parameters

      Returns Uint8Array<ArrayBufferLike> | null

    • Get the image by its ID

      Parameters

      • id: number

        The image id

      Returns any

      The image with the given ID. Returns null if no image with the given ID exists

      An exception if it fails.

    • Get the current voice.

      Returns Voice

      The voice

      An exception if it fails.

    • Internal

      The API user should not call this method

      Returns void

    • Allow/deny internet connection.

      Parameters

      • allowInternetConnection: boolean

        Set if the SDK can connect to the internet

      Returns void

      An exception if it fails.

    • Allow the given service type on the extra charged network type. By default all are allowed.

      Parameters

      • serviceType: ServiceGroupType

        ServiceGroupType object containing the service type

      • allow: boolean

        Allow/deny value

      Returns void

      An exception if it fails.

    • Set the SDK version

      Parameters

      • version: number

        The application version

      • subVersion: number

        The application sub version

      • revision: number

        The application revision

      Returns void

      An exception if it fails.

    • Set the current TTS (computer) voice used for text-to-speech instructions. The best voice is selected based on the provided language.

      Parameters

      Returns GemError

      GemError.success on success, otherwise see GemError for other values.

      An exception if it fails.

    • Set the current voice by specifying the absolute path to the voice file.

      Parameters

      • path: string

        The absolute path to the voice file.

      • Optionallanguage: Language

        The desired voice language. Used only in the case of TTS computer voice for accurate match in the underlying OS support

      Returns GemError

      GemError.success on success, otherwise see GemError for other values.

      An exception if it fails.

    • Verifies an app token. Validates the provided token and reports progress through the specified callback.

      Parameters

      • token: string

        The token to be verified. Must be a valid JWT token.

      • callback: (err: GemError) => void

        An operation progress callback that handles the validation process.

      Returns void

      An exception if it fails.