ContributesActivity

annotation class ContributesActivity

Annotate a Activity class with this to automatically contribute it to the ActivityScope multibinding. Equivalent to the following declaration in an application module:

@Module
@ContributesTo(ActivityScope::class)
abstract class MainActivityModule {
@Binds
@IntoMap
@ActivityMapKey(MainActivity::class)
@SingleIn(ActivityScope::class)
abstract fun bindsMainInjector(target: MembersInjector<MainActivity>): MembersInjector<out Activity>
}

The generated code created via the activity-generator module.