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

AchievementDefinition Class

An AchievementDefinition defines an achievement; this includes its name and how it is unlocked. For an individual user's progress in unlocking an achievement, see AchievementProgress. It can be retrieved using com.meta.horizon.platform.ovr.requests.Achievements#getAllDefinitions().

Member Functions

AchievementDefinition
( final long ptr )
This is the type of achievement. There are three types of achievement: com.meta.horizon.platform.ovr.enums.AchievementType#Simple - unlocked by completion of a single event or objective, com.meta.horizon.platform.ovr.enums.AchievementType#Bitfield - unlocked when a number of bits in a bitfield are set, and com.meta.horizon.platform.ovr.enums.AchievementType#Count - unlocked when a counter reaches a defined target.
Returns
AchievementType
A string of the api name of the achievement. It can be used to get the achievement progress by name by the function com.meta.horizon.platform.ovr.requests.Achievements#getProgressByName(String[] names).
Returns
String
It is required for bitfield achievements: com.meta.horizon.platform.ovr.enums.AchievementType#Bitfield. This represents the size of the bitfield for this achievement.
Returns
long
long getTarget ( )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon