Tin Tran's blog
  • Home

android

A collection of 1 post

android

About Dagger 2 scope injection

What does @Scope do? If a scope annotation is present, the injector may retain the instance for possible reuse in a later injection. @SomeScope @Component(dependencies = SomeModule.class) interface SomeComponent {} @Module class SomeModule

  • Tran Huu Tin
1 min read
Tin Tran's blog © 2023
Latest Posts Ghost