Dagger 2 @Singleton Annotation & @Scopes - CheezyCode (Hindi) #8 @CheezyCode
Dagger 2 @Singleton Annotation & @Scopes - CheezyCode (Hindi) #8  @CheezyCode
Uploaded February 2022 | Updated September 2026, 1 week ago
Learn Dagger 2 Dependency Injection in Android. In this video - learn what is a singleton, how to define singletons in dagger 2 using @Singleton annotation. @Singleton is just a normal annotation that defines a scope using @Scope annotation. @Scope define the lifetime of the singletons. @Singleton annotation creates single objects within the component. Component is just a bag of objects with singletons and other objects. If component object is re-created, then singletons inside that component will be recreated. So to achieve true singleton behavior i.e. object exists for the whole lifetime of the application - you need to create your component at the application level. Learn all about this in Hindi.

Topics covered -
1. What are singletons?
2. Singletons in Dagger2 using @Singleton Annotation
3. What is scope?
4. Issue with @Singleton annotation.
5. Complete Example of Dagger 2 in Android.

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

We are social. Follow us at -
Facebook - facebook.com/cheezycode
Twitter - twitter.com/cheezycode
Instagram - instagram.com/cheezycode
Dagger 2 @Singleton Annotation & @Scopes - CheezyCode (Hindi) #8Android Certificate Pinning | Security | CheezyCode #shortsJetpack Compose - Side Effects | Launched Effect With Example | CheezyCode HindiAndroid Local Unit Test - Solution Video | Kotlin - CheezyCode - Part 2Android Upload Image Using Retrofit | Image Upload Tutorial | CheezyCode - HindiSOLID Principles | Single Responsibility Principle - SRP | Low Level DesignAndroid Linting KtLint | CheezyCode #shortsExpress JS Tutorial - 🔒 JWT Token Authentication - Login & Signup | CheezyCodeAndroid Work Manager Tutorial Hindi - Jetpack Component | CheezyCode - #20Android MVVM with Dagger 2, Retrofit and Coroutines  - CheezyCode (Hindi)Dagger 2 Concepts Revisted, Component Dependencies - CheezyCode (Hindi) #10Jetpack Compose - MVVM Pattern, Navigation, HILT - Introduction | CheezyCode Hindi
Cheezy Code |

Dagger 2 @Singleton Annotation & @Scopes - CheezyCode (Hindi) #8

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER