Package-level declarations

Types

Link copied to clipboard
class KodeinViewModelScopedFactory<A : Any>(di: DI, argType: TypeToken<A>, arg: A, tag: String? = null) : ViewModelProvider.Factory
Link copied to clipboard
class KodeinViewModelScopedSingleton(di: DI, tag: String? = null) : ViewModelProvider.Factory

Functions

Link copied to clipboard
@Composable
inline fun <VM : ViewModel> rememberViewModel(tag: String? = null): ViewModelLazy<VM>
@Composable
inline fun <A : Any, VM : ViewModel> rememberViewModel(tag: String? = null, arg: A): ViewModelLazy<VM>

Gets an instance of a VM as an android ViewModel for the given tag.

Link copied to clipboard
@Composable
inline fun <VM : ViewModel> viewModel(tag: String? = null): VM
@Composable
inline fun <A : Any, VM : ViewModel> viewModel(tag: String? = null, arg: A): VM

Gets an instance of a VM as an android ViewModel for the given tag.