metro
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
metro
metrox-viewmodel-compose
/
dev.zacsweers.metrox.viewmodel
/
metroViewModel
metro
View
Model
@
Composable
inline
fun
<
VM
:
ViewModel
>
metroViewModel
(
viewModelStoreOwner
:
ViewModelStoreOwner
=
requireViewModelStoreOwner()
,
key
:
String
?
=
null
)
:
VM
(
source
)
Retrieves a Metro-injected ViewModel using the
LocalMetroViewModelFactory
.