com.google.android.gms.games.achievement.Achievement |
Data interface for retrieving achievement information.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | STATE_HIDDEN | Constant returned by getState() indicating a hidden achievement. |
|||||||||
int | STATE_REVEALED | Constant returned by getState() indicating a revealed achievement. |
|||||||||
int | STATE_UNLOCKED | Constant returned by getState() indicating an unlocked achievement. |
|||||||||
int | TYPE_INCREMENTAL | Constant returned by getType() indicating an incremental achievement. |
|||||||||
int | TYPE_STANDARD | Constant returned by getType() indicating a standard achievement. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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 . | |||||||||||
Retrieves the number of steps this user has gone toward unlocking this achievement (formatted
for the user's locale) into the given
CharArrayBuffer . | |||||||||||
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. | |||||||||||
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. | |||||||||||
Retrieves the total number of steps necessary to unlock this achievement, formatted for the
user's locale; only applicable for
TYPE_INCREMENTAL achievement types. | |||||||||||
Retrieves the timestamp (in millseconds since epoch) at which this achievement was last
updated.
| |||||||||||
Loads the achievement name into the given
CharArrayBuffer . | |||||||||||
Retrieves the name of this achievement.
| |||||||||||
Retrieves the player information associated with this achievement.
| |||||||||||
Retrieves a URI that can be used to load the achievement's revealed image icon.
| |||||||||||
Retrieves the total number of steps necessary to unlock this achievement; only applicable for
TYPE_INCREMENTAL achievement types. | |||||||||||
Retrieves the type of this achievement - one of
TYPE_STANDARD or
TYPE_INCREMENTAL . | |||||||||||
Retrieves a URI that can be used to load the achievement's unlocked image icon.
|
Constant returned by getState()
indicating a hidden achievement.
Constant returned by getState()
indicating a revealed achievement.
Constant returned by getState()
indicating an unlocked achievement.
Constant returned by getType()
indicating an incremental achievement.
Constant returned by getType()
indicating a standard achievement.
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) 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.
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.
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 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 theUri
, use ImageManager
.Retrieves the state of the achievement - one of STATE_UNLOCKED
,
STATE_REVEALED
, or STATE_HIDDEN
.
Retrieves the total number of steps necessary to unlock this achievement; only applicable for
TYPE_INCREMENTAL
achievement types.
Retrieves the type of this achievement - one of TYPE_STANDARD
or
TYPE_INCREMENTAL
.
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 theUri
, use ImageManager
.