<div class='sourceset sourceset-android'>Android</div>

> **Deprecated** Moved to common code

<h2 id="splinebaseddecaydeprecated-density">splineBasedDecayDeprecated</h2>

```kotlin
public fun <T> splineBasedDecayDeprecated(density: Density): DecayAnimationSpec<T>
```

Creates a [DecayAnimationSpec](/jetpack-compose/androidx.compose.animation/animation-core/interfaces/DecayAnimationSpec) using the native Android fling decay. This can then be used to
animate any type [T].

#### Parameters

| | |
| --- | --- |
| density | density of the display |