# ChainRun

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

*** ** * ** ***


```
class ChainRun : WidgetRun
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.constraintlayout.core.widgets.analyzer.WidgetRun](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/WidgetRun) ||
|   | ↳ | [androidx.constraintlayout.core.widgets.analyzer.ChainRun](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/ChainRun) |

*** ** * ** ***

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/ChainRun#ChainRun(androidx.constraintlayout.core.widgets.ConstraintWidget,int)(widget: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/ConstraintWidget!, orientation: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/ChainRun#applyToWidget()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/ChainRun#getWrapDimension()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/ChainRun#toString()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/ChainRun#update(androidx.constraintlayout.core.widgets.analyzer.Dependency)(dependency: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/Dependency!)` |

| ### Inherited functions |
|---|
| From [androidx.constraintlayout.core.widgets.analyzer.Dependency](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/Dependency) |---|---| | `abstract https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/Dependency#update(androidx.constraintlayout.core.widgets.analyzer.Dependency)(node: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/Dependency!)` | |
| From [androidx.constraintlayout.core.widgets.analyzer.WidgetRun](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/WidgetRun) |---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/WidgetRun#addTarget(androidx.constraintlayout.core.widgets.analyzer.DependencyNode,androidx.constraintlayout.core.widgets.analyzer.DependencyNode,int)(node: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/DependencyNode!, target: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/DependencyNode!, margin: 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/widgets/analyzer/WidgetRun#addTarget(androidx.constraintlayout.core.widgets.analyzer.DependencyNode,androidx.constraintlayout.core.widgets.analyzer.DependencyNode,int,androidx.constraintlayout.core.widgets.analyzer.DimensionDependency)( node: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/DependencyNode!, target: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/DependencyNode!, marginFactor: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, dimensionDependency: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/DimensionDependency! )` | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/WidgetRun#getLimitedDimension(int,int)(dimension: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, orientation: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` | | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/DependencyNode!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/WidgetRun#getTarget(androidx.constraintlayout.core.widgets.ConstraintAnchor)(anchor: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/ConstraintAnchor!)` | | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/DependencyNode!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/WidgetRun#getTarget(androidx.constraintlayout.core.widgets.ConstraintAnchor,int)(anchor: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/ConstraintAnchor!, orientation: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/WidgetRun#isCenterConnection()()` | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/WidgetRun#isDimensionResolved()()` | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/WidgetRun#isResolved()()` | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/WidgetRun#updateRunCenter(androidx.constraintlayout.core.widgets.analyzer.Dependency,androidx.constraintlayout.core.widgets.ConstraintAnchor,androidx.constraintlayout.core.widgets.ConstraintAnchor,int)( dependency: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/Dependency!, startAnchor: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/ConstraintAnchor!, endAnchor: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/ConstraintAnchor!, orientation: 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/widgets/analyzer/WidgetRun#updateRunEnd(androidx.constraintlayout.core.widgets.analyzer.Dependency)(dependency: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/Dependency!)` | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/WidgetRun#updateRunStart(androidx.constraintlayout.core.widgets.analyzer.Dependency)(dependency: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/Dependency!)` | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/WidgetRun#wrapSize(int)(direction: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` | |

| ### Inherited properties |
|---|
| From [androidx.constraintlayout.core.widgets.analyzer.WidgetRun](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/WidgetRun) |---|---| | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/DependencyNode!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/WidgetRun#end()` | | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/ConstraintWidget.DimensionBehaviour!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/WidgetRun#mDimensionBehavior()` | | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/WidgetRun.RunType!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/WidgetRun#mRunType()` | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/WidgetRun#matchConstraintsType()` | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/WidgetRun#orientation()` | | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/DependencyNode!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/WidgetRun#start()` | |

## Public constructors

### ChainRun

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

```
ChainRun(widget: ConstraintWidget!, orientation: Int)
```

## Public functions

### applyToWidget

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

```
fun applyToWidget(): Unit
```

### getWrapDimension

```
fun getWrapDimension(): Long
```

### toString

```
fun toString(): String!
```

### update

```
fun update(dependency: Dependency!): Unit
```