Android MvRx Fundamentals
Integrate with Dependency Injection
Autoplay
Up next
Previous
About
MvRx makes it easy to inject dependencies into your ViewModels as constructor arguments. As we will see later, doing constructor injection will also make them easy to test. This lesson will set up a simple example UserRepository singleton and inject it into a MvRxViewModel.
Instructor
Links
Comments
Lessons in Android MvRx Fundamentals
Introduction to MvRx
02:13
Set up Your Project for MvRx

00:26
Create Your Base MvRx ViewModel

00:59
Create Your First MvRxViewModel

01:30
Make Your ViewModel Survive Configuration Changes

Pro
01:42
Update State with setState

Pro
01:54
Easily Execute Asynchronous Actions

Pro
03:06
Subscribe to State Changes Manually

Pro
02:22
Share ViewModels Across Fragments

Pro
01:54
MvRx Is Lifecycle Aware

Pro
00:45
Persist State Across Process Restoration

Pro
02:02
Debug Mode Safety Checks

Pro
01:45
Simplify State With Derived Properties

Pro
02:06
Initialize Your State Properties

Pro
03:50
Initialize State With Fragment Arguments

Pro
02:07
Integrate with Dependency Injection

Pro
03:33
Dependency Injection with Dagger

Pro
02:49
MvRx Threading Model

Pro
02:16
Test State Classes

Pro
02:09
Test ViewModels

Pro
03:06

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