gh-pages / com.nextfaze.devfun.reference / Dagger2Component / <init>
<init>
Dagger2Component(scope:
Dagger2Scope
= UNDEFINED, priority:
Int
= 0, isActivityRequired:
Boolean
= false, isFragmentActivityRequired:
Boolean
= false)
Annotated functions (fun
, properties, or property getters (@get:Dagger2Component
)) will be checked/used as Dagger 2 components.
If all scope and priority are unset/default then a best-guess will be made based on where the reference is.
i.e.
- If its in an
Application
class then it’ll be assumed to be application level etc. - If it’s an extension function then the receiver will be used.
See Also