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

# GKMatchDelegate

An object that receives connection status and data transmitted in a multiplayer game.

```
protocol GKMatchDelegate : NSObjectProtocol
```

## Topics

### Receiving Data from Other Players

[`-  match:didReceiveData:forRecipient:fromRemotePlayer:`](/documentation/GameKit/GKMatchDelegate/match(_:didReceive:forRecipient:fromRemotePlayer:))

Processes the data sent from one player to another.

[`-  match:didReceiveData:fromRemotePlayer:`](/documentation/GameKit/GKMatchDelegate/match(_:didReceive:fromRemotePlayer:))

Processes the data sent from another player to the local player.

### Receiving State Notifications About Other Players

[`-  match:player:didChangeConnectionState:`](/documentation/GameKit/GKMatchDelegate/match(_:player:didChange:)-8ohgr)

Handles when players connect or disconnect from a match.

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

The possible states of a connection to a match.

### Handling Errors

[`-  match:didFailWithError:`](/documentation/GameKit/GKMatchDelegate/match(_:didFailWithError:))

Handles the local player’s connection errors to a match.

### Reinviting a Player

[`-  match:shouldReinviteDisconnectedPlayer:`](/documentation/GameKit/GKMatchDelegate/match(_:shouldReinviteDisconnectedPlayer:))

Determines whether the local player should reinvite another player who disconnected from a two-player match.

### Deprecated Methods and Properties

[`-  match:player:didChangeState:`](/documentation/GameKit/GKMatchDelegate/match(_:player:didChange:)-4eo7p)

Handles when a player connects or disconnects from a match.

[`-  match:didReceiveData:fromPlayer:`](/documentation/GameKit/GKMatchDelegate/match(_:didReceive:fromPlayer:))

Handles when a player receives data in a match.

[`-  match:shouldReinvitePlayer:`](/documentation/GameKit/GKMatchDelegate/match(_:shouldReinvitePlayer:))

Handles when a player disconnects from a two-player match.

## Relationships

### Inherits From

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

---

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)