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

Challenges Class

Overview

Static Public Member Functions

Create
( string leaderboardName,
ChallengeOptions challengeOptions )
DeclineInvite
( UInt64 challengeID )
static Request
Delete
( UInt64 challengeID )
Get
( UInt64 challengeID )
GetEntries
( UInt64 challengeID,
int limit,
GetEntriesAfterRank
( UInt64 challengeID,
int limit,
ulong afterRank )
GetEntriesByIds
( UInt64 challengeID,
int limit,
UInt64 [] userIDs )
GetList
( ChallengeOptions challengeOptions,
int limit )
Join
( UInt64 challengeID )
Leave
( UInt64 challengeID )
UpdateInfo
( UInt64 challengeID,
ChallengeOptions challengeOptions )

Details

Static Member Functions

static Request<Models.ChallengeEntryList> Oculus.Platform.Challenges.GetNextEntries
No description available.
static Request<Models.ChallengeEntryList> Oculus.Platform.Challenges.GetPreviousEntries
No description available.
static Request<Models.ChallengeList> Oculus.Platform.Challenges.GetNextChallenges
No description available.
static Request<Models.ChallengeList> Oculus.Platform.Challenges.GetPreviousChallenges
No description available.
static Request<Models.Challenge> Oculus.Platform.Challenges.Create
( string leaderboardName,
ChallengeOptions challengeOptions )
DEPRECATED. Use server-to-server API call instead.
static Request<Models.Challenge> Oculus.Platform.Challenges.DeclineInvite
( UInt64 challengeID )
If the current user has an invite to the challenge, decline the invite
static Request Oculus.Platform.Challenges.Delete
( UInt64 challengeID )
DEPRECATED. Use server-to-server API call instead.
static Request<Models.Challenge> Oculus.Platform.Challenges.Get
( UInt64 challengeID )
Gets the information for a single challenge
Parameters
challengeID
The id of the challenge whose entries to return.
static Request<Models.ChallengeEntryList> Oculus.Platform.Challenges.GetEntries
( UInt64 challengeID,
int limit,
Requests a block of challenge entries.
Parameters
challengeID
The id of the challenge whose entries to return.
limit
Defines the maximum number of entries to return.
filter
By using ovrLeaderboard_FilterFriends, this allows you to filter the returned values to bidirectional followers.
startAt
Defines whether to center the query on the user or start at the top of the challenge.
static Request<Models.ChallengeEntryList> Oculus.Platform.Challenges.GetEntriesAfterRank
( UInt64 challengeID,
int limit,
ulong afterRank )
Requests a block of challenge entries.
Parameters
challengeID
The id of the challenge whose entries to return.
limit
The maximum number of entries to return.
afterRank
The position after which to start. For example, 10 returns challenge results starting with the 11th user.
static Request<Models.ChallengeEntryList> Oculus.Platform.Challenges.GetEntriesByIds
( UInt64 challengeID,
int limit,
UInt64 [] userIDs )
Requests a block of challenge entries. Will return only entries matching the user IDs passed in.
Parameters
challengeID
The id of the challenge whose entries to return.
limit
Defines the maximum number of entries to return.
startAt
Defines whether to center the query on the user or start at the top of the challenge. If this is LeaderboardStartAt.CenteredOnViewer or LeaderboardStartAt.CenteredOnViewerOrTop, then the current user's ID will be automatically added to the query.
userIDs
Defines a list of user ids to get entries for.
static Request<Models.ChallengeList> Oculus.Platform.Challenges.GetList
( ChallengeOptions challengeOptions,
int limit )
Requests for a list of challenge
static Request<Models.Challenge> Oculus.Platform.Challenges.Join
( UInt64 challengeID )
If the current user has permission, join the challenge
static Request<Models.Challenge> Oculus.Platform.Challenges.Leave
( UInt64 challengeID )
If the current user has permission, leave the challenge
static Request<Models.Challenge> Oculus.Platform.Challenges.UpdateInfo
( UInt64 challengeID,
ChallengeOptions challengeOptions )
DEPRECATED. Use server-to-server API call instead.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon