setConfirmValueChange

abstract fun setConfirmValueChange(confirm: (value: SwipeToDismissBoxValue) -> Boolean)

设置用于确认或否决状态变更的回调。

Parameters

confirm

(newValue: SwipeToDismissBoxValue) -> Boolean 如果接受变更则返回 true。