<!--
{
  "availability" : [
    "iOS: 10.0.0 - 12.0.0",
    "iPadOS: 10.0.0 - 12.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "macOS: 10.12.0 - 10.14.0",
    "tvOS: 10.0.0 - 12.0.0",
    "visionOS: 1.0.0 - 1.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKGameSessionEventListener",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(pl)GKGameSessionEventListener"
  },
  "title" : "GKGameSessionEventListener"
}
-->

# GKGameSessionEventListener

An event listener that handles game session events.

```
protocol GKGameSessionEventListener : NSObjectProtocol
```

## Topics

### Changing Player Status

[`session(_:didAdd:)`](/documentation/GameKit/GKGameSessionEventListener/session(_:didAdd:))

Tells the listener a new player has been added to a game session.

[`session(_:didRemove:)`](/documentation/GameKit/GKGameSessionEventListener/session(_:didRemove:))

Tells the listener a player left a game session.

[`session(_:player:didChange:)`](/documentation/GameKit/GKGameSessionEventListener/session(_:player:didChange:))

Tells the listener a player’s connection state has changed.

[`GKConnectionState`](/documentation/GameKit/GKConnectionState)

Possible connection states for a player

### Transferring Data

[`session(_:didReceive:from:)`](/documentation/GameKit/GKGameSessionEventListener/session(_:didReceive:from:))

Tells the listener the player received data from another player.

[`session(_:didReceiveMessage:with:from:)`](/documentation/GameKit/GKGameSessionEventListener/session(_:didReceiveMessage:with:from:))

Tells the listener a player has received a message from another player.

[`session(_:player:didSave:)`](/documentation/GameKit/GKGameSessionEventListener/session(_:player:didSave:))

Tells the listener data was saved by a player.



---

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)