Jetpack introduce another data storage solution "Data Store". Now, It is in beta.
It is a data storage solution. It uses Kotlin coroutines and Flow to store data asynchronously, consistently, and transactionally. Just like Shared Preferences, It also allow us to store data in key-value pairs and typed objects with help of protocol buffers.
To get better understanding and coding part, Please go through YouTube link for demo app and GitHub link for coding part: Demo App : https://youtu.be/CbsC-zdBLDI GitHub Link : https://github.com/swatiomar27/PreferencesDataStoreDemo
Happy Coding :)