API reference
API reference
Select your platform
No SDKs available
No versions available

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.

Constructors

AchievementProgress ( ptr )
Signature
com.meta.horizon.platform.ovr.models.AchievementProgress.AchievementProgress(final long ptr)
Parameters
ptr: final long

Methods

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.
Signature
String com.meta.horizon.platform.ovr.models.AchievementProgress.getBitfield()
Returns
String  String
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.
Signature
long com.meta.horizon.platform.ovr.models.AchievementProgress.getCount()
Returns
long  long
getIsUnlocked ()
If the user has already unlocked this achievement.
Signature
boolean com.meta.horizon.platform.ovr.models.AchievementProgress.getIsUnlocked()
Returns
boolean  boolean
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().
Signature
String com.meta.horizon.platform.ovr.models.AchievementProgress.getName()
Returns
String  String
getUnlockTime ()
If the achievement is unlocked, the time when it was unlocked.
Signature
LocalDateTime com.meta.horizon.platform.ovr.models.AchievementProgress.getUnlockTime()
Returns
LocalDateTime  LocalDateTime