Instance Method

player:issuedChallengeWasCompleted:byFriend:

Called when a friend completes a challenge that was sent to them by the player.

Declaration

- (void)player:(GKPlayer *)player issuedChallengeWasCompleted:(GKChallenge *)challenge byFriend:(GKPlayer *)friendPlayer;

Parameters

player

The player who originally sent the challenge.

challenge

The challenge that was created and sent.

friendPlayer

The player that completed the challenge.

Discussion

This method is triggered when the game is running or when the user has tapped a challenge notification banner outside of the game.

See Also

Completing a Challenge

- player:didCompleteChallenge:issuedByFriend:

Called when the player completes a challenge that was issued by a friend.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software