obj
inline fun <T> SharedPreferences.obj(crossinline key: (KProperty<*>) -> String = KProperty<*>::name): ReadWriteProperty<Any, T?>
Use sharedPreferences.obj( key = { "MY_KEY" } )
Receiver
SharedPreferences
Return
ReadWriteProperty
Parameters
key
Function1