<!--
{
  "availability" : [
    "iOS: 4.1.0 - 8.0.0",
    "iPadOS: 4.1.0 - 8.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "macOS: 10.8.0 - 10.10.0",
    "visionOS: 1.0.0 - 1.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKVoiceChat/playerStateUpdateHandler",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKVoiceChat(py)playerStateUpdateHandler"
  },
  "title" : "playerStateUpdateHandler"
}
-->

# playerStateUpdateHandler

Handles when a player in the chat changes state.

```
var playerStateUpdateHandler: (String, GKVoiceChat.PlayerState) -> Void { get set }
```

## Discussion

Your game sets this property with a block that GameKit calls when the state of any participant in the chat changes (including the local player). The block receives the following parameters:

- `playerID`: The player identifier for the player whose status changed.
- `state`: The new state of the player. See [`GKVoiceChat.PlayerState`](/documentation/GameKit/GKVoiceChat/PlayerState).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)