ViewModelScopeModuleBuilder
A specialized AbstractModuleBuilder for defining dependencies within a ViewModel-specific scope. This builder is used with the viewModelScope DSL function.
Functions
Link copied to clipboard
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.
Link copied to clipboard
fun <T : AbstractModuleBuilder> baseScope(qualifier: Qualifier, builderGenerator: DefaultScope.() -> T, block: T.() -> Unit)
Link copied to clipboard