Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

License Information Initialized when the core is ready

Link copied to clipboard

Maps loading / unloading operations Initialized when the core is ready

Functions

Link copied to clipboard
open override fun addOnCoreInitObserver(observer: OnCoreInitCallback)
Link copied to clipboard
Link copied to clipboard

Add observers to be notified when a licensing error occurred.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Add observers to be notified when the license offline period has expired.

Link copied to clipboard

This method cancels any pending map download operations when working with hybrid maps

Link copied to clipboard
fun downloadAvailableUpdate(downloadAccepted: Boolean)

Starts the download of the maps update. Only call this method after OnMapUpdateAvailableCallback.onMapUpdateAvailable is triggered (use addOnMapUpdateAvailableObserver) To get the download progress of the update, subscribe to OnMapDownloadProgressCallback (use addOnMapDownloadProgressObserver) You can also be notified when the download has finished by subscribing to OnMapDownloadedCallback (use addOnMapDownloadedObserver)

Link copied to clipboard

Gets the default relative path in assets to the maps folder

Link copied to clipboard

Gets the default relative path in assets to the resources folder

Link copied to clipboard
fun getDefaultMapsPath(applicationContext: Context, useSdCard: Boolean = false): String

Gets the default path to the deployed maps folder

Link copied to clipboard
fun getExternalScopedStoragePath(applicationContext: Context): String

Gets the path from the scoped storage to access persistent files on the primary external storage volume

Link copied to clipboard
fun getVersioningInfoAsJson(applicationContext: Context): String

Returns versioning info from created versioning file

Link copied to clipboard
fun init(applicationContext: Context, purchaseUUID: String?, licenseKey: String? = null, mapsDeploymentPath: String = getDefaultMapsPath(applicationContext), resourcesPathInAssets: String? = ResourcesHandler.defaultAssetsResourcesFolderName, mapsPathInAssets: String? = ResourcesHandler.defaultAssetMapsFolderName, callback: OnCoreInitCallback)

Initializes the Core This is mandatory to use modules that depends on it. It'll download/load the license and the map data and return once all is finished or an error occurred. The progress can be retrieved by adding an observer with addOnInitProgressObserver. When it's finished, all observers set with addOnCoreInitObserver will be notified.

Link copied to clipboard

Returns true if the Core has been successfully initialized.

Link copied to clipboard

After receiving the OnCoreReady notification, this method returns true if hybrid maps are used (vs full maps).

Link copied to clipboard
fun loadFullMapsInArea(area: GeoRect, asyncMode: Boolean = false): Error?

After receiving the OnCoreReady notification (and if you are using hybrid maps), you can use this method to force the download of full maps within a given area (if area's maps has partial files).

Link copied to clipboard
fun loadFullMapsInCountry(countryCode: String, asyncMode: Boolean = false): Error?

After receiving the OnCoreReady notification (and if you are using hybrid maps), you can use this method to force the download of full maps within a given country (if country's maps has partial files).

Link copied to clipboard

Gets the current map geoscale

Link copied to clipboard
open override fun removeOnCoreInitObserver(observer: OnCoreInitCallback)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard