Type: inline
fun
<reified
T>
Create a SharedPreferences property delegate with the provided type argument.
val PREF_THEME by pref<String>()
Parameter Name | Description |
---|---|
key | The preference key. (optional: defaults to property name) |
defaultValue | Default value of the preference. |