# ConstraintSetParser.LayoutVariables

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

*** ** * ** ***


```
class ConstraintSetParser.LayoutVariables
```

<br />

*** ** * ** ***

Provide the storage for managing Variables in the system. When the json has a variable:{ } section this is used.

## Summary

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

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/state/ConstraintSetParser.LayoutVariables#putOverride(java.lang.String,float)(elementName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` insert an override variable |

## Public constructors

### LayoutVariables

Added in 1.1.2

```
LayoutVariables()
```

## Public functions

### putOverride

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

```
fun putOverride(elementName: String!, value: Float): Unit
```

insert an override variable

| Parameters |
|---|---|
| `elementName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | the name |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | the value a float |