Rachel
Toggle table of contents
3.6.0
common
Target filter
common
Switch theme
Search in API
Skip to content
Rachel
love.yinlin.compose.components.pagination-layout
/
love.yinlin.compose.ui.layout
/
PullState
Pull
State
@
Stable
class
PullState
(
scope
:
CoroutineScope
,
canRefresh
:
State
<
Boolean
>
,
canLoading
:
State
<
Boolean
>
,
onRefresh
:
State
<
suspend
(
)
->
Unit
?
>
,
onLoading
:
State
<
suspend
(
)
->
Unit
?
>
,
indicatorPadding
:
Float
,
thresholdRatio
:
Float
)
Members
Constructors
Pull
State
Link copied to clipboard
constructor
(
scope
:
CoroutineScope
,
canRefresh
:
State
<
Boolean
>
,
canLoading
:
State
<
Boolean
>
,
onRefresh
:
State
<
suspend
(
)
->
Unit
?
>
,
onLoading
:
State
<
suspend
(
)
->
Unit
?
>
,
indicatorPadding
:
Float
,
thresholdRatio
:
Float
)
Functions
await
Drag
Link copied to clipboard
suspend
fun
PointerInputScope
.
awaitDrag
(
)
calc
Fraction
Link copied to clipboard
fun
calcFraction
(
isTop
:
Boolean
)
:
Float
calc
Lerp
Color
Link copied to clipboard
fun
calcLerpColor
(
fraction
:
Float
,
color1
:
Color
,
color2
:
Color
)
:
Color
fix
Overflow
Scroll
Link copied to clipboard
suspend
fun
PointerInputScope
.
fixOverflowScroll
(
)