# ViewSpline.CustomSet

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

*** ** * ** ***


```
public class ViewSpline.CustomSet extends ViewSpline
```

<br />

|---|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) ||||
| ↳ | [androidx.constraintlayout.core.motion.utils.SplineSet](https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/SplineSet) |||
|   | ↳ | [androidx.constraintlayout.motion.utils.ViewSpline](https://developer.android.com/reference/androidx/constraintlayout/motion/utils/ViewSpline) ||
|   |   | ↳ | [androidx.constraintlayout.motion.utils.ViewSpline.CustomSet](https://developer.android.com/reference/androidx/constraintlayout/motion/utils/ViewSpline.CustomSet) |

*** ** * ** ***

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/constraintlayout/motion/utils/ViewSpline.CustomSet#CustomSet(java.lang.String,android.util.SparseArray<androidx.constraintlayout.widget.ConstraintAttribute>)(https://developer.android.com/reference/java/lang/String.html attribute, https://developer.android.com/reference/android/util/SparseArray.html<https://developer.android.com/reference/androidx/constraintlayout/widget/ConstraintAttribute> attrList)` |

| ### Public methods |
|---|---|
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/motion/utils/ViewSpline.CustomSet#setPoint(int,androidx.constraintlayout.widget.ConstraintAttribute)(int position, https://developer.android.com/reference/androidx/constraintlayout/widget/ConstraintAttribute value)` set the CustomAttribute |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/motion/utils/ViewSpline.CustomSet#setPoint(int,float)(int position, float value)` this call will throw RuntimeException |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/motion/utils/ViewSpline.CustomSet#setProperty(android.view.View,float)(https://developer.android.com/reference/android/view/View.html view, float t)` the main interface to setting a view property |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/motion/utils/ViewSpline.CustomSet#setup(int)(int curveType)` |

| ### Inherited fields |
|---|
| From [androidx.constraintlayout.core.motion.utils.SplineSet](https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/SplineSet) |---|---| | `https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/CurveFit` | `https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/SplineSet#mCurveFit()` | | `int[]` | `https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/SplineSet#mTimePoints()` | | `float[]` | `https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/SplineSet#mValues()` | |

| ### Inherited methods |
|---|
| From [androidx.constraintlayout.core.motion.utils.SplineSet](https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/SplineSet) |---|---| | `float` | `https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/SplineSet#get(float)(float t)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/CurveFit` | `https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/SplineSet#getCurveFit()()` | | `float` | `https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/SplineSet#getSlope(float)(float t)` | | `static https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/SplineSet` | `https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/SplineSet#makeCustomSpline(java.lang.String,androidx.constraintlayout.core.motion.utils.KeyFrameArray.CustomArray)(https://developer.android.com/reference/java/lang/String.html str, https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/KeyFrameArray.CustomArray attrList)` | | `static https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/SplineSet` | `https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/SplineSet#makeCustomSplineSet(java.lang.String,androidx.constraintlayout.core.motion.utils.KeyFrameArray.CustomVar)(https://developer.android.com/reference/java/lang/String.html str, https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/KeyFrameArray.CustomVar attrList)` | | `static https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/SplineSet` | `https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/SplineSet#makeSpline(java.lang.String,long)(https://developer.android.com/reference/java/lang/String.html str, long currentTime)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/SplineSet#setProperty(androidx.constraintlayout.core.motion.utils.TypedValues,float)(https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/TypedValues widget, float t)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/SplineSet#setType(java.lang.String)(https://developer.android.com/reference/java/lang/String.html type)` | | `https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/SplineSet#toString()()` | |
| From [androidx.constraintlayout.motion.utils.ViewSpline](https://developer.android.com/reference/androidx/constraintlayout/motion/utils/ViewSpline) |---|---| | `static https://developer.android.com/reference/androidx/constraintlayout/motion/utils/ViewSpline` | `https://developer.android.com/reference/androidx/constraintlayout/motion/utils/ViewSpline#makeCustomSpline(java.lang.String,android.util.SparseArray<androidx.constraintlayout.widget.ConstraintAttribute>)(https://developer.android.com/reference/java/lang/String.html str, https://developer.android.com/reference/android/util/SparseArray.html<https://developer.android.com/reference/androidx/constraintlayout/widget/ConstraintAttribute> attrList)` | | `static https://developer.android.com/reference/androidx/constraintlayout/motion/utils/ViewSpline` | `https://developer.android.com/reference/androidx/constraintlayout/motion/utils/ViewSpline#makeSpline(java.lang.String)(https://developer.android.com/reference/java/lang/String.html str)` | |

## Public constructors

### CustomSet

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

```
public CustomSet(String attribute, SparseArray<ConstraintAttribute> attrList)
```

## Public methods

### setPoint

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

```
public void setPoint(int position, ConstraintAttribute value)
```

set the CustomAttribute

| Parameters |
|---|---|
| `int position` |   |
| `https://developer.android.com/reference/androidx/constraintlayout/widget/ConstraintAttribute value` |   |

### setPoint

```
public void setPoint(int position, float value)
```

this call will throw RuntimeException

| Parameters |
|---|---|
| `int position` | the position |
| `float value` | the value |

### setProperty

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

```
public void setProperty(View view, float t)
```

the main interface to setting a view property

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/view/View.html view` | the view |
| `float t` | the point of time |

### setup

```
public void setup(int curveType)
```

| Parameters |
|---|---|
| `int curveType` |   |