Skip to content

Instantly share code, notes, and snippets.

@Nyame123
Created June 10, 2021 23:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nyame123/a426986d4249249987f004e8b609bb91 to your computer and use it in GitHub Desktop.
Save Nyame123/a426986d4249249987f004e8b609bb91 to your computer and use it in GitHub Desktop.
Android class ------------------ Components ------------------------------------ Scope
Application---- SingletonComponent -------------------------- @Singleton
Activity ---ActivityRetainedComponents -------- @ActivityRetainedScoped
ViewModel ------ ViewModelComponents -------- @ViewModelScoped
Activity ----- ActivityComponents ------------------ @ActivityScoped
Fragment ---- FragmentComponents ------- @FragmentScoped
View --------- ViewComponents ------------------ @ViewScoped
View annotated @WithFragmentBindings -- ViewWithFragmentComponents -- @ViewScoped
Service --------- ServiceComponent ------------ @ServiceScoped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment