loadPlayerScore

fun loadPlayerScore(leaderboardId: String, timeSpan: Int, collection: Int)

Call this method and subscribe to the emitted signal to receive the score of the currently signed in player for the given leaderboard, time span, and collection in JSON format. The JSON received from the com.jacobibanez.plugin.android.godotplaygameservices.signals.LeaderboardSignals.scoreLoaded signal contains a representation of the com.google.android.gms.games.leaderboard.LeaderboardScore class.

Parameters

leaderboardId

The leaderboard id.

timeSpan

The time span for the leaderboard refresh. It can be any of the com.jacobibanez.plugin.android.godotplaygameservices.leaderboards.TimeSpan values.

collection

The collection type for the leaderboard. It can be any of the [com.jacobibanez.plugin.android.godotplaygameservices.leaderboards.Collection] values.