Android Architecture Components - A Deep Dive
Lifecycle: Behind the scenes
Autoplay
Up next
Previous
About
Lifecycle
is a class that holds the information about the lifecycle state of a component (like an activity or fragment) and allows other objects to observe this state.
It has 2 main enums to track the lifecycle status:
- Events - They are the lifecycle events dispatched from the Android Framework like onCreate, onPause, etc.
- States - The current state of the component and how they are marked as our Activity or Fragment moves between events.
In this lesson, we will go behind the scenes and understand
- What Events and States ar
- How to observe events
- Order of how lifecycle events are observed
Instructor
Links
Comments
Lessons in Android Architecture Components - A Deep Dive
Introduction to Architecture Components
01:38
Why We Need a Lifecycle Component

01:25
Diving into the Lifecycle Component

02:27
Observing music playback using a LifecycleObserver

02:21
Lifecycle: Behind the scenes

01:41
Why We Need a ViewModel component

Pro
00:52
What is a ViewModel?

Pro
03:00
Working with a ViewModel and a RecyclerView

Pro
01:15
ViewModel - Behind the scenes

Pro
00:42
What is the AndroidViewModel

Pro
01:41
ViewModel vs onSaveInstanceState

Pro
01:01
What is LiveData

Pro
01:54
Observing changes in RecyclerView with LiveData

Pro
02:19
LiveData - Behind the scenes

Pro
00:39
Extending LiveData

Pro
03:22
Transformations with LiveData

Pro
03:30
Transformations with MediatorLiveData

Pro
02:38
LiveData with Retrofit

Pro
02:05
Architecture Guidelines

Pro
03:49

Something went wrong
Lesson added to playlist
Create new playlist
Name can't be empty