-
Notifications
You must be signed in to change notification settings - Fork 0
Hilt β Accessing activity and application context
Devrath edited this page Oct 9, 2023
·
1 revision
class AnalyticsService @Inject constructor( @ApplicationContext cxt : Context ){
// ---
}
class AnalyticsService @Inject constructor( application : Application){
// ---
}
class AnalyticsService @Inject constructor( @ActivityContext cxt : Context ){
// ---
}
class AnalyticsService @Inject constructor( activity : FragmentActivity){
// ---
}