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.

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. On Android it will also try to get it via androidx.lifecycle.findViewTreeViewModelStoreOwner on the current androidx.compose.ui.platform.LocalView.