leaderboards.submit()

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

Overview

Submits a score to a specific leaderboard.

Syntax

gpgs.leaderboards.submit( params )
params (required)

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

Parameter Reference

The params table contains parameters for the call.

leaderboardId (required)

String. Leaderboard ID to submit to.

score (required)

Number. The score value.

tag (optional)

String. Optional additional info. Must be URL-encoded and a maximum size of 64 bytes.

listener (optional)

Listener. Listener function which receives a submit event.