| Modifier and Type | Class and Description |
|---|---|
class |
Games.Achievements.Increment |
class |
Games.Achievements.List |
class |
Games.Achievements.Reveal |
class |
Games.Achievements.SetStepsAtLeast |
class |
Games.Achievements.Unlock |
class |
Games.Achievements.UpdateMultiple |
| Constructor and Description |
|---|
Achievements() |
| Modifier and Type | Method and Description |
|---|---|
Games.Achievements.Increment |
increment(String achievementId,
Integer stepsToIncrement)
Increments the steps of the achievement with the given ID for the currently authenticated player.
|
Games.Achievements.List |
list(String playerId)
Lists the progress for all your application's achievements for the currently authenticated
player.
|
Games.Achievements.Reveal |
reveal(String achievementId)
Sets the state of the achievement with the given ID to `REVEALED` for the currently authenticated
player.
|
Games.Achievements.SetStepsAtLeast |
setStepsAtLeast(String achievementId,
Integer steps)
Sets the steps for the currently authenticated player towards unlocking an achievement.
|
Games.Achievements.Unlock |
unlock(String achievementId)
Unlocks this achievement for the currently authenticated player.
|
Games.Achievements.UpdateMultiple |
updateMultiple(AchievementUpdateMultipleRequest content)
Updates multiple achievements for the currently authenticated player.
|
public Games.Achievements.Increment increment(String achievementId, Integer stepsToIncrement) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.achievementId - The ID of the achievement used by this method.stepsToIncrement - Required. The number of steps to increment.IOExceptionpublic Games.Achievements.List list(String playerId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.playerId - A player ID. A value of `me` may be used in place of the authenticated player's ID.IOExceptionpublic Games.Achievements.Reveal reveal(String achievementId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.achievementId - The ID of the achievement used by this method.IOExceptionpublic Games.Achievements.SetStepsAtLeast setStepsAtLeast(String achievementId, Integer steps) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.achievementId - The ID of the achievement used by this method.steps - Required. The minimum value to set the steps to.IOExceptionpublic Games.Achievements.Unlock unlock(String achievementId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.achievementId - The ID of the achievement used by this method.IOExceptionpublic Games.Achievements.UpdateMultiple updateMultiple(AchievementUpdateMultipleRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.content - the AchievementUpdateMultipleRequestIOExceptionCopyright © 2011–2025 Google. All rights reserved.