Sharing my preference for DataStore

Florina Muntenescu

Android Developer Advocate

Google

DataStore is a new and improved data storage solution, replacing SharedPreferences. Built on Kotlin coroutines and Flow, DataStore provides two different implementations: Proto DataStore, that stores typed objects (backed by protocol buffers) and Preferences DataStore, that stores key-value pairs.
In this talk you’ll see what DataStore offers over SharedPreferences, like being notified when data changes via Flow, UI thread safety, error signaling and more, when you should use it, how to adopt it or migrate from SharedPreferences. We’ll also sneak peeks at the implementation to better understand how the API works.

Florina is working as an Android Developer Advocate at Google, helping developers architect clean, testable apps using the Architecture Components libraries. She has been working with Android for 8 years, previous work covering news at upday, payment solutions at payleven and navigation services at Garmin.

droidcon EMEA is produced by:

Mobile Seasons GmbH (droidcon Global HQ)

Messedamm 22

14055, Berlin

Germany

.droidcon is a registered Trademark of Mobile Seasons GmbH

  • dc-social
  • Twitter - White Circle
  • Facebook - White Circle