---
title: positionDidChangeHandler
framework: gamecontroller
role: symbol
role_heading: Instance Property
path: gamecontroller/gcswitchpositioninput/positiondidchangehandler
---

# positionDidChangeHandler

The block that the profile calls when the value of the switch changes.

## Declaration

```swift
var positionDidChangeHandler: ((any GCPhysicalInputElement, any GCSwitchPositionInput, Int) -> Void)? { get set }
```

## Discussion

Discussion The block’s parameters are:

## See Also

### Getting the position

- [position](gamecontroller/gcswitchpositioninput/position.md)
- [lastPositionTimestamp](gamecontroller/gcswitchpositioninput/lastpositiontimestamp.md)
- [lastPositionLatency](gamecontroller/gcswitchpositioninput/lastpositionlatency.md)
