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

AchievementType

Updated: Oct 30, 2025

AchievementType

@Serializable
enum AchievementType : Enum<AchievementType>
Determines the type of the achievement. This enum defines the different types of achievements that can be used in the game. Each type has its own unique characteristics and requirements for unlocking. See more details about achievement here.

Entries

NameSummary
@SerialName(value = "UNKNOWN")
Unknown
Represents that the AchievementType is unknown.
@SerialName(value = "SIMPLE")
Simple
Simple achievements are unlocked by a single event or objective completion. They are often used to reward players for completing specific tasks or milestones within the game.
@SerialName(value = "BITFIELD")
Bitfield
Bitfield achievements are unlocked when a target number of bits are set within a bitfield.
@SerialName(value = "COUNT")
Count
Count achievements are unlocked when a counter reaches a defined target. The counter is incremented each time the player completes the required action, and when it reaches the target value, the achievement is unlocked.

Properties

NameSummary
name
val name: String
ordinal
val ordinal: Int
value
val value: Int

Functions

NameSummary
valueOf
fun valueOf(value: String): AchievementType
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
values
fun values(): Array<AchievementType>
Returns an array containing the constants of this enum type, in the order they’re declared.