init

fun init(applicationContext: Context, purchaseUUID: String?, 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.

Parameters

applicationContext

the application context

purchaseUUID

the BeNomad purchase UUID of your command

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.