# ConstraintLayout.ValueModifier

Artifact: [androidx.constraintlayout:constraintlayout](https://developer.android.com/jetpack/androidx/releases/constraintlayout) [View Source](https://cs.android.com/search?q=file:androidx/constraintlayout/widget/ConstraintLayout.java+class:androidx.constraintlayout.widget.ConstraintLayout.ValueModifier) Added in [2.2.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#2.2.2)

*** ** * ** ***


```
interface ConstraintLayout.ValueModifier
```

<br />

*** ** * ** ***

This is the interface to a valued modifier. implement this and add it using addValueModifier

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/widget/ConstraintLayout.ValueModifier#update(int,int,int,android.view.View,androidx.constraintlayout.widget.ConstraintLayout.LayoutParams)( width: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, height: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, view: https://developer.android.com/reference/android/view/View.html!, params: https://developer.android.com/reference/kotlin/androidx/constraintlayout/widget/ConstraintLayout.LayoutParams! )` if needed in the implementation modify params and return true |

## Public functions

### update

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

```
fun update(
    width: Int,
    height: Int,
    id: Int,
    view: View!,
    params: ConstraintLayout.LayoutParams!
): Boolean
```

if needed in the implementation modify params and return true

| Parameters |
|---|---|
| `width: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | of the ConstraintLayout in pixels |
| `height: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | of the ConstraintLayout in pixels |
| `id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The id of the view which |
| `view: https://developer.android.com/reference/android/view/View.html!` | The View |
| `params: https://developer.android.com/reference/kotlin/androidx/constraintlayout/widget/ConstraintLayout.LayoutParams!` | The layout params of the view |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true if you modified the layout params |