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)
)

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)

See also

Constructors

Link copied to clipboard
constructor(key: String, displayLabel: String, currentValue: Boolean)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val key: String