kodein-di-framework-android-x-compose
Toggle table of contents
7.31.0-0.0.1-rc2
androidJvm
Target filter
androidJvm
Switch theme
Search in API
Skip to content
kodein-di-framework-android-x-compose
kodein-di-framework-android-x-compose
/
org.kodein.di.compose.android
Package-level
declarations
Types
Functions
Types
Kodein
View
Model
Scoped
Factory
Link copied to clipboard
class
KodeinViewModelScopedFactory
<
A
:
Any
>
(
di
:
DI
,
argType
:
TypeToken
<
A
>
,
arg
:
A
,
tag
:
String
?
=
null
)
:
ViewModelProvider.Factory
Kodein
View
Model
Scoped
Singleton
Link copied to clipboard
class
KodeinViewModelScopedSingleton
(
di
:
DI
,
tag
:
String
?
=
null
)
:
ViewModelProvider.Factory
Functions
remember
View
Model
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
.
view
Model
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
.