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