---
title: valueChangedHandler
framework: gamecontroller
role: symbol
role_heading: Instance Property
path: gamecontroller/gcmotion/valuechangedhandler
---

# valueChangedHandler

The block that the profile calls when an element’s value changes.

## Declaration

```swift
var valueChangedHandler: GCMotionValueChangedHandler? { get set }
```

## Discussion

Discussion If multiple elements change values at the same time, the profile calls this block once for each element that changes. If the value of a subelement changes, the profile only calls the block for the containing element.

## See Also

### Receiving a Callback When Input Values Change

- [GCMotionValueChangedHandler](gamecontroller/gcmotionvaluechangedhandler.md)
