---
title: playerVoiceChatStateDidChangeHandler
framework: gamekit
role: symbol
role_heading: Instance Property
path: gamekit/gkvoicechat/playervoicechatstatedidchangehandler
---

# playerVoiceChatStateDidChangeHandler

A method that handles when a player’s voice chat changes state.

## Declaration

```swift
var playerVoiceChatStateDidChangeHandler: (GKPlayer, GKVoiceChat.PlayerState) -> Void { get set }
```

## Mentioned in

Adding voice chat to multiplayer games

## Discussion

Discussion Set this property to update your interface when the state of any player in the chat changes, including the local player. For example, update the names or avatars when the players are connecting, speaking, or disconnecting. The handler receives the following parameters:

## See Also

### Receiving Updates About Other Participants

- [GKVoiceChat.PlayerState](gamekit/gkvoicechat/playerstate.md)
