Difference between revisions of "Gaming:incrementAchievement"

From GiderosMobile
Line 12: Line 12:
 
'''numSteps''': (number) <translate>Number of steps to add</translate> '''optional'''<br/>
 
'''numSteps''': (number) <translate>Number of steps to add</translate> '''optional'''<br/>
 
'''immediate''': (boolean) <translate>Push the update immediately</translate> <br/>
 
'''immediate''': (boolean) <translate>Push the update immediately</translate> <br/>
 +
 +
{{Gaming}}

Revision as of 13:20, 6 December 2019


Available since: Gideros 2012.09
Class: Gaming

Description

Increment achievement progress Either. Event.REPORT_ACHIEVEMENTS_COMPLETE or Event.REPORT_ACHIEVEMENTS_ERROR will be triggered.

 Gaming:incrementAchievement(achievementId,numSteps,immediate)

Parameters

achievementId: (string) Achievement Id
numSteps: (number) Number of steps to add optional
immediate: (boolean) Push the update immediately