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

# player(_:receivedTurnEventFor:didBecomeActive:)

Handles turn-based match events, such as accepting invitations, passing turns, and saving match data.

```
optional func player(_ player: GKPlayer, receivedTurnEventFor match: GKTurnBasedMatch, didBecomeActive: Bool)
```

## Parameters

`player`

The player who receives this turn-based event.

`match`

The match related to this turn-based event.

`didBecomeActive`

<doc://com.apple.documentation/documentation/Swift/true> if the system launches the game to deliver the turn-based event; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

GameKit invokes this method when these turn-based events occur:

- GameKit passes the turn to the player.
- The player accepts an invitation from another participant.
- The timeout for the player to take their turn is about to expire.
- A participant saves match data to Game Center.
- Another participant sends a reminder to the player.
- The player opens an existing or completed match.
- The player forfeits a match.

---

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)