FragmentComponent
Mark it as a type to inject into Fragment.
Additional available types:
kotlinx.coroutines.CoroutineScope with @FragmentCoroutineScope
kotlinx.coroutines.CoroutineScope with @FragmentViewCoroutineScope
example:
@Provides
@FragmentComponent
class ForFragmentClass(
private val fragment: Fragment,
private val activity: FragmentActivity,
@ActivityContext
private val context: Context,
@FragmentCoroutineScope
private val scope: CoroutineScope*
)
Content copied to clipboard