achievements.unlock()

Type Function
Return value none
Revision 2017.3060
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.