Mac Developer Library

Developer

GameKit Framework Reference GKChallengeEventHandler Class Reference

Options
Deployment Target:

On This Page
Language:

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


import GameKit @import GameKit;

Availability


Available in OS X v10.8 and later.
Deprecated in OS X v10.10.
  • 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 OS X v10.8 and later.

    Deprecated in OS X v10.10.

  • delegate delegate (OS X v10.10) Property

    The delegate for the event handler.

    Declaration

    Swift

    unowned(unsafe) var delegate: GKChallengeEventHandlerDelegate!

    Objective-C

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

    Discussion

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

    Import Statement

    import GameKit

    Availability

    Available in OS X v10.8 and later.

    Deprecated in OS X v10.10.