achievements.unlock()

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

Overview

Unlocks an achievement.

Syntax

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

listener (optional)

Listener. Listener function which receives an unlock event.