# 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)

*** ** * ** ***


```
public interface ConstraintLayout.ValueModifier
```

<br />

*** ** * ** ***

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

## Summary

| ### Public methods |
|---|---|
| `abstract boolean` | `https://developer.android.com/reference/androidx/constraintlayout/widget/ConstraintLayout.ValueModifier#update(int,int,int,android.view.View,androidx.constraintlayout.widget.ConstraintLayout.LayoutParams)( int width, int height, int id, https://developer.android.com/reference/android/view/View.html view, https://developer.android.com/reference/androidx/constraintlayout/widget/ConstraintLayout.LayoutParams params )` if needed in the implementation modify params and return true |

## Public methods

### update

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

```
abstract boolean update(
    int width,
    int height,
    int id,
    View view,
    ConstraintLayout.LayoutParams params
)
```

if needed in the implementation modify params and return true

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

| Returns |
|---|---|
| `boolean` | true if you modified the layout params |