achievements
Overview
Name | achievements |
Type | Resource |
Id | googledevelopers.games.achievements |
Fields
Name | Datatype | Description |
---|---|---|
id | string | The ID of the achievement. |
formattedCurrentStepsString | string | The current steps for an incremental achievement as a string. |
kind | string | Uniquely identifies the type of this resource. Value is always the fixed string games#playerAchievement . |
lastUpdatedTimestamp | string | The timestamp of the last modification to this achievement's state. |
achievementState | string | The state of the achievement. |
currentSteps | integer | The current steps for an incremental achievement. |
experiencePoints | string | Experience points earned for the achievement. This field is absent for achievements that have not yet been unlocked and 0 for achievements that have been unlocked by testers but that are unpublished. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
list | SELECT | playerId | Lists the progress for all your application's achievements for the currently authenticated player. |
increment | EXEC | achievementId, stepsToIncrement | Increments the steps of the achievement with the given ID for the currently authenticated player. |
reveal | EXEC | achievementId | Sets the state of the achievement with the given ID to REVEALED for the currently authenticated player. |
setStepsAtLeast | EXEC | achievementId, steps | Sets the steps for the currently authenticated player towards unlocking an achievement. If the steps parameter is less than the current number of steps that the player already gained for the achievement, the achievement is not modified. |
unlock | EXEC | achievementId | Unlocks this achievement for the currently authenticated player. |
updateMultiple | EXEC | Updates multiple achievements for the currently authenticated player. |