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

getSharedViewModel

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

Get a shared viewModel instance from underlying Activity

Parameters

key -

name -

from -

parameters -