iOS Developer Library

Developer

GameKit Framework Reference GKChallengeEventHandler Class Reference

Options
Deployment Target:

On This Page

GKChallengeEventHandler

The GKChallengeEventHandler class is used to respond to events related to challenges sent or received by the local player. More...

Inheritance


Conforms To


Import Statement


Not Applicable @import GameKit;

Availability


Available in iOS 6.0 and later.
Deprecated in iOS 7.0.
  • Returns the shared instance of the event handler

    Declaration

    Objective-C

    + (GKChallengeEventHandler *)challengeEventHandler

    Return Value

    An event handler object.

    Discussion

    Your game never directly creates a GKChallengeEventHandler object. Instead, retrieve the shared instance using this class method.

    Import Statement

    Availability

    Available in iOS 6.0 and later.

    Deprecated in iOS 7.0.

  • delegate delegate (iOS 7.0) Property

    The delegate for the event handler.

    Declaration

    Objective-C

    @property(nonatomic, assign) id< GKChallengeEventHandlerDelegate > delegate

    Discussion

    Only access this property from your game’s main thread.

    Import Statement

    Availability

    Available in iOS 6.0 and later.

    Deprecated in iOS 7.0.