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

sharedViewModel

inline fun <reified T : ViewModel> Fragment.sharedViewModel(key: String? = null, name: String? = null, noinline from: ViewModelStoreOwnerDefinition = { activity!! as ViewModelStoreOwner }, noinline parameters: ParameterDefinition = emptyParameterDefinition()): Lazy<T>

Lazy getByClass a viewModel instance shared with Activity

Parameters

key -

name -

from -

parameters -