API reference

AchievementProgress Class

The unlock progress of a particular achievement can be retrieved using com.meta.horizon.platform.ovr.requests.Achievements#getAllProgress(). It can be used to display the progress of each achievement in your game. See the following link for more information.

Member Functions

AchievementProgress
( final long ptr )
String getBitfield ( )
If the type of the achievement is com.meta.horizon.platform.ovr.enums.AchievementType#Bitfield it represents the current bitfield state that the achievement has reached.
Returns
String
long getCount ( )
If the type of the achievement is com.meta.horizon.platform.ovr.enums.AchievementType#Count, it represents the current counter state that the achievement has reached.
Returns
long
boolean getIsUnlocked ( )
If the user has already unlocked this achievement.
Returns
boolean
String getName ( )
The unique string that you use to reference the achievement in your app, as specified in the developer dashboard. It can be retrieved using com.meta.horizon.platform.ovr.models.AchievementDefinition#getName().
Returns
String
LocalDateTime getUnlockTime ( )
If the achievement is unlocked, the time when it was unlocked.
Returns
LocalDateTime