メインコンテンツまでスキップ

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 - enables Display Send Debug Info Button setting option.
  • showSimulateLocationOption - enables Simulate Location setting option.
  • showElectricOptionsItem - enables Electric options setting option. Note that also VehicleType should be Electric.
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}は役に立ちましたか?