LocalViewModelStoreOwner


The CompositionLocal containing the current ViewModelStoreOwner.

Summary

Public functions

infix ProvidedValue<ViewModelStoreOwner?>
provides(viewModelStoreOwner: ViewModelStoreOwner)

Associates a LocalViewModelStoreOwner key to a value in a call to CompositionLocalProvider.

Cmn

Public properties

ViewModelStoreOwner?

Returns current composition local value for the owner or null if one has not been provided nor is one available via findViewTreeViewModelStoreOwner on the current androidx.compose.ui.platform.LocalView.

Cmn

Public functions

provides

infix fun provides(viewModelStoreOwner: ViewModelStoreOwner): ProvidedValue<ViewModelStoreOwner?>

Associates a LocalViewModelStoreOwner key to a value in a call to CompositionLocalProvider.

Public properties

current

val currentViewModelStoreOwner?

Returns current composition local value for the owner or null if one has not been provided nor is one available via findViewTreeViewModelStoreOwner on the current androidx.compose.ui.platform.LocalView.