# Transition.WidgetState

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

*** ** * ** ***


```
class Transition.WidgetState
```

<br />

*** ** * ** ***

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/Transition.WidgetState#WidgetState()()` |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/WidgetFrame!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/Transition.WidgetState#getFrame(int)(type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/Transition.WidgetState#interpolate(int,int,float,androidx.constraintlayout.core.state.Transition)( parentWidth: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, parentHeight: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, progress: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, transition: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/Transition! )` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/Transition.WidgetState#setKeyAttribute(androidx.constraintlayout.core.motion.utils.TypedBundle)(prop: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/TypedBundle!)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/Transition.WidgetState#setKeyAttribute(androidx.constraintlayout.core.motion.utils.TypedBundle,androidx.constraintlayout.core.motion.CustomVariable[])(prop: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/TypedBundle!, custom: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/CustomVariable!>!)` Set tge keyAttribute bundle and associated custom attributes |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/Transition.WidgetState#setKeyCycle(androidx.constraintlayout.core.motion.utils.TypedBundle)(prop: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/TypedBundle!)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/Transition.WidgetState#setKeyPosition(androidx.constraintlayout.core.motion.utils.TypedBundle)(prop: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/TypedBundle!)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/Transition.WidgetState#setPathRelative(androidx.constraintlayout.core.state.Transition.WidgetState)(widgetState: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/Transition.WidgetState!)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/Transition.WidgetState#update(androidx.constraintlayout.core.widgets.ConstraintWidget,int)(child: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/ConstraintWidget!, state: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |

## Public constructors

### WidgetState

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

```
WidgetState()
```

## Public functions

### getFrame

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

```
fun getFrame(type: Int): WidgetFrame!
```

### interpolate

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

```
fun interpolate(
    parentWidth: Int,
    parentHeight: Int,
    progress: Float,
    transition: Transition!
): Unit
```

### setKeyAttribute

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

```
fun setKeyAttribute(prop: TypedBundle!): Unit
```

### setKeyAttribute

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

```
fun setKeyAttribute(prop: TypedBundle!, custom: Array<CustomVariable!>!): Unit
```

Set tge keyAttribute bundle and associated custom attributes

| Parameters |
|---|---|
| `prop: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/TypedBundle!` |   |
| `custom: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/CustomVariable!>!` |   |

### setKeyCycle

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

```
fun setKeyCycle(prop: TypedBundle!): Unit
```

### setKeyPosition

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

```
fun setKeyPosition(prop: TypedBundle!): Unit
```

### setPathRelative

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

```
fun setPathRelative(widgetState: Transition.WidgetState!): Unit
```

### update

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

```
fun update(child: ConstraintWidget!, state: Int): Unit
```