# MotionScene.Transition

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

*** ** * ** ***


```
class MotionScene.Transition
```

<br />

*** ** * ** ***

Transition defines the interaction from one state to another. With out a Transition object Transition between two stats involves strictly linear interpolation

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition.TransitionOnClick : https://developer.android.com/reference/android/view/View.OnClickListener.html` |

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#AUTO_ANIMATE_TO_END() = 4` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#AUTO_ANIMATE_TO_START() = 3` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#AUTO_JUMP_TO_END() = 2` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#AUTO_JUMP_TO_START() = 1` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#AUTO_NONE() = 0` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#INTERPOLATE_ANTICIPATE() = 6` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#INTERPOLATE_BOUNCE() = 4` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#INTERPOLATE_EASE_IN() = 1` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#INTERPOLATE_EASE_IN_OUT() = 0` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#INTERPOLATE_EASE_OUT() = 2` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#INTERPOLATE_LINEAR() = 3` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#INTERPOLATE_OVERSHOOT() = 5` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#INTERPOLATE_REFERENCE_ID() = -2` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#INTERPOLATE_SPLINE_STRING() = -1` |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#Transition(int,androidx.constraintlayout.motion.widget.MotionScene,int,int)( id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, motionScene: https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene!, constraintSetStartId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, constraintSetEndId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` Create a transition |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#addKeyFrame(androidx.constraintlayout.motion.widget.KeyFrames)(keyFrames: https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/KeyFrames!)` add a keyframe to this motion scene |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#addOnClick(android.content.Context,org.xmlpull.v1.XmlPullParser)(context: https://developer.android.com/reference/android/content/Context.html!, parser: https://developer.android.com/reference/org/xmlpull/v1/XmlPullParser.html!)` Add on Click support using the xml parser |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#addOnClick(int,int)(id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, action: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Add the onclick to this view |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#debugString(android.content.Context)(context: https://developer.android.com/reference/android/content/Context.html!)` Print a debug string indicating the starting and ending state of the transition |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#getAutoTransition()()` return the autoTransitionType. one of AUTO_NONE, AUTO_JUMP_TO_START, AUTO_JUMP_TO_END, AUTO_ANIMATE_TO_START, AUTO_ANIMATE_TO_END |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#getDuration()()` gets the default transition duration |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#getEndConstraintSetId()()` Get the id of the constraint set to go to |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#getId()()` Transitions can be given and ID. |
| `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/KeyFrames!>!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#getKeyFrameList()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#getLayoutDuringTransition()()` get the mode of layout during transition |
| `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition.TransitionOnClick!>!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#getOnClickList()()` Get the onClick handlers. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#getPathMotionArc()()` gets the pathMotionArc for the all motions in this transition. if set to UNSET (default) it reverts to the setting of the constraintSet |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#getStagger()()` Gets the stagger value. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#getStartConstraintSetId()()` Gets the id of the starting constraint set |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/TouchResponse!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#getTouchResponse()()` Get the Touch response manager |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#isEnabled()()` Returns true if this Transition can be auto considered for transition Default is enabled |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#isTransitionFlag(int)(flag: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` is the transition flag set |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#removeOnClick(int)(id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Remove the onclick added to this view |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#setAutoTransition(int)(type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` sets the autoTransitionType On reaching a state auto transitions may be run based on one of AUTO_NONE, AUTO_JUMP_TO_START, AUTO_JUMP_TO_END, AUTO_ANIMATE_TO_START, AUTO_ANIMATE_TO_END |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#setDuration(int)(duration: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` sets the duration of the transition if set to \<8 it will be set to 8 |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#setEnabled(boolean)(enable: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` enable or disable the Transition. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#setInterpolatorInfo(int,java.lang.String,int)( interpolator: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, interpolatorString: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, interpolatorID: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` Sets the interpolation used for this transition. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#setLayoutDuringTransition(int)(mode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` set the mode of layout during transition |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#setOnSwipe(androidx.constraintlayout.motion.widget.OnSwipe)(onSwipe: https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/OnSwipe!)` Set the onSwipe for this Transition |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#setOnTouchUp(int)(touchUpMode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Set the on touch up mode |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#setPathMotionArc(int)(arcMode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Sets the pathMotionArc for the all motions in this transition. if set to UNSET (default) it reverts to the setting of the constraintSet |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#setStagger(float)(stagger: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Sets the stagger value. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition#setTransitionFlag(int)(flag: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |

## Constants

