Debug settings
It is possible to configure the content of Debug settings screen in the UX Framework. By default all debug items are invisible.
There are 3 available options that can be visible:
showDisplaySendDebugInfoButtonOption- enablesDisplay Send Debug Info Buttonsetting option.showSimulateLocationOption- enablesSimulate Locationsetting option.showElectricOptionsItem- enablesElectric optionssetting option. Note that alsoVehicleTypeshould beElectric.
Dash.init(
applicationContext = applicationContext,
accessToken = getString(R.string.mapbox_access_token)
) {
debugSettings {
showSimulateLocationOption = true
showDisplaySendDebugInfoButtonOption = true
showElectricOptionsItem = true
}
}
Send Debug Info Button visibility on the map can be also toggled with
Dash.init(
applicationContext = applicationContext,
accessToken = getString(R.string.mapbox_access_token)
) {
debugSettings {
showSendDebugInfoButton = true
}
}
この{Type}は役に立ちましたか?