Android Client Reference
Class Achievements
Namespace: com.playerio
Language: Java
The Player.IO Achievements service
Methods | |||
---|---|---|---|
public Achievement |
This method gets the specified achivement |
||
public Achievement[] |
The list of all achievements; the values of Progress and ProgressGoal will indicate whether the achievement is started/pending/complete. |
||
public void |
Load achievements for the specified users. |
||
public void |
Add or subtract from the current progress of an achievement. |
||
public void |
Complete the specified achievement, by setting the progress to the maximum (ProgressGoal) of the achievement. |
||
public void |
Sets the current progress value to the bigger value of progress or the current value, i.e; newProgress = Max(currentProgress,progress) |
||
public void |
Sets the progress of the specified achievement. |
||
public void |
Refreshes MyAchievements public void refresh() throws PlayerIOError { refreshed(channel.achievementsRefresh(version)); } Refreshes MyAchievements |
||
public void |
Remove a handler to the OnComplete event |
||
public void |
Set a handler to the OnComplete event |
Achievements.get
public Achievement |
|
This method gets the specified achivement
Arguments
String | achievementId |
Achievements.getMyAchievements
public Achievement[] |
|
The list of all achievements; the values of Progress and ProgressGoal will indicate whether the achievement is started/pending/complete.
Achievements.load
public void |
|
Load achievements for the specified users.
Arguments
List<String> | userIds |
Callback<Map<String,Achievement[]>> | callback |
Achievements.progressAdd
public void |
|
Add or subtract from the current progress of an achievement.
Arguments
String | achievementId |
int | progressDelta |
Callback<Achievement> | callback |
Achievements.progressComplete
public void |
|
Complete the specified achievement, by setting the progress to the maximum (ProgressGoal) of the achievement.
Arguments
String | achievementId |
Callback<Achievement> | callback |
Achievements.progressMax
public void |
|
Sets the current progress value to the bigger value of progress or the current value, i.e; newProgress = Max(currentProgress,progress)
Arguments
String | achievementId |
int | progress |
Callback<Achievement> | callback |
Achievements.progressSet
public void |
|
Sets the progress of the specified achievement.
Arguments
String | achievementId |
int | progress |
Callback<Achievement> | callback |
Achievements.refresh
public void |
|
Refreshes MyAchievements public void refresh() throws PlayerIOError { refreshed(channel.achievementsRefresh(version)); } Refreshes MyAchievements
Arguments
Callback<Void> | callback |
Achievements.removeAchievementCompletedHandler
public void |
|
Remove a handler to the OnComplete event
Achievements.setAchievementCompletedHandler
public void |
|
Set a handler to the OnComplete event
Arguments
AchievementCompletedEventHandler | onComplete |