KotPreferences
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
KotPreferences
compose
/
com.michaelflisar.kotpreferences.compose
/
asMutableStateWithLifecycleNotNull
as
Mutable
State
With
Lifecycle
Not
Null
@
Composable
fun
<
T
>
StorageSetting
<
T
>
.
asMutableStateWithLifecycleNotNull
(
lifecycle
:
Lifecycle
,
minActiveState
:
Lifecycle.State
=
Lifecycle.State.STARTED
,
context
:
CoroutineContext
=
EmptyCoroutineContext
)
:
MutableState
<
T
>
@
Composable
fun
<
T
>
StorageSetting
<
T
>
.
asMutableStateWithLifecycleNotNull
(
lifecycleOwner
:
LifecycleOwner
=
LocalLifecycleOwner.current
,
minActiveState
:
Lifecycle.State
=
Lifecycle.State.STARTED
,
context
:
CoroutineContext
=
EmptyCoroutineContext
)
:
MutableState
<
T
>
@
Composable
fun
<
T
:
Any
,
X
:
Any
>
StorageSetting
<
T
>
.
asMutableStateWithLifecycleNotNull
(
lifecycle
:
Lifecycle
,
minActiveState
:
Lifecycle.State
=
Lifecycle.State.STARTED
,
context
:
CoroutineContext
=
EmptyCoroutineContext
,
mapper
:
(
T
)
->
X
,
unmapper
:
(
X
)
->
T
)
:
MutableState
<
X
>
@
Composable
fun
<
T
:
Any
,
X
:
Any
>
StorageSetting
<
T
>
.
asMutableStateWithLifecycleNotNull
(
lifecycleOwner
:
LifecycleOwner
=
LocalLifecycleOwner.current
,
minActiveState
:
Lifecycle.State
=
Lifecycle.State.STARTED
,
context
:
CoroutineContext
=
EmptyCoroutineContext
,
mapper
:
(
T
)
->
X
,
unmapper
:
(
X
)
->
T
)
:
MutableState
<
X
>