We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Accessing application context
Using qualifiers
class AnalyticsService @Inject constructor( @ApplicationContext cxt : Context ){ // --- }
Without using qualifiers
class AnalyticsService @Inject constructor( application : Application){ // --- }
Accessing activity context
class AnalyticsService @Inject constructor( @ActivityContext cxt : Context ){ // --- }
class AnalyticsService @Inject constructor( activity : FragmentActivity){ // --- }
There was an error while loading. Please reload this page.