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¶
|
||
|
||
|
||
|
||
|
||
|
||
|
Property Descriptions¶
int get_context()
Developer-defined context associated with the challenged 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 get_rank()
Leaderboard rank of the challenged score.
int get_score()
Numeric score value in this challenge.