# SplineSet.CustomSpline

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/SplineSet.java+class:androidx.constraintlayout.core.motion.utils.SplineSet.CustomSpline) Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

*** ** * ** ***

<br />

```
class SplineSet.CustomSpline : SplineSet
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.constraintlayout.core.motion.utils.SplineSet](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet) ||
|   | ↳ | [androidx.constraintlayout.core.motion.utils.SplineSet.CustomSpline](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet.CustomSpline) |

*** ** * ** ***

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet.CustomSpline#CustomSpline(java.lang.String,androidx.constraintlayout.core.motion.utils.KeyFrameArray.CustomVar)(attribute: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, attrList: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/KeyFrameArray.CustomVar!)` |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet.CustomSpline#setPoint(int,androidx.constraintlayout.core.motion.CustomVariable)(position: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, value: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/CustomVariable!)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet.CustomSpline#setPoint(int,float)(position: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet.CustomSpline#setProperty(androidx.constraintlayout.core.motion.MotionWidget,float)(view: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/MotionWidget!, t: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet.CustomSpline#setProperty(androidx.constraintlayout.core.motion.utils.TypedValues,float)(widget: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/TypedValues!, t: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet.CustomSpline#setup(int)(curveType: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |

### Inherited functions

From [androidx.constraintlayout.core.motion.utils.SplineSet](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet#get(float)(t: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/CurveFit!` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet#getCurveFit()()` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet#getSlope(float)(t: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` `java-static https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet!` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet#makeCustomSpline(java.lang.String,androidx.constraintlayout.core.motion.utils.KeyFrameArray.CustomArray)(str: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, attrList: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/KeyFrameArray.CustomArray!)` `java-static https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet!` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet#makeCustomSplineSet(java.lang.String,androidx.constraintlayout.core.motion.utils.KeyFrameArray.CustomVar)(str: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, attrList: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/KeyFrameArray.CustomVar!)` `java-static https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet!` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet#makeSpline(java.lang.String,long)(str: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, currentTime: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet#setType(java.lang.String)(type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet#toString()()`

### Inherited properties

From [androidx.constraintlayout.core.motion.utils.SplineSet](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet) `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/CurveFit!` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet#mCurveFit()` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>!` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet#mTimePoints()` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html>!` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet#mValues()`

## Public constructors

### CustomSpline

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

```
CustomSpline(attribute: String!, attrList: KeyFrameArray.CustomVar!)
```

## Public functions

### setPoint

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

```
fun setPoint(position: Int, value: CustomVariable!): Unit
```

### setPoint

```
fun setPoint(position: Int, value: Float): Unit
```

### setProperty

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

```
fun setProperty(view: MotionWidget!, t: Float): Unit
```

### setProperty

```
fun setProperty(widget: TypedValues!, t: Float): Unit
```

### setup

```
fun setup(curveType: Int): Unit
```