Contents

GKChallengeEventHandlerDelegate

You implement the Gkchallengeeventhandlerdelegate delegate to control how challenges are displayed in your game.

Declaration

protocol GKChallengeEventHandlerDelegate : NSObjectProtocol

Overview

By default, GameKit briefly displays a banner over your game when any of the following events occur:

  • The local player receives a challenge.

  • The local player completes a challenge.

  • A remote player completes a challenge issued by the local player.

Your event handler can override or extend this behavior:

  • It can prevent a banner from being displayed.

  • It can be notified when a player taps in a banner.

  • It can handle the events directly.

Topics

Detecting When a User Taps a Banner

Responding When a New Challenge is Received

Responding to Challenges Completed By the Local Player

Responding to Challenges Issued by the Local Player

See Also

Deprecated protocols