koin-android-viewmodel / org.koin.android.viewmodel.ext.android / android.support.v4.app.Fragment / sharedViewModel

sharedViewModel

inline fun <reified T : ViewModel> Fragment.sharedViewModel(qualifier: Qualifier? = null, scope: Scope = Scope.GLOBAL, noinline from: ViewModelStoreOwnerDefinition = { activity as ViewModelStoreOwner }, noinline parameters: ParametersDefinition? = null): Lazy<T>

Lazy getByClass a viewModel instance shared with Activity

Parameters

qualifier -

scope -

from -

parameters -