Data object representing a set of Achievement data. This is immutable, and therefore safe to cache or store. Note, however, that the data it represents may grow stale.
This class exists solely to support parceling these objects and should not be used directly.
| public static final Creator<AchievementEntity> | CREATOR |
| boolean | |
| Achievement |
freeze()
|
| String |
getAchievementId()
Retrieves the ID of this achievement.
|
| int |
getCurrentSteps()
Retrieves the number of steps this user has gone toward unlocking this
achievement; only applicable for
TYPE_INCREMENTAL achievement types.
|
| String |
getDescription()
Retrieves the description for this achievement.
|
| void |
getDescription(CharArrayBuffer
dataOut)
Loads the achievement description into the given
CharArrayBuffer.
|
| String |
getFormattedCurrentSteps()
Retrieves the number of steps this user has gone toward unlocking this
achievement (formatted for the user's locale); only applicable for
TYPE_INCREMENTAL achievement types.
|
| void |
getFormattedCurrentSteps(CharArrayBuffer
dataOut)
Retrieves the number of steps this user has gone toward unlocking this
achievement (formatted for the user's locale) into the given
CharArrayBuffer.
|
| void |
getFormattedTotalSteps(CharArrayBuffer
dataOut)
Loads the total number of steps necessary to unlock this achievement (formatted
for the user's locale) into the given
CharArrayBuffer;
only applicable for
TYPE_INCREMENTAL achievement types.
|
| String |
getFormattedTotalSteps()
Retrieves the total number of steps necessary to unlock this achievement,
formatted for the user's locale; only applicable for
TYPE_INCREMENTAL achievement types.
|
| long |
getLastUpdatedTimestamp()
Retrieves the timestamp (in millseconds since epoch) at which this achievement
was last updated.
|
| void | |
| String |
getName()
Retrieves the name of this achievement.
|
| Player |
getPlayer()
Retrieves the player information associated with this achievement.
|
| Uri |
getRevealedImageUri()
Retrieves a URI that can be used to load the achievement's revealed image icon.
|
| String | |
| int |
getState()
Returns the
Achievement.AchievementState of the achievement.
|
| int |
getTotalSteps()
Retrieves the total number of steps necessary to unlock this achievement; only
applicable for
TYPE_INCREMENTAL achievement types.
|
| int |
getType()
Returns the
Achievement.AchievementType of this achievement.
|
| Uri |
getUnlockedImageUri()
Retrieves a URI that can be used to load the achievement's unlocked image icon.
|
| String | |
| long |
getXpValue()
Retrieves the XP value of this achievement.
|
| int |
hashCode()
|
| boolean | |
| String |
toString()
|
| void |
writeToParcel(Parcel dest, int
flags)
|
Retrieves the ID of this achievement.
Retrieves the number of steps this user has gone toward unlocking this achievement;
only applicable for
TYPE_INCREMENTAL achievement types.
Retrieves the description for this achievement.
Loads the achievement description into the given CharArrayBuffer.
| dataOut | The buffer to load the data into. |
|---|
Retrieves the number of steps this user has gone toward unlocking this achievement
(formatted for the user's locale); only applicable for
TYPE_INCREMENTAL achievement types.
null if this information is unavailable.Retrieves the number of steps this user has gone toward unlocking this achievement
(formatted for the user's locale) into the given CharArrayBuffer.
| dataOut | The buffer to load the data into. |
|---|
Loads the total number of steps necessary to unlock this achievement (formatted for
the user's locale) into the given CharArrayBuffer;
only applicable for
TYPE_INCREMENTAL achievement types.
| dataOut | The buffer to load the data into. |
|---|
Retrieves the total number of steps necessary to unlock this achievement, formatted
for the user's locale; only applicable for
TYPE_INCREMENTAL achievement types.
null if this information is unavailable.Retrieves the timestamp (in millseconds since epoch) at which this achievement was last updated. If the achievement has never been updated, this will return -1.
Loads the achievement name into the given CharArrayBuffer.
| dataOut | The buffer to load the data into. |
|---|
Retrieves the name of this achievement.
Retrieves the player information associated with this achievement.
Note that this object is a volatile representation, so it is not safe to cache the
output of this directly. Instead, cache the result of Freezable.freeze().
Retrieves a URI that can be used to load the achievement's revealed image icon. Returns null if the achievement has no revealed image.
To retrieve the Image from the Uri, use
ImageManager.
Returns the
Achievement.AchievementState of the achievement.
Retrieves the total number of steps necessary to unlock this achievement; only
applicable for
TYPE_INCREMENTAL achievement types.
Returns the
Achievement.AchievementType of this achievement.
Retrieves a URI that can be used to load the achievement's unlocked image icon. Returns null if the achievement has no unlocked image.
To retrieve the Image from the Uri, use
ImageManager.
Retrieves the XP value of this achievement.