KotPreferences
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
KotPreferences
compose
/
com.michaelflisar.kotpreferences.compose
/
collectAsState
collect
As
State
@
Composable
fun
<
T
>
StorageSetting
<
T
>
.
collectAsState
(
initialValue
:
T
?
=
getCachedValue()
)
:
State
<
T
?
>
@
Composable
fun
<
T
,
X
>
StorageSetting
<
T
>
.
collectAsState
(
initialValue
:
T
?
=
getCachedValue()
,
mapper
:
(
T
)
->
X
)
:
State
<
X
?
>