ChallengeOptions
()
|
Creates a new instance of ::ChallengeOptions which is used to customize the option flow. It returns a handle to the newly created options object, which can be used to set various properties for the options.
Signature
Oculus.Platform.ChallengeOptions.ChallengeOptions() |
SetDescription
(
value
)
|
The description of the challenge is a detailed and informative text that provides a comprehensive overview of the challenge's objectives, rules, and requirements, which can be retrieved with Challenge::Description.
Signature
void Oculus.Platform.ChallengeOptions.SetDescription(string value) Parameters value: stringReturns void |
SetEndDate
(
value
)
|
The challenge end date is the timestamp when this challenge ends, which can be retrieved using Challenge::EndDate.
Signature
void Oculus.Platform.ChallengeOptions.SetEndDate(DateTime value) Parameters value: DateTimeReturns void |
SetIncludeActiveChallenges
(
value
)
|
This option indicates whether to include challenges that are currently active in the search results. By default, this is set to true, meaning that only active challenges will be returned.
Signature
void Oculus.Platform.ChallengeOptions.SetIncludeActiveChallenges(bool value) Parameters value: boolReturns void |
SetIncludeFutureChallenges
(
value
)
|
This option indicates whether to include challenges that have not yet started in the search results. By default, this is set to false, meaning that only active will be returned.
Signature
void Oculus.Platform.ChallengeOptions.SetIncludeFutureChallenges(bool value) Parameters value: boolReturns void |
SetIncludePastChallenges
(
value
)
|
This option indicates whether to include challenges that have already ended in the search results. By default, this is set to false, meaning that only active will be returned.
Signature
void Oculus.Platform.ChallengeOptions.SetIncludePastChallenges(bool value) Parameters value: boolReturns void |
SetLeaderboardName
(
value
)
|
Optional: Only find challenges belonging to this leaderboard. This filter allows you to narrow down the search results to only include challenges that are associated with a specific leaderboard.
Signature
void Oculus.Platform.ChallengeOptions.SetLeaderboardName(string value) Parameters value: stringReturns void |
SetStartDate
(
value
)
|
The challenge start date is the timestamp when this challenge begins, which can be retrieved using Challenge::StartDate.
Signature
void Oculus.Platform.ChallengeOptions.SetStartDate(DateTime value) Parameters value: DateTimeReturns void |
SetTitle
(
value
)
|
The title of the challenge is a descriptive label that provides a concise summary of the challenge's purpose and objectives, which can be retrieved with Challenge::Title.
Signature
void Oculus.Platform.ChallengeOptions.SetTitle(string value) Parameters value: stringReturns void |
SetViewerFilter
(
value
)
|
An enum that specifies what filter to apply to the list of returned challenges.
Returns all public (ChallengeVisibility.Public) and invite-only (ChallengeVisibility.InviteOnly) Models.Challenge in which the user is a participant or invitee. Excludes private (ChallengeVisibility.Private) challenges.
ChallengeViewerFilter.Participating - Returns challenges the user is participating in.
ChallengeViewerFilter.Invited - Returns challenges the user is invited to.
ChallengeViewerFilter.ParticipatingOrInvited - Returns challenges the user is either participating in or invited to.
Signature
void Oculus.Platform.ChallengeOptions.SetViewerFilter(ChallengeViewerFilter value) Parameters value: ChallengeViewerFilterReturns void |
SetVisibility
(
value
)
|
The challenge visibility setting specifies who can see and participate in this challenge, which be retrieved with Challenge::Visibility. There are three visibility levels: ChallengeVisibility.Public, ChallengeVisibility.InviteOnly and ChallengeVisibility.Private.
Signature
void Oculus.Platform.ChallengeOptions.SetVisibility(ChallengeVisibility value) Parameters value: ChallengeVisibilityReturns void |
operator IntPtr
(
options
)
|
This operator allows you to pass an instance of the ::ChallengeOptions class to native C code as an IntPtr. The operator returns the handle of the options object, or IntPtr.Zero if the object is null.
Signature
static Oculus.Platform.ChallengeOptions.operator IntPtr(ChallengeOptions options) Parameters options: ChallengeOptions |