Initializer

init(players:)

Initializes a leaderboard request to retrieve the scores of a specific group of players.

Declaration

init(players: [GKPlayer])

Parameters

players

An array of GKPlayer objects that holds the player identifiers to be retrieved.

Return Value

An initialized leaderboard request.

Discussion

A leaderboard object initialized with this method ignores the playerScope and range properties. Instead, it retrieves scores for the specific list of players whose GKPlayer objects are included in the players parameter.

See Also

Initialization

init()

Initializes a default leaderboard request.