10 ViewModel and LiveData | Separation of Concerns | Android App Development in Kotlin
Автор: Education is Life (joed goh)
Загружено: 2021-04-07
Просмотров: 5353
In this video, Joed Goh explains the basic principle on how to organize your code and properly structure your android apps. This is commonly known as separation of concerns. This video covers the discussion of Lifecycle Observer, View Model, Live Data, and Companion Object.
***NOTE:
if your code in line 23 at 15:30 doesn't work, you can explicitly type the Observer lambda expression like this:
viewModel.message.observe(this, Observer{
// your code here...
})
----------------------------------------------------------------------------------
TABLE OF CONTENTS:
00:00 Introduction
02:10 Lifecycle Observer
09:10 View Model
12:30 Mutable Live Data
18:55 Live Data
25:05 Helper Class - Companion Object
27:46 Programming Challenge
----------------------------------------------------------------------------------
References:
https://developer.android.com/jetpack...
https://developer.android.com/topic/l...
PLAYLISTS:
Android App Development in Kotlin
• Android App Development in Kotlin
Designing Database Solutions with Microsoft SQL Server 2019
• Designing Database Solutions with Microsof...
Embedded Systems using Arduino Uno
• Embedded Systems using Arduino Uno
Data Structures and Algorithms using C#
• Data Structures and Algorithms
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: