ActivityComponent
Mark it as a type to inject into ComponentActivity.
Additional available types:
kotlinx.coroutines.CoroutineScope with @ActivityCoroutineScope
example:
@Provides
@ActivityComponent
class ForActivityClass(
private val activity: ComponentActivity,
@ActivityContext
private val context: Context,
@ActivityCoroutineScope
private val scope: CoroutineScope
)
Content copied to clipboard