### AUTO_ANIMATE_TO_END

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

```
const val AUTO_ANIMATE_TO_END = 4: Int
```

### AUTO_ANIMATE_TO_START

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

```
const val AUTO_ANIMATE_TO_START = 3: Int
```

### AUTO_JUMP_TO_END

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

```
const val AUTO_JUMP_TO_END = 2: Int
```

### AUTO_JUMP_TO_START

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

```
const val AUTO_JUMP_TO_START = 1: Int
```

### AUTO_NONE

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

```
const val AUTO_NONE = 0: Int
```

### INTERPOLATE_ANTICIPATE

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

```
const val INTERPOLATE_ANTICIPATE = 6: Int
```

### INTERPOLATE_BOUNCE

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

```
const val INTERPOLATE_BOUNCE = 4: Int
```

### INTERPOLATE_EASE_IN

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

```
const val INTERPOLATE_EASE_IN = 1: Int
```

### INTERPOLATE_EASE_IN_OUT

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

```
const val INTERPOLATE_EASE_IN_OUT = 0: Int
```

### INTERPOLATE_EASE_OUT

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

```
const val INTERPOLATE_EASE_OUT = 2: Int
```

### INTERPOLATE_LINEAR

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

```
const val INTERPOLATE_LINEAR = 3: Int
```

### INTERPOLATE_OVERSHOOT

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

```
const val INTERPOLATE_OVERSHOOT = 5: Int
```

### INTERPOLATE_REFERENCE_ID

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

```
const val INTERPOLATE_REFERENCE_ID = -2: Int
```

### INTERPOLATE_SPLINE_STRING

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

```
const val INTERPOLATE_SPLINE_STRING = -1: Int
```

## Public constructors

### Transition

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

```
Transition(
    id: Int,
    motionScene: MotionScene!,
    constraintSetStartId: Int,
    constraintSetEndId: Int
)
```

Create a transition

| Parameters |
|---|---|
| `id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | a unique id to represent the transition. |
| `motionScene: https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene!` | the motion scene that the transition will be added to. |
| `constraintSetStartId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | id of the ConstraintSet to be used for the start of transition |
| `constraintSetEndId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | id of the ConstraintSet to be used for the end of transition |

## Public functions

### addKeyFrame

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

```
fun addKeyFrame(keyFrames: KeyFrames!): Unit
```

add a keyframe to this motion scene

| Parameters |
|---|---|
| `keyFrames: https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/KeyFrames!` |   |

### addOnClick

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

```
fun addOnClick(context: Context!, parser: XmlPullParser!): Unit
```

Add on Click support using the xml parser

| Parameters |
|---|---|
| `context: https://developer.android.com/reference/android/content/Context.html!` |   |
| `parser: https://developer.android.com/reference/org/xmlpull/v1/XmlPullParser.html!` |   |

### addOnClick

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

```
fun addOnClick(id: Int, action: Int): Unit
```

Add the onclick to this view

| Parameters |
|---|---|
| `id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` |   |
| `action: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` |   |

### debugString

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

```
fun debugString(context: Context!): String!
```

Print a debug string indicating the starting and ending state of the transition

| Parameters |
|---|---|
| `context: https://developer.android.com/reference/android/content/Context.html!` |   |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` |   |

### getAutoTransition

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

```
fun getAutoTransition(): Int
```

return the autoTransitionType. one of AUTO_NONE, AUTO_JUMP_TO_START, AUTO_JUMP_TO_END, AUTO_ANIMATE_TO_START, AUTO_ANIMATE_TO_END

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | 0=NONE, 1=JUMP_TO_START, 2=JUMP_TO_END, 3=ANIMATE_TO_START, 4=ANIMATE_TO_END |

### getDuration

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

```
fun getDuration(): Int
```

gets the default transition duration

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | duration int milliseconds |

### getEndConstraintSetId

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

```
fun getEndConstraintSetId(): Int
```

Get the id of the constraint set to go to

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` |   |

### getId

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

```
fun getId(): Int
```

Transitions can be given and ID. If unset it returns UNSET (-1)

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The Id of the Transition set in the MotionScene File or UNSET (-1) |

### getKeyFrameList

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

```
fun getKeyFrameList(): (Mutable)List<KeyFrames!>!
```

### getLayoutDuringTransition

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

```
fun getLayoutDuringTransition(): Int
```

