gpgs.leaderboards.show()

Type String
Return value none
Revision Release 2024.3703
Keywords Google Play Games Services, game network, gpgs
See also gpgs.leaderboards.*
gpgs.*

Overview

Shows leaderboards. Can show a specific one.

Syntax

gpgs.leaderboards.show(params)
params (optional)

Table. Contains parameters — see the next section for details.

Parameter Reference

leaderboardId (optional)

String. If provided, that particular leaderboard is shown.

friendsOnly (optional)

Boolean. If true. show only scores for the current player's friends.

timeSpan (optional)

String. Can be one of these: "all time", "weekly" - scores are reset each week, "daily" - scores are reset daily. Default is "all time".

listener (optional)

Listener. Receives show event.