GKScoreChallenge¶
Inherits: GKChallenge < RefCounted < Object
Represents a score-based Game Center challenge.
Description¶
Subclass of GKChallenge for leaderboard score challenges. It exposes the challenged score, rank, context, and related leaderboard/player metadata.
Properties¶
int |
|
|
String |
|
|
|
||
String |
|
|
|
||
int |
|
|
int |
|
Property Descriptions¶
int context = 0 🔗
int get_context()
Developer-defined context associated with the challenged score.
String formatted_score = "" 🔗
String get_formatted_score()
Localizable, formatted representation of score.
GKLeaderboardEntry leaderboard_entry = null 🔗
GKLeaderboardEntry get_leaderboard_entry()
Leaderboard entry for this challenge on newer Apple platforms. May be null when unavailable.
String leaderboard_identifier = "" 🔗
String get_leaderboard_identifier()
Legacy leaderboard identifier for older platform versions.
GKPlayer get_player()
Player associated with the challenged score entry.
int rank = 0 🔗
int get_rank()
Leaderboard rank of the challenged score.
int score = 0 🔗
int get_score()
Numeric score value in this challenge.