Preferences
Preference managers
Implementing a new preference
// PreferenceManager2.kt
class PreferenceManger2 ... {
// ...
val examplePref = preference(
key = booleanPreferencesKey(name = "example_pref"),
defaultValue = false,
)
}Reading preference values
Using the adapter system in Compose
Standard preference components
Custom Compose components
Last updated
Was this helpful?
