# SharedValues.SharedValuesListener

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

*** ** * ** ***


```
interface SharedValues.SharedValuesListener
```

<br />

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

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/widget/ReactiveGuide` | Utility class representing a reactive Guideline helper object for `https://developer.android.com/reference/kotlin/androidx/constraintlayout/widget/ConstraintLayout`. |

*** ** * ** ***

interface for listeners

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/widget/SharedValues.SharedValuesListener#onNewValue(int,int,int)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, newValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, oldValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |

## Public functions

### onNewValue

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

```
fun onNewValue(key: Int, newValue: Int, oldValue: Int): Unit
```

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` |   |
| `newValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` |   |
| `oldValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` |   |