getInstance

fun getInstance(appContext: Context? = null, audioFilesBasePath: String? = null, navigationIconPath: String? = null): Navigation

Gets the singleton instance of the Navigation and initializes the engine when appContext is passed.

Parameters

appContext

the application context needed to initialize audio manager, paths and retrieve default parameters from settings

audioFilesBasePath

the base path to the audio files. Works with audioFilesFolderRelativePath. If not specified (null), default value will be used with Core.getInstance().getExternalScopedStoragePath()

navigationIconPath

the absolute path to the icon path used for vehicle icon during navigation. If not specified (null), default value will be used with Core.getInstance().getExternalScopedStoragePath() and navigation_icon_default_name res.