sdk
Toggle table of contents
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
sdk
sdk
/
com.m8test.script.core.api.ui.compose.state
/
SwipeToDismissBoxState
/
setPositionalThreshold
set
Positional
Threshold
abstract
fun
setPositionalThreshold
(
threshold
:
(
totalDistance
:
Float
)
->
Float
)
设置位置阈值,用于在滑动进行中和结束后计算目标状态。
Parameters
threshold
一个接收总滑动距离并返回阈值像素值的函数。