Instance Method

issueChallengeToPlayers:message:

Issues a score challenge to a set of players.

Declaration

- (void)issueChallengeToPlayers:(NSArray<NSString *> *)playerIDs message:(NSString *)message;

Parameters

playerIDs

An array of NSString objects that contains the player identifiers for the players to challenge.

message

A text message to display to the players.

Discussion

Your game should only issue a challenge request in direct response to a player action. That is, your game should provide a user interface that allows the player to choose to issue a challenge and choose which friends will receive the challenge, and only issue a challenge when the player wishes to do so.

See Also

Deprecated Methods and Properties

category

The leaderboard that this score belongs to.

Deprecated
- challengeComposeControllerWithPlayers:message:completionHandler:

Provides a challenge compose view controller with pre-selected player identifiers and a preformatted, player-editable message.

Deprecated
- initWithCategory:

Returns an initialized score object.

Deprecated
- initWithLeaderboardIdentifier:forPlayer:

Returns an initialized score object for the specified leaderboard and player.

Deprecated
playerID

The player identifier for the player that earned the score.

Deprecated
- reportScoreWithCompletionHandler:

Reports a score to Game Center.

Deprecated