# StopEngine

Artifact: [androidx.constraintlayout:constraintlayout-core](https://developer.android.com/jetpack/androidx/releases/constraintlayout) [View Source](https://cs.android.com/search?q=file:androidx/constraintlayout/core/motion/utils/StopEngine.java+class:androidx.constraintlayout.core.motion.utils.StopEngine) Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

*** ** * ** ***


```
interface StopEngine
```

<br />

Known direct subclasses [SpringStopEngine](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SpringStopEngine), [StopLogicEngine.Decelerate](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/StopLogicEngine.Decelerate), [StopLogicEngine](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/StopLogicEngine)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SpringStopEngine` | This contains the class to provide the logic for an animation to come to a stop using a spring model. |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/StopLogicEngine.Decelerate` |   |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/StopLogicEngine` | This contains the class to provide the logic for an animation to come to a stop. |

*** ** * ** ***

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/StopEngine#debug(java.lang.String,float)(desc: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, time: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/StopEngine#getInterpolation(float)(time: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/StopEngine#getVelocity()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/StopEngine#getVelocity(float)(time: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/StopEngine#isStopped()()` |

## Public functions

### debug

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

```
fun debug(desc: String!, time: Float): String!
```

### getInterpolation

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

```
fun getInterpolation(time: Float): Float
```

### getVelocity

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

```
fun getVelocity(): Float
```

### getVelocity

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

```
fun getVelocity(time: Float): Float
```

### isStopped

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

```
fun isStopped(): Boolean
```