<!--
{
  "availability" : [
    "iOS: 6.0.0 - 7.0.0",
    "iPadOS: 6.0.0 - 7.0.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/GKTurnBasedEventHandlerDelegate/handleTurnEvent(for:didBecomeActive:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(pl)GKTurnBasedEventHandlerDelegate(im)handleTurnEventForMatch:didBecomeActive:"
  },
  "title" : "handleTurnEvent(for:didBecomeActive:)"
}
-->

# handleTurnEvent(for:didBecomeActive:)

Sent to the delegate when it is the local player’s turn to act in a turn-based match.

```
func handleTurnEvent(for match: GKTurnBasedMatch, didBecomeActive: Bool)
```

## Parameters

`match`

A match object containing the current state of the match.

`didBecomeActive`

<doc://com.apple.documentation/documentation/Swift/true> if the game was launched or brought to the foreground to handle the event.

## Discussion

When your delegate receives this message, the player has accepted a push notification for a match already in progress. Your game should end whatever task it was performing and switch to the match information provided by the match object.

---

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)