<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKGameActivityListener",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(pl)GKGameActivityListener"
  },
  "title" : "GKGameActivityListener"
}
-->

# GKGameActivityListener

An object that responds to activity events.

```
protocol GKGameActivityListener
```

## Topics

### Responding to an activity

[`func player(GKPlayer, wantsToPlay: GKGameActivity, completionHandler: (Bool) -> Void)`](/documentation/GameKit/GKGameActivityListener/player(_:wantsToPlay:completionHandler:))

Called when a player intends to play for a specific game activity.
A completion handler block is provided to indicate whether the activity was successfully handled.

## Relationships

### Inherited By

[`GKLocalPlayerListener`](/documentation/GameKit/GKLocalPlayerListener)

---

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)