CustomSettingDescriptor
data class CustomSettingDescriptor(val key: String, val displayLabel: String, val currentValue: Boolean)
Descriptor for a client-defined custom setting displayed on the AA settings screen.
Used by SettingsProvider.getCustomSettingKeys to describe custom toggle rows that the AA settings screen should display in addition to the built-in AASettingKey entries.
Example
override fun getCustomSettingKeys() = listOf(
CustomSettingDescriptor("eco_mode", "Eco Mode", true),
CustomSettingDescriptor("scenic_route", "Prefer Scenic Routes", false)
)Content copied to clipboard
Parameters
key
Unique identifier for the setting (used in SettingsProvider.updateCustomSetting)
displayLabel
Human-readable label shown in the toggle row
currentValue
Current toggle state (true = enabled)