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, how to migrate easily and cover the basics of data storage - reading, writing, and error handling. Finally, we will see how to use it along with Kotlin coroutines and Flow to store data asynchronously, consistently, and transactionally.
Bio
Simona Stojanovic works at Google as an Android Developer Relations Engineer, splitting her time between Architecture Components (DataStore) and Jetpack Compose. Before joining Google, Simona worked as an Android Dev in a variety of different industries - retail, transportation, banking, automotive & online dating. Aside from work, she loves to travel, read, organize stuff (😬), play video games and spend time with her 4 fluffy pets.
/ anomissi
This talk is part of our DevFest Inspire event! #DevFestInspire
DevFest Inspire is a virtual event celebrating the end of the DevFest 2021 season where we’ll recognize content created by the community, as well as Googlers from Europe and Africa.
You can also network and connect with other developers during the event!
→ Learn more and sign up at goo.gle/devfest-inspire !
→ Check more events and content: gdg.community.dev/events/#/list
Негізгі бет Ойын-сауық Simona Stojanovic - DataStore - The Preferred Way To Store Data
Пікірлер: 2