Hi, want to share my newly create library - <https...
# android
j
Hi, want to share my newly create library - https://github.com/Jintin/PreferencesExtension It's pure Kotlin and use lot's of Kotlin feature to support better usage and livedata style of onChangeListener so we don't have to worry about when to register and unregister:
Copy code
val value2 = preference.get<String>(MY_KEY)
val value3: String = preference.get(MY_KEY)
Copy code
val preferenceLiveData = preference.liveData<String>(MY_KEY)

preferenceLiveData.observe(this) {
    // get update here
}
Hope you'll enjoy it, let me know if there's any feedback. Thanks.