# State

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

*** ** * ** ***


```
class State
```

<br />

Known direct subclasses [State](https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/State)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/State` | The state of the `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ConstraintLayout.composable#ConstraintLayout(androidx.compose.ui.Modifier,kotlin.Int,androidx.compose.animation.core.AnimationSpec,kotlin.Function0,kotlin.Function1)` solver. |

*** ** * ** ***

Represents a full state of a ConstraintLayout

## Summary

| ### Nested types |
|---|
| `enum https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State.Chain` |
| `enum https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State.Constraint` |
| `enum https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State.Direction` |
| `enum https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State.Helper` |
| `enum https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State.Wrap` |

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#PARENT()` |

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

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#apply(androidx.constraintlayout.core.widgets.ConstraintWidgetContainer)(container: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/ConstraintWidgetContainer!)` |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/BarrierReference!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#barrier(java.lang.Object,androidx.constraintlayout.core.state.State.Direction)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!, direction: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State.Direction!)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#baselineNeededFor(java.lang.Object)(id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!)` Baseline is needed for this object |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/AlignHorizontallyReference!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#centerHorizontally(java.lang.Object...)(references: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!>!)` |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/AlignVerticallyReference!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#centerVertically(java.lang.Object...)(references: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!>!)` |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/ConstraintReference!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#constraints(java.lang.Object)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#convertDimension(java.lang.Object)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!)` Implements a conversion function for values, returning int. |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/ConstraintReference!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#createConstraintReference(java.lang.Object)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!)` Create a new reference given a key. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#directMapping()()` |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/FlowReference!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#getFlow(java.lang.Object,boolean)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!, vertical: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Gets a reference to a Flow object. |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/GridReference` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#getGrid(java.lang.Object,java.lang.String)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html, gridType: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` Get a Grid reference |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/FlowReference!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#getHorizontalFlow()()` Get a HorizontalFlowReference |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/FlowReference!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#getHorizontalFlow(java.lang.Object...)(references: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!>!)` Get a HorizontalFlowReference and add it to references |
| `https://developer.android.com/reference/java/util/ArrayList.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#getIdsForTag(java.lang.String)(tag: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)` |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/FlowReference!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#getVerticalFlow()()` Get a VerticalFlowReference |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/FlowReference!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#getVerticalFlow(java.lang.Object...)(references: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!>!)` Get a VerticalFlowReference and add it to references |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/GuidelineReference!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#guideline(java.lang.Object,int)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!, orientation: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#height(androidx.constraintlayout.core.state.Dimension)(dimension: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/Dimension!)` |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/HelperReference!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#helper(java.lang.Object,androidx.constraintlayout.core.state.State.Helper)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!, type: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State.Helper!)` |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/HorizontalChainReference!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#horizontalChain()()` |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/HorizontalChainReference!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#horizontalChain(java.lang.Object...)(references: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!>!)` |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/GuidelineReference!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#horizontalGuideline(java.lang.Object)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#isBaselineNeeded(androidx.constraintlayout.core.widgets.ConstraintWidget)(constraintWidget: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/ConstraintWidget!)` Does this constraintWidget need a baseline |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `[isLtr](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#isLtr())()` **This function is deprecated.** For consistency, use `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#isRtl()` instead. <br /> |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#isRtl()()` Returns true if layout direction is right to left. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#map(java.lang.Object,java.lang.Object)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!, view: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#reset()()` Clear the state |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#sameFixedHeight(int)(height: 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/state/State#sameFixedWidth(int)(width: 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/State#setDpToPixel(androidx.constraintlayout.core.state.CorePixelDp)(dpToPixel: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/CorePixelDp!)` Set the function that converts dp to Pixels |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#setHeight(androidx.constraintlayout.core.state.Dimension)(dimension: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/Dimension!)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setLtr](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#setLtr(boolean))(isLtr: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` **This function is deprecated.** For consistency, use `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#setRtl(boolean)` instead. <br /> |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#setRtl(boolean)(isRtl: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Set whether the layout direction is right to left (Rtl). |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#setTag(java.lang.String,java.lang.String)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, tag: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)` |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#setWidth(androidx.constraintlayout.core.state.Dimension)(dimension: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/Dimension!)` |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/VerticalChainReference!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#verticalChain()()` |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/VerticalChainReference!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#verticalChain(java.lang.Object...)(references: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!>!)` |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/GuidelineReference!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#verticalGuideline(java.lang.Object)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!)` |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#width(androidx.constraintlayout.core.state.Dimension)(dimension: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/Dimension!)` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/ConstraintReference!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#mParent()` |

| ### Protected properties |
|---|---|
| `https://developer.android.com/reference/java/util/HashMap.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!, https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/HelperReference!>!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#mHelperReferences()` |
| `https://developer.android.com/reference/java/util/HashMap.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!, https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/Reference!>!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#mReferences()` |

## Constants

### PARENT

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

```
const val PARENT: Int!
```

## Public constructors

### State

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

```
State()
```

## Public functions

### apply

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

```
fun apply(container: ConstraintWidgetContainer!): Unit
```

### barrier

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

```
fun barrier(key: Any!, direction: State.Direction!): BarrierReference!
```

### baselineNeededFor

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

