Skip to content

DataStore-sample. Preferences DataStore Working with Preferences DataStore Codelab. Using Jetpack Compose for UI. Toggle dark mode / light model. StateFlow, Coroutines Flow.

License

Notifications You must be signed in to change notification settings

Kotlin-Android-Open-Source/DataStore-sample

Folders and files

NameName
Last commit message
Last commit date
Oct 10, 2021
Feb 26, 2021
Nov 29, 2021
Dec 22, 2021
Feb 19, 2021
Feb 26, 2021
Feb 26, 2021
Feb 25, 2021
Feb 26, 2021
Feb 19, 2021
Nov 29, 2021
Nov 29, 2021
Jun 25, 2021
Feb 19, 2021

Repository files navigation

DataStore-sample

DataStore-sample

DataStore is a new and improved data storage solution aimed at replacing SharedPreferences. Built on Kotlin coroutines and Flow, DataStore provides two different implementations: Proto DataStore, that lets you store typed objects (backed by protocol buffers) and Preferences DataStore, that stores key-value pairs. Data is stored asynchronously, consistently, and transactionally, overcoming some of the drawbacks of SharedPreferences.