---
title: inviteeResponseHandler
framework: gamekit
role: symbol
role_heading: Instance Property
path: gamekit/gkmatchrequest/inviteeresponsehandler
---

# inviteeResponseHandler

Handles when a player responds to an invitation.

## Declaration

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

## Discussion

Discussion The block takes the following parameters: 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.

## See Also

### Deprecated methods and properties

- [GKInviteeResponse](gamekit/gkinviteeresponse.md)
- [playersToInvite](gamekit/gkmatchrequest/playerstoinvite.md)
- [restrictToAutomatch](gamekit/gkmatchrequest/restricttoautomatch.md)