get the mode of layout during transition

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` |   |

### getOnClickList

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

```
fun getOnClickList(): (Mutable)List<MotionScene.Transition.TransitionOnClick!>!
```

Get the onClick handlers.

| Returns |
|---|---|
| `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/MotionScene.Transition.TransitionOnClick!>!` | list of on click handler |

### getPathMotionArc

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

```
fun getPathMotionArc(): Int
```

gets the pathMotionArc for the all motions in this transition. if set to UNSET (default) it reverts to the setting of the constraintSet

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | arcMode |

### getStagger

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

```
fun getStagger(): Float
```

Gets the stagger value.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` |   |

### getStartConstraintSetId

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

```
fun getStartConstraintSetId(): Int
```

Gets the id of the starting constraint set

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` |   |

### getTouchResponse

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

```
fun getTouchResponse(): TouchResponse!
```

Get the Touch response manager

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/TouchResponse!` |   |

### isEnabled

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

```
fun isEnabled(): Boolean
```

Returns true if this Transition can be auto considered for transition Default is enabled

### isTransitionFlag

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

```
fun isTransitionFlag(flag: Int): Boolean
```

is the transition flag set

| Parameters |
|---|---|
| `flag: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` |   |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` |   |

### removeOnClick

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

```
fun removeOnClick(id: Int): Unit
```

Remove the onclick added to this view

| Parameters |
|---|---|
| `id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` |   |

### setAutoTransition

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

```
fun setAutoTransition(type: Int): Unit
```

sets the autoTransitionType On reaching a state auto transitions may be run based on one of AUTO_NONE, AUTO_JUMP_TO_START, AUTO_JUMP_TO_END, AUTO_ANIMATE_TO_START, AUTO_ANIMATE_TO_END

| Parameters |
|---|---|
| `type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` |   |

### setDuration

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

```
fun setDuration(duration: Int): Unit
```

sets the duration of the transition if set to \<8 it will be set to 8

| Parameters |
|---|---|
| `duration: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | in milliseconds (min is 8) |

### setEnabled

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

```
fun setEnabled(enable: Boolean): Unit
```

enable or disable the Transition. If a Transition is disabled it is not eligible for automatically switching to.

| Parameters |
|---|---|
| `enable: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` |   |

### setInterpolatorInfo

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

```
fun setInterpolatorInfo(
    interpolator: Int,
    interpolatorString: String!,
    interpolatorID: Int
): Unit
```

Sets the interpolation used for this transition. The call support standard types EASE_IN_OUT etc.: setInterpolatorInfo(MotionScene.Transition.INTERPOLATE_EASE_IN_OUT, null, 0); setInterpolatorInfo(MotionScene.Transition.INTERPOLATE_OVERSHOOT, null, 0); Strings such as "cubic(...)" , "spline(...)" setInterpolatorInfo( MotionScene.Transition.INTERPOLATE_SPLINE_STRING, "cubic(1,0,0,1)", 0); Android interpolators in res/anim : setInterpolatorInfo( MotionScene.Transition.INTERPOLATE_REFERENCE_ID, null, R.anim....);

| Parameters |
|---|---|
| `interpolator: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | sets the type of interpolation (MotionScene.Transition.INTERPOLATE_\*) |
| `interpolatorString: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | sets a string based custom interpolation |
| `interpolatorID: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | sets the id of a Android Transition |

### setLayoutDuringTransition

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

```
fun setLayoutDuringTransition(mode: Int): Unit
```

set the mode of layout during transition

| Parameters |
|---|---|
| `mode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` |   |

### setOnSwipe

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

```
fun setOnSwipe(onSwipe: OnSwipe!): Unit
```

Set the onSwipe for this Transition

| Parameters |
|---|---|
| `onSwipe: https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/OnSwipe!` |   |

### setOnTouchUp

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

```
fun setOnTouchUp(touchUpMode: Int): Unit
```

Set the on touch up mode

| Parameters |
|---|---|
| `touchUpMode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` |   |

### setPathMotionArc

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

```
fun setPathMotionArc(arcMode: Int): Unit
```

Sets the pathMotionArc for the all motions in this transition. if set to UNSET (default) it reverts to the setting of the constraintSet

| Parameters |
|---|---|
| `arcMode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` |   |

### setStagger

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

```
fun setStagger(stagger: Float): Unit
```

Sets the stagger value. A Stagger value of zero means no stagger. A Stagger value of 1 means the last view starts moving at .5 progress

| Parameters |
|---|---|
| `stagger: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` |   |

### setTransitionFlag

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

```
fun setTransitionFlag(flag: Int): Unit
```