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

Achievements Class

Static Methods

AddCount ( name , count )
Add 'count' to the achievement with the given name. This must be a COUNT achievement. The largest number that is supported by this method is the max value of a signed 64-bit integer. If the number is larger than that, it is clamped to that max value before being passed to the servers.
Signature
static Request<Models.AchievementUpdate> Oculus.Platform.Achievements.AddCount(string name, ulong count)
Parameters
name: string
count: ulong
AddFields ( name , fields )
Unlock fields of a BITFIELD achievement.
Signature
static Request<Models.AchievementUpdate> Oculus.Platform.Achievements.AddFields(string name, string fields)
Parameters
name: string  The name of the achievement to unlock
fields: string  A string containing either '0' or '1' characters. Every '1' will unlock the field in the corresponding position.
GetAllDefinitions ()
Request all achievement definitions for the app.
Signature
static Request<Models.AchievementDefinitionList> Oculus.Platform.Achievements.GetAllDefinitions()
GetAllProgress ()
Request the progress for the user on all achievements in the app.
Signature
static Request<Models.AchievementProgressList> Oculus.Platform.Achievements.GetAllProgress()
GetDefinitionsByName ( names )
Request the achievement definitions that match the specified names.
Signature
static Request<Models.AchievementDefinitionList> Oculus.Platform.Achievements.GetDefinitionsByName(string[] names)
Parameters
names: string []
GetNextAchievementDefinitionListPage ( list )
Signature
static Request<Models.AchievementDefinitionList> Oculus.Platform.Achievements.GetNextAchievementDefinitionListPage(Models.AchievementDefinitionList list)
GetNextAchievementProgressListPage ( list )
Signature
static Request<Models.AchievementProgressList> Oculus.Platform.Achievements.GetNextAchievementProgressListPage(Models.AchievementProgressList list)
GetProgressByName ( names )
Request the user's progress on the specified achievements.
Signature
static Request<Models.AchievementProgressList> Oculus.Platform.Achievements.GetProgressByName(string[] names)
Parameters
names: string []
Unlock ( name )
Unlock the achievement with the given name. This can be of any achievement type.
Signature
static Request<Models.AchievementUpdate> Oculus.Platform.Achievements.Unlock(string name)
Parameters
name: string