Package-level declarations
Functions
Link copied to clipboard
inline fun <VM : ViewModel> injectViewModel(qualifier: Any? = null, viewModelStoreOwner: ViewModelStoreOwner = checkNotNull(LocalViewModelStoreOwner.current) {
"No ViewModelStoreOwner was provided via LocalViewModelStoreOwner"
}, key: String? = null, extras: CreationExtras = if (viewModelStoreOwner is HasDefaultViewModelProviderFactory) {
viewModelStoreOwner.defaultViewModelCreationExtras
} else {
CreationExtras.Empty
}): VM
Returns an existing ViewModel or creates a new one by Koject