# Reference

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

*** ** * ** ***


```
interface Reference
```

<br />

Known direct subclasses [ConstraintReference](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/ConstraintReference), [GuidelineReference](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/GuidelineReference)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/ConstraintReference` |   |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/GuidelineReference` |   |

Known indirect subclasses [AlignHorizontallyReference](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/AlignHorizontallyReference), [AlignVerticallyReference](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/AlignVerticallyReference), [BarrierReference](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/BarrierReference), [ChainReference](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/ChainReference), [FlowReference](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/FlowReference), [GridReference](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/GridReference), [HelperReference](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/HelperReference), [HorizontalChainReference](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/HorizontalChainReference), [VerticalChainReference](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/VerticalChainReference)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/AlignHorizontallyReference` |   |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/AlignVerticallyReference` |   |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/BarrierReference` |   |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/ChainReference` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/HelperReference` for Chains. |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/FlowReference` | The FlowReference class can be used to store the relevant properties of a Flow Helper when parsing the Flow Helper information in a JSON representation. |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/GridReference` | A HelperReference of a Grid Helper that helps enable Grid in Compose |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/HelperReference` |   |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/HorizontalChainReference` |   |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/VerticalChainReference` |   |

*** ** * ** ***

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/Reference#apply()()` |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/ConstraintWidget!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/Reference#getConstraintWidget()()` |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/helpers/Facade!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/Reference#getFacade()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/Reference#getKey()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/Reference#setConstraintWidget(androidx.constraintlayout.core.widgets.ConstraintWidget)(widget: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/ConstraintWidget!)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/Reference#setKey(java.lang.Object)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!)` |

## Public functions

### apply

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

```
fun apply(): Unit
```

### getConstraintWidget

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

```
fun getConstraintWidget(): ConstraintWidget!
```

### getFacade

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

```
fun getFacade(): Facade!
```

### getKey

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

```
fun getKey(): Any!
```

### setConstraintWidget

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

```
fun setConstraintWidget(widget: ConstraintWidget!): Unit
```

### setKey

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

```
fun setKey(key: Any!): Unit
```