Package-level declarations

Functions

Link copied to clipboard
@MainThread
inline fun <A : AppCompatActivity, DIAware, VM : ViewModel> A.viewModelWithSavedStateHandle(tag: Any? = null): Lazy<VM>

Returns a Lazy property delegate to access the AppCompatActivity's ViewModel, which will be obtained from a Kodein DI factory with a SavedStateHandle argument.

@MainThread
inline fun <F : Fragment, DIAware, VM : ViewModel> F.viewModelWithSavedStateHandle(noinline ownerProducer: () -> ViewModelStoreOwner = { this }, tag: Any? = null): Lazy<VM>

Returns a Lazy property delegate to access a ViewModel by default scoped to this Fragment, which will be obtained from a Kodein DI factory with a SavedStateHandle argument.