GKChallengeEventHandler class is used to respond to events related to challenges sent or received by the local player.
To use it, call the
challengeEventHandler class method to get the singleton instance and assign an object that implements the
GKChallengeEventHandlerDelegate protocol to its
delegate property. You should assign a challenge event handler immediately after the local player has been authenticated, because your game may have been launched in response to a challenge notification being received by the player.
+ challengeEventHandler(iOS 7.0)
Returns the shared instance of the event handler
+ (GKChallengeEventHandler *)challengeEventHandler
An event handler object.
Your game never directly creates a
GKChallengeEventHandlerobject. Instead, retrieve the shared instance using this class method.
Available in iOS 6.0 and later.
Deprecated in iOS 7.0.