Tech Takeaways
Published in

Tech Takeaways

How To Use ViewModels Delegate With Constructor Parameters and Koin Dependency Injection

Save unnecessary code for loading data with bundle arguments.

Photo by Francesco Ungaro from Pexels

The Kotlin viewModels delegate lets us initialize our ViewModel in our Android app’s activities or fragments with no effort.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store