How To Use Android’s Preferences DataStore With Helper Functions
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.