Android Tutorial 2019 #12: Simple Dependency Injection, AndroidViewModel, ViewModelProvider.Factory

Опубликовано: 11 Октябрь 2024
на канале: Ryan Michael Kay
4,257
71

In this video, I demonstrate a super easy and simple way to write your Dependency Injection Implementation which does not require Dagger 2. Using AndroidViewModel, you can write a Dependency Injection Container is a few lines of code.

Master OOP languages with tutorials from someone who actually cares if you understand how to write beautiful code:
Java Desktop Programming w/ JavaFX (Intermediate) - https://skl.sh/31pzCa1
Complete Beginner Introduction To Java Programming (Beginner - Intermediate) - https://skl.sh/3fZbjos
Android Apps With Kotlin & Android Studio (Beginner) - https://skl.sh/2ZU6ZT9
Material Design Android Programming w/ Kotlin (Intermediate) - https://skl.sh/2OrwrYZ

All the above courses are available for 2.99 a month via a youtube subscription to this channel too!

  / rkay301  
  / wiseassblog  
  / wiseass301  
rkay301.medium.com/follow