Загрузка страницы

Preferences DataStore - Forget about SharedPreferences | Android Studio Tutorial

Welcome, Jetpack DataStore, now in alpha - a new and improved data storage solution aimed at replacing SharedPreferences. Built on Kotlin coroutines and Flow, DataStore provides two different implementations: Proto DataStore, that lets you store typed objects (backed by protocol buffers) and Preferences DataStore, that stores key-value pairs. Data is stored asynchronously, consistently, and transactionally, overcoming most of the drawbacks of SharedPreferences.

In this video we are going to focus on "Preferences DataStore" and in some of the next videos we are going to cover Proto DataStore as well. Enjoy!

Source code: https://gist.github.com/stevdza-san/fa01bb5159cdb50142d48bed8df7ed58
Timestamps:
0:00 - Introduction
1:44 - Create Repository
6:16 - Create ViewModel
7:43 - Handle DataStore in Activity
🏆 My Courses:
(GET 2 MONTHS MEMBERSHIP FOR FREE)
https://www.skillshare.com/r/user/stevdza-san
OR
https://www.udemy.com/user/432ccf97-0b71-49ed-bb6f-2fe606116148/

Видео Preferences DataStore - Forget about SharedPreferences | Android Studio Tutorial канала Stevdza-San
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
12 сентября 2020 г. 10:43:51
00:09:56
Яндекс.Метрика