# 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)

*** ** * ** ***


```
public interface StopEngine
```

<br />

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

|---|---|
| `https://developer.android.com/reference/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/androidx/constraintlayout/core/motion/utils/StopLogicEngine.Decelerate` |   |
| `https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/StopLogicEngine` | This contains the class to provide the logic for an animation to come to a stop. |

*** ** * ** ***

## Summary

| ### Public methods |
|---|---|
| `abstract https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/StopEngine#debug(java.lang.String,float)(https://developer.android.com/reference/java/lang/String.html desc, float time)` |
| `abstract float` | `https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/StopEngine#getInterpolation(float)(float time)` |
| `abstract float` | `https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/StopEngine#getVelocity()()` |
| `abstract float` | `https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/StopEngine#getVelocity(float)(float time)` |
| `abstract boolean` | `https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/StopEngine#isStopped()()` |

## Public methods

### debug

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

```
abstract String debug(String desc, float time)
```

### getInterpolation

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

```
abstract float getInterpolation(float time)
```

### getVelocity

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

```
abstract float getVelocity()
```

### getVelocity

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

```
abstract float getVelocity(float time)
```

### isStopped

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

```
abstract boolean isStopped()
```