gh-pages / com.nextfaze.devfun.reference / Dagger2Component / priority
priority
Here if for whatever reason you can’t/don’t want to use scope - will only be used if scope is UNDEFINED.
If scope is UNDEFINED and priority is 0
then a best-guess will be made based on where the component 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 type will be used as to “where”.
If scope is set it takes priority (which is just the enum ordinal value).
See Also