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

# inviteeResponseHandler

Handles when a player responds to an invitation.

```
var inviteeResponseHandler: ((String, GKInviteeResponse) -> Void)? { get set }
```

## Discussion

The block takes the following parameters:

- *playerID*: The identifier for the player.
- *GKInviteeResponse*: The nature of the response. See [`GKInviteeResponse`](/documentation/GameKit/GKInviteeResponse).

An invitee response handler is called whenever you programmatically invite specific players to join a match. It is called once for each player invited to the match. Typically, your game uses the responses to update the custom user interface. For example, you want the player to be able to perform any of the following tasks:

- Start the match.
- Invite an additional set of specific players.
- Use matchmaking to fill the remaining match slots.

---

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)