API reference

AchievementUpdate Interface

Represents an update to an existing achievement. It will be the payload if there is any updates on achievements, as unlocking an achievement by Achievements.unlock, adding 'count' to the achievement by Achievements.addCount, and unlocking fields of a BITFIELD achievement by Achievements.addFields.

Signature

interface AchievementUpdate

Properties

justUnlocked : Boolean
[Get]
This indicates if this update caused the achievement to unlock.
Signature
abstract val justUnlocked: Boolean
name : String
[Get]
The unique horizon.platform.achievements.models.AchievementDefinition.apiName used to reference the updated achievement, as specified in the developer dashboard.
Signature
abstract val name: String