achievements.increment()

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

Overview

Increments an incremental achievement by the specified amount of steps.

Syntax

gpgs.achievements.increment( 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.

achievementId (required)

String. Achievement to increment.

steps (optional)

Number. Incremental value. Default is 1.

listener (optional)

Listener. Listener function which receives an increment event.