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

# player(_:didRequestMatchWithPlayers:)

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

```
optional func player(_ player: GKPlayer, didRequestMatchWithPlayers playerIDsToInvite: [String])
```

## Parameters

`player`

The player who receives this turn-based event. .

`playerIDsToInvite`

The identifiers for the players to invite in the view controller interface.

## Discussion

Implement this method to present a [`GKTurnBasedMatchmakerViewController`](/documentation/GameKit/GKTurnBasedMatchmakerViewController) configured with the players to invite specified by the `playerIDsToInvite` parameter.

---

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)