Dagger 2 Multibinding in Android + MVVM ViewModels - CheezyCode (Hindi) @CheezyCode
Dagger 2 Multibinding in Android + MVVM ViewModels - CheezyCode (Hindi)  @CheezyCode
Uploaded March 2022 | Updated November 2026, 3 hours ago
Learn Android MVVM architecture with Dagger 2 Dependency Injection Framework. In this video, learn about Multibinding in Dagger2. Learn how to use @IntoMap annotation, @StringKey annotation and @ClassKey annotation in Dagger2 with Android MVVM architecture.

ViewModels need ViewModel Factory class to work with ViewModelProvider. To have generalized factory i.e. single factory that can create multiple viewmodel objects can be achieved using Dagger 2 Multibinding feature. Using this, you can produce a map that can help you create different objects based on the key.

@IntoMap defines a map wherein you define the keys using annotations and use that map to produce viewmodels at runtime. Learn how to use Dagger2 while implementing MVVM architecture in Android. Learn all about this in Hindi with simple examples.

Topics covered -
1. ViewModel, ViewModelFactory with Dagger2.
2. What is Dagger2 Multibinding?
3. What is @IntoMap in Dagger2, Use of Multibinding with Example.
4. Generalised ViewModelFactory class.
5. Complete Example of Android MVVM Dagger 2 with Multibinding.

Complete Dependency Injection Playlist Link -
youtube.com/playlist?list=PLRKyZvuMYSIPwjYw1bt_7u7nEwe6vATQd

Complete Android Architecture Components Playlist -
youtube.com/playlist?list=PLRKyZvuMYSIO0jLgj8g6sADnD0IBaWaw2

Beginner series in Android Playlist (Hindi) -
youtube.com/playlist?list=PLRKyZvuMYSIN9sVZTfDm4CTdTAzDQyLJU

Kotlin Beginners Tutorial Series -
youtube.com/playlist?list=PLRKyZvuMYSIMW3-rSOGCkPlO1z_IYJy3G

For more info - visit the below link
cheezycode.com

Source Code -
github.com/CheezyCode/DaggerMVVM

We are social. Follow us at -
Facebook - facebook.com/cheezycode
Twitter - twitter.com/cheezycode
Instagram - instagram.com/cheezycode
Dagger 2 Multibinding in Android + MVVM ViewModels - CheezyCode (Hindi)Dagger 2 @Module, @Provides, @Binds Annotation Tutorial - CheezyCode (Hindi) #5CheezyCode Another Rap For Fun #shortsAsynchronous JavaScript in Hindi | JavaScript Tutorial in Hindi #1Android RecyclerView + ListAdpater | Complete MVVM Example | CheezyCode (Hindi)Chrome Developer Tools - File System | CheezyCode #shortsKotlin Flows Basics - Flow Builder, Cold, Cancellation | CheezyCode - HindiAndroid LifeCycle Aware Components | Android Jetpack Tutorials Hindi- CheezyCode #2Run JavaScript Using Snippets in Chrome Developer Tools #shortsAndroid WebView - JavaScript Interface | Run Android Code from JS | HindiHilt Android Dependency Injection Tutorial | Introduction - CheezyCode (Hindi)Dagger 2 Component Builder @Component.Builder - CheezyCode (Hindi) #13
Cheezy Code |

Dagger 2 Multibinding in Android + MVVM ViewModels - CheezyCode (Hindi)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER