toggle menu
hooks2
common
switch theme
search in API
hooks2
/
xyz.junerver.compose.hooks
/
PersistentHolder
Persistent
Holder
@
Stable
data
class
PersistentHolder
<
T
>
(
val
state
:
State
<
T
>
,
val
save
:
SaveToPersistent
<
T
>
,
val
clear
:
HookClear
)
The final return value of the persistence hook is a tuple like state,setState
Members
Constructors
Persistent
Holder
Link copied to clipboard
constructor
(
state
:
State
<
T
>
,
save
:
SaveToPersistent
<
T
>
,
clear
:
HookClear
)
Properties
clear
Link copied to clipboard
val
clear
:
HookClear
save
Link copied to clipboard
val
save
:
SaveToPersistent
<
T
>
state
Link copied to clipboard
val
state
:
State
<
T
>
Functions
get
Value
Link copied to clipboard
operator
fun
getValue
(
thisRef
:
Any
?
,
property
:
KProperty
<
*
>
)
:
T
set
Value
Link copied to clipboard
operator
fun
setValue
(
thisRef
:
Any
?
,
property
:
KProperty
<
*
>
,
newValue
:
T
)