---
title: "player(_:didRequestMatchWithOtherPlayers:)"
framework: gamekit
role: symbol
role_heading: Instance Method
path: "gamekit/gkturnbasedeventlistener/player(_:didrequestmatchwithotherplayers:)"
---

# player(_:didRequestMatchWithOtherPlayers:)

Handles when the player uses Game Center to start a match with other players.

## Declaration

```swift
optional func player(_ player: GKPlayer, didRequestMatchWithOtherPlayers playersToInvite: [GKPlayer])
```

## Parameters

- `player`: The player who receives this turn-based event.
- `playersToInvite`: The players to invite in the view controller interface.

## Mentioned in

Starting turn-based matches and passing turns between players

## Discussion

Discussion Implement this method to present a turn-based matchmaker interface configured with the players to invite: Create a GKMatchRequest object. Set the match request’s recipients property to playersToInvite. Create a GKTurnBasedMatchmakerViewController with the match request object. Present the turn-based matchmaker view controller.

## See Also

### Handling Match-Related Events

- [player(_:receivedTurnEventFor:didBecomeActive:)](gamekit/gkturnbasedeventlistener/player(_:receivedturneventfor:didbecomeactive:).md)
- [player(_:matchEnded:)](gamekit/gkturnbasedeventlistener/player(_:matchended:).md)
- [player(_:wantsToQuitMatch:)](gamekit/gkturnbasedeventlistener/player(_:wantstoquitmatch:).md)
- [player(_:didRequestMatchWithPlayers:)](gamekit/gkturnbasedeventlistener/player(_:didrequestmatchwithplayers:).md)
