Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
The Achievement class returns the specific achievement information.
| Return | Method |
| String | getId() Obtains the achievement ID. |
| int | getReachedSteps() Obtains the number of steps that the player has gone toward unlocking the achievement. |
| String | getDescInfo() Obtains the description of an achievement. |
| String | getLocaleReachedSteps() Obtains the localized number of steps that the player has gone toward unlocking the achievement. For example, the Arabic number is returned for Arabic countries. |
| String | getLocaleAllSteps() Obtains the localized total number of steps required for unlocking the current achievement. For example, the Arabic number is returned for Arabic countries. |
| long | getRecentUpdateTime() Obtains the timestamp when the achievement is updated the last time. |
| String | getDisplayName() Obtains the achievement name. |
| Player | getGamePlayer() Obtains information about the player related to the achievement. |
| Uri | getVisualizedThumbnailUri() Obtains the URI that can be used to load the revealed icon of the achievement. |
| int | getState() Obtains the achievement status. |
| int | getAllSteps() Obtains the total number of steps required for unlocking the achievement. |
| int | getType() Obtains the achievement type. |
| Uri | getReachedThumbnailUri() Obtains the URI that can be used to download the achievement icon after the achievement is unlocked. |
Obtains the ID of the current achievement, which uniquely identifies an achievement.
Return Values
| type | description |
| String | Achievement ID string. |
Obtains the number of steps that the player has gone toward unlocking the achievement.
Return Values
| type | description |
| int | Number of steps that the player has gone toward unlocking the achievement. |
Obtains the description of the current achievement.
Return Values
| type | description |
| String | Description of the current achievement. |
Obtains the localized number of steps that the player has gone toward unlocking the achievement. For example, the Arabic number is returned for Arabic countries.
Return Values
| type | description |
| String | Number in the local language. |
Obtains the localized total number of steps required for unlocking the current achievement. For example, the Arabic number is returned for Arabic countries.
Return Values
| type | description |
| String | Number in the local language. |
Obtains the timestamp when the achievement is updated the last time.
Return Values
| type | description |
| long | Timestamp when the achievement is updated the last time, that is, number of milliseconds between the last achievement update time and 00:00:00 on January 1, 1970. |
Obtains the current achievement name.
Return Values
| type | description |
| String | Current achievement name. |
Obtains information about the currently signed-in player.
Return Values
Obtains the URI that can be used to download the achievement icon after the achievement is revealed but not unlocked.
Return Values
| type | description |
| Uri | URI that can be used to download the achievement icon. |
Obtains the achievement status.
Return Values
| type | description |
| int | ● 1: displayed ● 2: hidden ● 3: unlocked |
Obtains the total number of steps required for unlocking the achievement.
Return Values
| type | description |
| int | Total number of steps required for unlocking the achievement. |
Obtains the achievement type.
Return Values
| type | description |
| int | ● 1: standard (No steps are set for this type of achievement.) ● 2: incremental (Steps are set for this type of achievement.) |
Obtains the URI that can be used to download the achievement icon after the achievement is unlocked.
Return Values
| type | description |
| Uri | URI that can be used to download the achievement icon. |