<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKTurnBasedEventListener/player(_:didRequestMatchWithOtherPlayers:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(pl)GKTurnBasedEventListener(im)player:didRequestMatchWithOtherPlayers:"
  },
  "title" : "player(_:didRequestMatchWithOtherPlayers:)"
}
-->

# player(_:didRequestMatchWithOtherPlayers:)

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

```
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.

## Discussion

Implement this method to present a turn-based matchmaker interface configured with the players to invite:

1. Create a [`GKMatchRequest`](/documentation/GameKit/GKMatchRequest) object.
2. Set the match request’s [`recipients`](/documentation/GameKit/GKMatchRequest/recipients) property to `playersToInvite`.
3. Create a [`GKTurnBasedMatchmakerViewController`](/documentation/GameKit/GKTurnBasedMatchmakerViewController) with the match request object.
4. Present the turn-based matchmaker view controller.

---

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)