# WidgetRun

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

*** ** * ** ***


```
abstract class WidgetRun : Dependency
```

<br />

Known direct subclasses [ChainRun](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/ChainRun), [HorizontalWidgetRun](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/HorizontalWidgetRun), [VerticalWidgetRun](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/VerticalWidgetRun)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/ChainRun` |   |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/HorizontalWidgetRun` |   |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/VerticalWidgetRun` |   |

*** ** * ** ***

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/WidgetRun#WidgetRun(androidx.constraintlayout.core.widgets.ConstraintWidget)(widget: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/ConstraintWidget!)` |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/WidgetRun#getWrapDimension()()` |
| `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#update(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)` |

| ### Protected functions |
|---|---|
| `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/-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!)` |

| ### Public properties |
|---|---|
| `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://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()` |

| ### Protected properties |
|---|---|
| `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()` |

## Public constructors

### WidgetRun

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

```
WidgetRun(widget: ConstraintWidget!)
```

## Public functions

### getWrapDimension

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

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

### isCenterConnection

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

```
fun isCenterConnection(): Boolean
```

### isDimensionResolved

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

```
fun isDimensionResolved(): Boolean
```

### isResolved

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

```
fun isResolved(): Boolean
```

### update

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

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

### wrapSize

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

```
fun wrapSize(direction: Int): Long
```

## Protected functions

### addTarget

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

```
protected fun addTarget(node: DependencyNode!, target: DependencyNode!, margin: Int): Unit
```

### addTarget

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

```
protected fun addTarget(
    node: DependencyNode!,
    target: DependencyNode!,
    marginFactor: Int,
    dimensionDependency: DimensionDependency!
): Unit
```

### getLimitedDimension

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

```
protected fun getLimitedDimension(dimension: Int, orientation: Int): Int
```

### getTarget

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

```
protected fun getTarget(anchor: ConstraintAnchor!): DependencyNode!
```

### getTarget

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

```
protected fun getTarget(anchor: ConstraintAnchor!, orientation: Int): DependencyNode!
```

### updateRunCenter

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

```
protected fun updateRunCenter(
    dependency: Dependency!,
    startAnchor: ConstraintAnchor!,
    endAnchor: ConstraintAnchor!,
    orientation: Int
): Unit
```

### updateRunEnd

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

```
protected fun updateRunEnd(dependency: Dependency!): Unit
```

### updateRunStart

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

```
protected fun updateRunStart(dependency: Dependency!): Unit
```

## Public properties

### end

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

```
val end: DependencyNode!
```

### matchConstraintsType

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

```
val matchConstraintsType: Int
```

### orientation

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

```
val orientation: Int
```

### start

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

```
val start: DependencyNode!
```

## Protected properties

### mDimensionBehavior

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

```
protected val mDimensionBehavior: ConstraintWidget.DimensionBehaviour!
```

### mRunType

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

```
protected val mRunType: WidgetRun.RunType!
```