All About Proto DataStore
In this post, we will learn about Proto DataStore, one of two DataStore implementations. We will discuss how to create it, read and write data and how to handle exceptions, to better understand the scenarios that make Proto a great choice. Proto DataStore uses typed objects backed by Protocol Buffers, to store smaller datasets while providing type safety. It removes the need for using key-value pairs, making it structurally different from its SharedPreferences predecessor and its sibling implementation, Preferences DataStore. However, that’s not all — DataStore brings many other improvements over SharedPreferences. Feel free to quickly jump back to our first post in the series and take a look at the detailed comparison we’ve made there.…
Share