# SwipeTouchUp

Artifact: [androidx.constraintlayout:constraintlayout-compose](https://developer.android.com/jetpack/androidx/releases/constraintlayout) [View Source](https://cs.android.com/search?q=file:androidx/constraintlayout/compose/TransitionScope.kt+class:androidx.constraintlayout.compose.SwipeTouchUp) Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)


```
@ExperimentalMotionApi
class SwipeTouchUp
```

<br />

*** ** * ** ***

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** `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ConstraintSet`s.

To define the type of motion used while animating during touch up, see `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/SwipeMode` for `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/OnSwipe#mode()`.

## Summary

| ### Public companion properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/SwipeTouchUp` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/SwipeTouchUp#AutoComplete()` The widget will be automatically animated towards the `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ConstraintSet` closest to where the swipe motion is predicted to end. |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/SwipeTouchUp` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/SwipeTouchUp#Decelerate()` Automatically animates towards the point where the swipe motion is predicted to end. |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/SwipeTouchUp` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/SwipeTouchUp#NeverCompleteEnd()` Similar to `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/SwipeTouchUp#ToStart()`, but it will animate to the **start** `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ConstraintSet` even if the widget is exactly at the end `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ConstraintSet`. |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/SwipeTouchUp` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/SwipeTouchUp#NeverCompleteStart()` Similar to `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/SwipeTouchUp#ToEnd()`, but it will animate to the **end** `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ConstraintSet` even if the widget is exactly at the start `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ConstraintSet`. |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/SwipeTouchUp` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/SwipeTouchUp#Stop()` Stops right in place, will **not** automatically animate to any `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ConstraintSet`. |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/SwipeTouchUp` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/SwipeTouchUp#ToEnd()` Automatically animates towards the **end** `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ConstraintSet` unless it's already exactly at the **start** `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ConstraintSet`. |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/SwipeTouchUp` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/SwipeTouchUp#ToStart()` Automatically animates towards the **start** `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ConstraintSet` unless it's already exactly at the **end** `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ConstraintSet`. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/SwipeTouchUp#name()` |

## Public companion properties

### AutoComplete

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
val AutoComplete: SwipeTouchUp
```

The widget will be automatically animated towards the `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ConstraintSet` closest to where the swipe motion is predicted to end.

### Decelerate

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
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 `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ConstraintSet`s in the case where it's carrying a lot of speed.

### NeverCompleteEnd

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
val NeverCompleteEnd: SwipeTouchUp
```

Similar to `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/SwipeTouchUp#ToStart()`, but it will animate to the **start** `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ConstraintSet` even if the widget is exactly at the end `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ConstraintSet`.

### NeverCompleteStart

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
val NeverCompleteStart: SwipeTouchUp
```

Similar to `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/SwipeTouchUp#ToEnd()`, but it will animate to the **end** `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ConstraintSet` even if the widget is exactly at the start `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ConstraintSet`.

### Stop

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
val Stop: SwipeTouchUp
```

Stops right in place, will **not** automatically animate to any `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ConstraintSet`.

### ToEnd

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
val ToEnd: SwipeTouchUp
```

Automatically animates towards the **end** `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ConstraintSet` unless it's already exactly at the **start** `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ConstraintSet`.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/SwipeTouchUp#NeverCompleteStart()` |   |

### ToStart

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
val ToStart: SwipeTouchUp
```

Automatically animates towards the **start** `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ConstraintSet` unless it's already exactly at the **end** `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ConstraintSet`.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/SwipeTouchUp#NeverCompleteEnd()` |   |

## Public properties

### name

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
val name: String
```