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

Challenge Class

Challenges leverage Models.Destination and Group Presence to create shareable links that allow players to compete directly based on score.
Challenges can be ranked by highest or lowest scores within a time period. Any application that uses Leaderboards gets Challenges for free. It appears in the Scoreboards UI. Players can create Challenges and send invites through the Challenges app.

Constructors

Challenge ( o )
Signature
Oculus.Platform.Models.Challenge.Challenge(IntPtr o)
Parameters
o: IntPtr

Fields

CreationType : readonly ChallengeCreationType
An enum that specifies if this challenge was created by a user (ChallengeCreationType.UserCreated) or the app developer (ChallengeCreationType.DeveloperCreated).
Signature
readonly ChallengeCreationType Oculus.Platform.Models.Challenge.CreationType
Description : readonly string
A displayable string of the challenge's description.
Signature
readonly string Oculus.Platform.Models.Challenge.Description
EndDate : readonly DateTime
The timestamp when this challenge ends. You can retrieve this field from the response of the challenge creation request.
Signature
readonly DateTime Oculus.Platform.Models.Challenge.EndDate
ID : readonly UInt64
The ID of the challenge. This is an unique string that the application will refer to this challenge in your app.
Signature
readonly UInt64 Oculus.Platform.Models.Challenge.ID
InvitedUsers : readonly UserList
Signature
readonly UserList Oculus.Platform.Models.Challenge.InvitedUsers
InvitedUsersOptional : readonly UserList
Users that are invited to this challenge.
Signature
readonly UserList Oculus.Platform.Models.Challenge.InvitedUsersOptional
Leaderboard : readonly Leaderboard
The Models.Leaderboard associated with this challenge. You can retrieve the leaderboard ID from the response of the challenge creation request.
Signature
readonly Leaderboard Oculus.Platform.Models.Challenge.Leaderboard
Participants : readonly UserList
Signature
readonly UserList Oculus.Platform.Models.Challenge.Participants
ParticipantsOptional : readonly UserList
Users that have participated in this challenge.
Signature
readonly UserList Oculus.Platform.Models.Challenge.ParticipantsOptional
StartDate : readonly DateTime
The timestamp when this challenge begins. You can retrieve this field from the response of the challenge creation request.
Signature
readonly DateTime Oculus.Platform.Models.Challenge.StartDate
Title : readonly string
A displayable string of the challenge's title.
Signature
readonly string Oculus.Platform.Models.Challenge.Title
Visibility : readonly ChallengeVisibility
An enum that specifies who can see and participate in this challenge.
ChallengeVisibility.InviteOnly - Only those invited can participate in it. Everyone can see it.
ChallengeVisibility.Public - Everyone can participate and see this challenge.
ChallengeVisibility.Private - Only those invited can participate and see this challenge.
Signature
readonly ChallengeVisibility Oculus.Platform.Models.Challenge.Visibility