<!--
{
  "availability" : [
    "iOS: 6.0.0 - 7.0.0",
    "iPadOS: 6.0.0 - 7.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "macOS: 10.8.0 - 10.10.0",
    "tvOS: -",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKChallengeEventHandler/challengeEventHandler",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKChallengeEventHandler(cm)challengeEventHandler"
  },
  "title" : "challengeEventHandler"
}
-->

# challengeEventHandler

Returns the shared instance of the event handler

```
+ (GKChallengeEventHandler *) challengeEventHandler;
```

## Return Value

An event handler object.

## Discussion

Your game never directly creates a [`GKChallengeEventHandler`](/documentation/GameKit/GKChallengeEventHandler) object. Instead, retrieve the shared instance using this class method.

---

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)