Package-level declarations

Functions

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

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

@MainThread
inline fun <F : Fragment, DIAware, VM : ViewModel> F.viewModel(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 provider.