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 retrieve.
Return Value
An initialized leaderboard request.
Discussion
A leaderboard object that you initialize with this method ignores the playerScope and range properties. Instead, it retrieves scores for the specific list of players whose GKPlayer objects are in the players parameter.