activityRetainedScope

fun Module.activityRetainedScope(scopeSet: ScopeDSL.() -> Unit)

Declare an Activity retained scope section.

Dependencies declared inside this block survive configuration changes.

activityRetainedScope {
scoped { MyRetainedDependency() }
}