Jetpack DataStore in Android Explainedby@timofeykrestyanov
1,954 reads
1,954 reads

Jetpack DataStore in Android Explained

by Timofey Krestyanov7mMay 24th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Jetpack DataStore is a data storage solution that allows you to store key/value pairs or protocol buffers to store typed objects. All operations on DataStore are safe and performant. It is built on Kotlin and Flow coroutines, so all transactions are asynchronous. The DataStore exposes stored data in the Preferences object. The preferences will be stored in a file in the "datastore/" subdirectory in the application context's files directory and is generated using preferencesDataStoreFile. Add a catch block to handle errors.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail

Coin Mentioned

Mention Thumbnail
featured image - Jetpack DataStore in Android Explained
Timofey Krestyanov HackerNoon profile picture
Timofey Krestyanov

Timofey Krestyanov

@timofeykrestyanov

I'm 5+ years of experience in building Mobile apps developer, I have worked on Android, and iOS projects

Learn More
LEARN MORE ABOUT @TIMOFEYKRESTYANOV'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Timofey Krestyanov HackerNoon profile picture
Timofey Krestyanov@timofeykrestyanov
I'm 5+ years of experience in building Mobile apps developer, I have worked on Android, and iOS projects

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite