SwipeTouchUp
@ExperimentalMotionApi
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 |
SwipeTouchUp |
Automatically animates towards the point where the swipe motion is predicted to end. |
SwipeTouchUp |
Similar to |
SwipeTouchUp |
Similar to |
SwipeTouchUp |
Stops right in place, will not automatically animate to any |
SwipeTouchUp |
Automatically animates towards the end |
SwipeTouchUp |
Automatically animates towards the start |
Public companion properties
AutoComplete
val AutoComplete: SwipeTouchUp
The widget will be automatically animated towards the ConstraintSet closest to where the swipe motion is predicted to end.
Decelerate
val Decelerate: SwipeTouchUp
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
val NeverCompleteEnd: SwipeTouchUp
Similar to ToStart, but it will animate to the start ConstraintSet even if the widget is exactly at the end ConstraintSet.
NeverCompleteStart
val NeverCompleteStart: SwipeTouchUp
Similar to ToEnd, but it will animate to the end ConstraintSet even if the widget is exactly at the start ConstraintSet.
Stop
val Stop: SwipeTouchUp
Stops right in place, will not automatically animate to any ConstraintSet.
ToEnd
val ToEnd: SwipeTouchUp
Automatically animates towards the end ConstraintSet unless it's already exactly at the start ConstraintSet.
| See also | |
|---|---|
NeverCompleteStart |
ToStart
val ToStart: SwipeTouchUp
Automatically animates towards the start ConstraintSet unless it's already exactly at the end ConstraintSet.
| See also | |
|---|---|
NeverCompleteEnd |