init

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.

Since

2.2.0 Added licenseKey parameter.

Parameters

applicationContext

the application context

purchaseUUID

the BeNomad purchase UUID of your command

licenseKey

(Optional) Force activation with this license key. If the key not available init will fail and an error will be returned.

mapsDeploymentPath

the path where the maps will be deployed (if they are already deployed, specify the absolute path to the folder)

resourcesPathInAssets

the relative path to the resources folder that must be in the assets folder of the application

mapsPathInAssets

the relative path to the maps folder that must be in the assets folder of the application

callback

the callback to get the initialization result. You can add other observers using addOnCoreInitObserver.