Replace Android’s SharedPreferences Key-Value store with a safe to use asynchronous API — In one of my last articles, I showed you how you can implement the Proto DataStore in your Android project. How To Use Android’s Proto DataStore With Kotlin Support
Asynchronous type-safe persistence of objects in a key-value store mannermedium.com However, in this article, I will show you how you can implement the second variant, the Preferences DataStore. While the Proto DataStore can be used for persisting whole objects, in…