SwipeButtonState

constructor(confirmThreshold: Float = 0.9f, onComplete: () -> Unit = {}, onReset: () -> Unit = {}, onProgressChanged: (Float) -> Unit = {})

Parameters

confirmThreshold

The normalized value (0.0 to 1.0) that the user must drag beyond to trigger the completion state. Defaults to 0.9 (90%).

onComplete

Callback invoked when the button successfully reaches the completed state.

onReset

Callback invoked when the button is reset from completed to idle.

onProgressChanged

Callback providing real-time updates of the drag progress (0.0 to 1.0).