class SwipeTouchUp


The logic used to decide the target position when the touch input ends.

 

The possible target positions are the positions defined by the start and end ConstraintSets.

To define the type of motion used while animating during touch up, see SwipeMode for OnSwipe.mode.

Summary

Public companion properties

SwipeTouchUp

The widget will be automatically animated towards the ConstraintSet closest to where the swipe motion is predicted to end.

SwipeTouchUp

Automatically animates towards the point where the swipe motion is predicted to end.

SwipeTouchUp

Similar to ToStart, but it will animate to the start ConstraintSet even if the widget is exactly at the end ConstraintSet.

SwipeTouchUp

Similar to ToEnd, but it will animate to the end ConstraintSet even if the widget is exactly at the start ConstraintSet.

SwipeTouchUp

Stops right in place, will not automatically animate to any ConstraintSet.

SwipeTouchUp

Automatically animates towards the end ConstraintSet unless it's already exactly at the start ConstraintSet.

SwipeTouchUp

Automatically animates towards the start ConstraintSet unless it's already exactly at the end ConstraintSet.

Public properties

String

Public companion properties

AutoComplete

Added in 1.1.0-alpha13
val AutoCompleteSwipeTouchUp

The widget will be automatically animated towards the ConstraintSet closest to where the swipe motion is predicted to end.

Decelerate

Added in 1.1.0-alpha13
val DecelerateSwipeTouchUp

Automatically animates towards the point where the swipe motion is predicted to end.

This is guaranteed to stop within the start or end ConstraintSets in the case where it's carrying a lot of speed.

NeverCompleteEnd

Added in 1.1.0-alpha13
val NeverCompleteEndSwipeTouchUp

Similar to ToStart, but it will animate to the start ConstraintSet even if the widget is exactly at the end ConstraintSet.

NeverCompleteStart

Added in 1.1.0-alpha13
val NeverCompleteStartSwipeTouchUp

Similar to ToEnd, but it will animate to the end ConstraintSet even if the widget is exactly at the start ConstraintSet.

Stop

Added in 1.1.0-alpha13
val StopSwipeTouchUp

Stops right in place, will not automatically animate to any ConstraintSet.

ToEnd

Added in 1.1.0-alpha13
val ToEndSwipeTouchUp

Automatically animates towards the end ConstraintSet unless it's already exactly at the start ConstraintSet.

ToStart

Added in 1.1.0-alpha13
val ToStartSwipeTouchUp

Automatically animates towards the start ConstraintSet unless it's already exactly at the end ConstraintSet.

See also
NeverCompleteEnd

Public properties

name

Added in 1.1.0-alpha13
val nameString