Skip to content

Latest commit

 

History

History

DataStoreSample

Data storage with DataStore

Android sample app to learn how to use Jetpack DataStore to store key-value pairs, instead of relying on SharedPreferences, as welll as typed objects with protocol buffers.

data-store-sample

The sample mainly showcases:

  • Creating, observing from and writing to a preferences dataStore.
  • Creating, observing from and writing to a proto dataStore.
  • Defining a schema in a proto file for an object that is stored in a proto dataSotre.
  • Using DataStore in a synchronous manner.

Resources to learn about Jetpack's DataStore