Difference between revisions of "Gaming:reportAchievement"
From GiderosMobile
Line 2: | Line 2: | ||
'''Available since:''' Gideros 2012.09<br/> | '''Available since:''' Gideros 2012.09<br/> | ||
=== Description === | === Description === | ||
− | <translate>Update achievement progress. Either [[Event.REPORT_ACHIEVEMENTS_COMPLETE | + | <translate>Update achievement progress. Either [[Event.REPORT_ACHIEVEMENTS_COMPLETE]] or [[Event.REPORT_ACHIEVEMENTS_ERROR]] will be triggered.</translate> |
<source lang="lua"> | <source lang="lua"> | ||
Gaming:reportAchievement(achievementId,numSteps,immediate) | Gaming:reportAchievement(achievementId,numSteps,immediate) |
Revision as of 14:01, 23 August 2018
Available since: Gideros 2012.09
Description
Update achievement progress. Either Event.REPORT_ACHIEVEMENTS_COMPLETE or Event.REPORT_ACHIEVEMENTS_ERROR will be triggered.
Gaming:reportAchievement(achievementId,numSteps,immediate)
Parameters
achievementId: (string) Achievement Id
numSteps: (number) Number of steps optional
immediate: (boolean) Push the update immediately