```
fun baselineNeededFor(id: Any!): Unit
```

Baseline is needed for this object

### centerHorizontally

```
fun centerHorizontally(references: Array<Any!>!): AlignHorizontallyReference!
```

### centerVertically

```
fun centerVertically(references: Array<Any!>!): AlignVerticallyReference!
```

### constraints

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

```
fun constraints(key: Any!): ConstraintReference!
```

### convertDimension

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

```
fun convertDimension(value: Any!): Int
```

Implements a conversion function for values, returning int. This can be used in case values (e.g. margins) are represented via an object, not directly an int.

| Parameters |
|---|---|
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!` | the object to convert from |

### createConstraintReference

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

```
fun createConstraintReference(key: Any!): ConstraintReference!
```

Create a new reference given a key.

### directMapping

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

```
fun directMapping(): Unit
```

### getFlow

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

```
fun getFlow(key: Any!, vertical: Boolean): FlowReference!
```

Gets a reference to a Flow object. Creating it if needed.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!` | id of the reference |
| `vertical: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | is it a vertical or horizontal flow |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/FlowReference!` | a FlowReference |

### getGrid

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

```
fun getGrid(key: Any, gridType: String): GridReference
```

Get a Grid reference

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html` | name of the reference object |
| `gridType: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | type of Grid pattern - Grid, Row, or Column |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/GridReference` | a GridReference object |

### getHorizontalFlow

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

```
fun getHorizontalFlow(): FlowReference!
```

Get a HorizontalFlowReference

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/FlowReference!` | a HorizontalFlowReference |

### getHorizontalFlow

```
fun getHorizontalFlow(references: Array<Any!>!): FlowReference!
```

Get a HorizontalFlowReference and add it to references

| Parameters |
|---|---|
| `references: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!>!` | references where we the HorizontalFlowReference |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/FlowReference!` | a HorizontalFlowReference |

### getIdsForTag

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

```
fun getIdsForTag(tag: String!): ArrayList<String!>!
```

### getVerticalFlow

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

```
fun getVerticalFlow(): FlowReference!
```

Get a VerticalFlowReference

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/FlowReference!` | a VerticalFlowReference |

### getVerticalFlow

```
fun getVerticalFlow(references: Array<Any!>!): FlowReference!
```

Get a VerticalFlowReference and add it to references

| Parameters |
|---|---|
| `references: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!>!` | where we add the VerticalFlowReference |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/FlowReference!` | a VerticalFlowReference |

### guideline

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

```
fun guideline(key: Any!, orientation: Int): GuidelineReference!
```

### height

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

```
fun height(dimension: Dimension!): State!
```

### helper

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

```
fun helper(key: Any!, type: State.Helper!): HelperReference!
```

### horizontalChain

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

```
fun horizontalChain(): HorizontalChainReference!
```

### horizontalChain

```
fun horizontalChain(references: Array<Any!>!): HorizontalChainReference!
```

### horizontalGuideline

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

```
fun horizontalGuideline(key: Any!): GuidelineReference!
```

### isBaselineNeeded

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

```
fun isBaselineNeeded(constraintWidget: ConstraintWidget!): Boolean
```

Does this constraintWidget need a baseline

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true if the constraintWidget needs a baseline |

### isLtr

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

```
fun [isLtr](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#isLtr())(): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
>
> For consistency, use `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#isRtl()` instead.

Returns true if layout direction is left to right. False for right to left.

### isRtl

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

```
fun isRtl(): Boolean
```

Returns true if layout direction is right to left. False for left to right.

### map

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

```
fun map(key: Any!, view: Any!): Unit
```

### reset

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

```
fun reset(): Unit
```

Clear the state

### sameFixedHeight

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

```
fun sameFixedHeight(height: Int): Boolean
```

### sameFixedWidth

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

```
fun sameFixedWidth(width: Int): Boolean
```

### setDpToPixel

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

```
fun setDpToPixel(dpToPixel: CorePixelDp!): Unit
```

Set the function that converts dp to Pixels

### setHeight

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

```
fun setHeight(dimension: Dimension!): State!
```

### setLtr

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

```
fun [setLtr](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#setLtr(boolean))(isLtr: Boolean): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> For consistency, use `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/State#setRtl(boolean)` instead.

Set whether the layout direction is left to right (Ltr).

### setRtl

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

```
fun setRtl(isRtl: Boolean): Unit
```

Set whether the layout direction is right to left (Rtl).

### setTag

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

```
fun setTag(key: String!, tag: String!): Unit
```

### setWidth

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

```
fun setWidth(dimension: Dimension!): State!
```

### verticalChain

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

```
fun verticalChain(): VerticalChainReference!
```

### verticalChain

```
fun verticalChain(references: Array<Any!>!): VerticalChainReference!
```

### verticalGuideline

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

```
fun verticalGuideline(key: Any!): GuidelineReference!
```

### width

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

```
fun width(dimension: Dimension!): State!
```

## Public properties

### mParent

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

```
val mParent: ConstraintReference!
```

## Protected properties

### mHelperReferences

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

```
protected val mHelperReferences: HashMap<Any!, HelperReference!>!
```

### mReferences

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

```
protected val mReferences: HashMap<Any!, Reference!>!
```