library / org.akop.kotx.ext.content / android.content.SharedPreferences / setValue

setValue

operator fun <V> SharedPreferences.setValue(thisRef: Any?, property: KProperty<*>, value: V?): Unit

Allows reading of SharedPreferences setting via delegated property.

Note that using the property on any type not supported by SharedPreferences natively will generate an error.

See example in SharedPreferences.getValue.