activityScope

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

Defines a nested, standard ActivityScope within the ViewModel scope. This can be useful for dependencies that need the Activity context and should be tied to the Activity's lifecycle.

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.