toggle menu
hooks2
common
switch theme
search in API
hooks2
/
xyz.junerver.compose.hooks
/
Ref
Ref
@
Stable
sealed
interface
Ref
<
T
>
Read-only Ref interface
Parameters
T
Inheritors
MutableRef
Members
Members & Extensions
Properties
current
Link copied to clipboard
abstract
val
current
:
T
Functions
get
Value
Link copied to clipboard
operator
fun
<
T
>
Ref
<
T
>
.
getValue
(
thisObj
:
Any
?
,
property
:
KProperty
<
*
>
)
:
T
observe
Link copied to clipboard
open
fun
observe
(
observer
:
Observer
<
T
>
)
observe
As
State
Link copied to clipboard
@
Composable
fun
<
T
>
Ref
<
T
>
.
observeAsState
(
)
:
State
<
T
>
Observe Ref as State
remove
Observer
Link copied to clipboard
open
fun
removeObserver
(
observer
:
Observer
<
T
>
)