---
title: "player(_:didRequestMatchWithRecipients:)"
framework: gamekit
role: symbol
role_heading: Instance Method
path: "gamekit/gkinviteeventlistener/player(_:didrequestmatchwithrecipients:)"
---

# player(_:didRequestMatchWithRecipients:)

Handles the event when the local player sends other players an invitation to join a match.

## Declaration

```swift
optional func player(_ player: GKPlayer, didRequestMatchWithRecipients recipientPlayers: [GKPlayer])
```

## Parameters

- `player`: The local player who sends the invitation.
- `recipientPlayers`: The players who receive invitations to join the match.

## Discussion

Discussion When GameKit calls this method, Game Center starts the matchmaking process.

## See Also

### Starting a New Match

- [player(_:didAccept:)](gamekit/gkinviteeventlistener/player(_:didaccept:).md)
- [player(_:didRequestMatchWithPlayers:)](gamekit/gkinviteeventlistener/player(_:didrequestmatchwithplayers:).md)
