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

context

0

String

formatted_score

""

GKLeaderboardEntry

leaderboard_entry

null

String

leaderboard_identifier

""

GKPlayer

player

null

int

rank

0

int

score

0


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 🔗

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 player = null 🔗

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.