JsonConfigBuilder

class JsonConfigBuilder @JvmOverloads constructor(jsonConfig: String?)

Builder class for creating json configuration String used to initialize SygicEngine.

Constructors

JsonConfigBuilder
Link copied to clipboard
fun JsonConfigBuilder(jsonConfig: String? = null)

Optional jsonConfig can be used to populate the JsonConfigBuilder with data in the provided json string.

Functions

addLoggingItem
Link copied to clipboard
audio
Link copied to clipboard
fun audio(): Audio.Builder
fun audio(audioBuild: Audio.Builder.() -> Unit)
authentication
Link copied to clipboard
fun authentication(appKey: String, appSecret: String? = null): SygicEngine.JsonConfigBuilder

Adds Authentication section to the json config. appKey is mandatory. Any previous Authentication section (i.e. added from initial json config) will be replaced.

build
Link copied to clipboard
fun build(): String

Builds json config String.

isOnServer
Link copied to clipboard
fun isOnServer(isOnServer: Boolean): SygicEngine.JsonConfigBuilder
license
Link copied to clipboard
fun license(licenseKey: String): SygicEngine.JsonConfigBuilder
logging
Link copied to clipboard
fun logging(loggingBuild: LoggingSettings.Builder.() -> Unit)
mapReaderSettings
Link copied to clipboard
fun mapReaderSettings(): MapReaderSettings.Builder
fun mapReaderSettings(mapReaderSettingsBuild: MapReaderSettings.Builder.() -> Unit)
mapSettings
Link copied to clipboard
fun mapSettings(): MapSettings.Builder
fun mapSettings(mapBuild: MapSettings.Builder.() -> Unit)
navigation
Link copied to clipboard
fun navigation(): Navigation.Builder
fun navigation(navigationBuild: Navigation.Builder.() -> Unit)
online
Link copied to clipboard
fun online(): Online.Builder
fun online(onlineBuild: Online.Builder.() -> Unit)
positionSettings
Link copied to clipboard
fun positionSettings(): PositionSettings.Builder
fun positionSettings(positionBuild: PositionSettings.Builder.() -> Unit)
routing
Link copied to clipboard
fun routing(): Routing.Builder
fun routing(routingBuild: Routing.Builder.() -> Unit)
storageFolders
Link copied to clipboard
fun storageFolders(): StorageFolders.Builder
fun storageFolders(storageFoldersBuild: StorageFolders.Builder.() -> Unit)