SdkSettings

SdkSettings object

Properties

Link copied to clipboard

Address of native referenced object. nullptr if not referencing any native allocated object. Note native allocation will happen only once.

Link copied to clipboard

Checks if the connection is allowed or not.

Link copied to clipboard

The application authorization API token The HTTP services are available through this API token Returns empty if no valid authorization API token is used

Link copied to clipboard

Application name

Link copied to clipboard

Decimal separator.

Link copied to clipboard

The device model.

Link copied to clipboard

The device name.

Link copied to clipboard

Digit group separator

Link copied to clipboard

True if worldwideRoadMapSupportStatus is EOffboardListenerStatus.UpToDate else false.

Link copied to clipboard

Verifies that application resources update is allowed. Returning true will allow the SDK to download and prepare the latest resources. Will be called on SdkCall

Link copied to clipboard

API language. Value should be selected from getLanguageList().

Link copied to clipboard

Gets the API language list.

Link copied to clipboard

The current setting for the map language selection.

Link copied to clipboard

The network service provider. The network service provider interface enables the API client to customize the network access. If this is set then the Magic Earth Engine will use it for network access.

Link copied to clipboard

Notifies that current API token was rejected Please check the API token availability or contact the MagicLane support

Link copied to clipboard

Notifies that current API token was updated This notifications will be available only for tokens updated internally via MagicEarth services

Link copied to clipboard
var onConnected: () -> Unit

Notifies that the connection status changed. param connected Boolean Tells if the connection to the online services is established.

Link copied to clipboard

Notifies that the connection status changed. param connected Boolean Tells if the connection to the online services is established.

Link copied to clipboard
var onMapDataReady: (isReady: Boolean) -> Unit

Notifies that the map data is ready to be used.

Link copied to clipboard

Notifies that offboard caches changed size cache size is provided in KB

Link copied to clipboard

Notifies that the application resources are ready to be deployed

Link copied to clipboard

Notifies that the world map online support is disabled Tiling, routing, traffic online support is disabled param reason EOffboardListenerReason - the reason

Link copied to clipboard

Notifies that world map online support is enabled Tiling, routing, traffic online support is enabled

Link copied to clipboard

Notifies about world map data online state param state EOffboardListenerStatus - status code

Notifies that current SDK doesn't support all world map online capabilities SDK can use the latest online world map version but the new map capabilities are disabled

Link copied to clipboard

Notifies that world map version was updated

Link copied to clipboard

Set maximum space to download tiles in Kb If maxSpace is 0 there are no restriction for tiles space

Link copied to clipboard

The unit system used by the Magic Earth Engine. This setting will affect the text of the route / navigation instructions and the voice instructions.

Link copied to clipboard
var voice: Voice?

Current voice.

Functions

Link copied to clipboard
fun finalize()

Overrides finalize that garbage collector will call when needed.

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

Link copied to clipboard

Get application version 0 -> version, 1 -> subVersion, 2 -> revision

Link copied to clipboard
external fun getBestLanguageMatch(lang: String, region: String, script: String, variant: Int = 0): Language?

Finds the best language match for the provided input(language code, region code, variant and script code).

Link copied to clipboard
external fun getBestVoiceMatch(lang: String, region: String): ArrayList<Voice>?

Finds the best voice match for the provided input( language code, region code)

Link copied to clipboard

Get transfer statistics for given service type

Link copied to clipboard

Returns true if the network is connected. Note: this should be used only if null listener had been provided to setAllowConnection.

Link copied to clipboard

True if keeps a reference to a C++ SDK object False if keeps a C++ SDK object

Link copied to clipboard
operator fun not(): Boolean

Checks if this object is valid.

Link copied to clipboard
fun release()

Releases the native referenced value of this object if:

Link copied to clipboard
fun setAllowAutoMapUpdate(value: Boolean, allowChargeNetwork: Boolean = true, roadMapAutoUpdateListener: ProgressListener? = null)

Allow auto map updates setting.

Link copied to clipboard

Allow/deny internet connection.

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

Link copied to clipboard
external fun setApplicationVersion(version: Int, subVersion: Int, revision: Int)

Set application version

Link copied to clipboard
external fun setLanguageAsString(languageName: String)

Sets the API language

Link copied to clipboard
external fun setLanguageBasedOnIsoCodes(lang: String, region: String, script: String, variant: Int = 0)

Sets the API language based on language ISO

Link copied to clipboard
external fun setVoiceByPath(filepath: String)

Sets the current voice by specifying the path to the voice file. The voice can be chosen from a voice list provided by SdkSettings.getBestVoiceMatch methods.

Link copied to clipboard
external fun verifyAppAuthorization(token: String, listener: ProgressListener)

Verifies an app token