---
title: recipientResponseHandler
framework: gamekit
role: symbol
role_heading: Instance Property
path: gamekit/gkmatchrequest/recipientresponsehandler
---

# recipientResponseHandler

A method that handles when a player responds to an invitation to join a match.

## Declaration

```swift
var recipientResponseHandler: ((GKPlayer, GKInviteRecipientResponse) -> Void)? { get set }
```

## Discussion

Discussion The block receives the following parameters: GameKit calls this handler once for each player who receives an invitation to join the match. You can use this handler to update your interface to show the individual player responses.

## See Also

### Inviting players

- [inviteMessage](gamekit/gkmatchrequest/invitemessage.md)
- [recipients](gamekit/gkmatchrequest/recipients.md)
- [GKInviteRecipientResponse](gamekit/gkinviterecipientresponse.md)
