activityScope

inline fun <T : Activity> activityScope(qualifier: Qualifier = TypeQualifier(T::class), noinline block: ActivityScopeModuleBuilder.() -> Unit)

Defines a nested, standard ActivityScope within the retained scope. Dependencies defined here will be tied to the Activity's lifecycle and will be recreated if the Activity is recreated.

Parameters

T

The Activity class associated with this scope.

qualifier

An optional Qualifier for the activity scope.

block

A DSL block to define dependencies for the activity scope.