AI-generated Key Takeaways
-
The
Achievements.UpdateAchievementResultinterface is deprecated and not used in theAchievementsClient. -
This interface represents the result of updating achievement data, such as revealing, unlocking, or incrementing achievements.
-
Various status codes indicate the outcome of the achievement update operation, including success, network errors, and specific achievement-related issues.
-
The
getAchievementId()method returns the ID of the achievement that was updated.
This interface is deprecated.
Is not used in the AchievementsClient.
Result delivered when achievement data has been updated (revealed, unlocked or incremented).
Possible status codes include:
GamesStatusCodes.STATUS_OKif data was successfully loaded and is up-to-date.GamesStatusCodes.STATUS_NETWORK_ERROR_NO_DATAif the device was unable to retrieve any data from the network and has no data cached locally.GamesStatusCodes.STATUS_NETWORK_ERROR_STALE_DATAif the device was unable to retrieve the latest data from the network, but has some data cached locally.GamesStatusCodes.STATUS_NETWORK_ERROR_OPERATION_DEFERREDif the device is offline or was otherwise unable to post the achievement update to the server. The achievement update was stored locally and will be posted to the server the next time the device is online and is able to perform a sync (no further action is required from the client).GamesStatusCodes.STATUS_CLIENT_RECONNECT_REQUIREDif the client needs to reconnect to the service to access this data.GamesStatusCodes.STATUS_LICENSE_CHECK_FAILEDif the game is not licensed to the user.GamesStatusCodes.STATUS_ACHIEVEMENT_UNLOCKEDif the state of the achievement isAchievement.STATE_UNLOCKEDafter an increment operation. Continuing to increment an already unlocked achievement will always return this status.GamesStatusCodes.STATUS_ACHIEVEMENT_UNKNOWNif the achievement failed to update because could not find the achievement to update.GamesStatusCodes.STATUS_ACHIEVEMENT_NOT_INCREMENTALif achievement failed to increment since it is not an incremental achievement.GamesStatusCodes.STATUS_ACHIEVEMENT_UNLOCK_FAILUREif the call to unlock achievement failed.GamesStatusCodes.STATUS_INTERNAL_ERRORif an unexpected error occurred in the service.
Public Method Summary
| abstract String |
getAchievementId()
Returns the ID of the achievement that was updated.
|
Inherited Method Summary
Public Methods
public abstract String getAchievementId ()
Returns the ID of the achievement that was updated.