abstract class ScopeFragment : Fragment, AndroidScopeComponent
ScopeFragment
Fragment, allow to create & destroy tied Koin scope
Author
Arnaud Giuliani
<init> |
ScopeFragment ScopeFragment(contentLayoutId: Int = 0, initialiseScope: Boolean = true) |
scope |
open val scope: Scope |
onViewCreated |
open fun onViewCreated(view: View, savedInstanceState: Bundle?): Unit |
getOrCreateScope |
fun <T : ComponentCallbacks> T.getOrCreateScope(): Lazy<Scope> |
newScope |
fun <T : ComponentCallbacks> T.newScope(): Lazy<Scope> |