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

ChallengeOptions Class

The Challenge Option is a parameter that can be passed in the com.meta.horizon.platform.ovr.requests.Challenges#getList(ChallengeOptions challengeOptions, int limit) method to retrieve a list of challenges that match the specified options. The com.meta.horizon.platform.ovr.options.ChallengeOptions#ChallengeOptions() parameter allows you to specify the criteria for the challenges you want to retrieve, such as the viewer filter, the visibility, or the date range.

Member Functions

ChallengeOptions ( )
long getHandle ( )
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 com.meta.horizon.platform.ovr.models.Challenge#getDescription().
The challenge end date is the timestamp when this challenge ends, which can be retrieved using com.meta.horizon.platform.ovr.models.Challenge#getEndDate().
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.
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.
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.
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.
The challenge start date is the timestamp when this challenge begins, which can be retrieved using com.meta.horizon.platform.ovr.models.Challenge#getStartDate().
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 com.meta.horizon.platform.ovr.models.Challenge#getTitle().
An enum that specifies what filter to apply to the list of returned challenges.Returns all public (com.meta.horizon.platform.ovr.enums.ChallengeVisibility#Public) and invite-only (com.meta.horizon.platform.ovr.enums.ChallengeVisibility#InviteOnly) com.meta.horizon.platform.ovr.models.Challenge in which the user is a participant or invitee. Excludes private (com.meta.horizon.platform.ovr.enums.ChallengeVisibility#Private) challenges.com.meta.horizon.platform.ovr.enums.ChallengeViewerFilter#Participating - Returns challenges the user is participating in.com.meta.horizon.platform.ovr.enums.ChallengeViewerFilter#Invited - Returns challenges the user is invited to.com.meta.horizon.platform.ovr.enums.ChallengeViewerFilter#ParticipatingOrInvited - Returns challenges the user is either participating in or invited to.

Protected Functions

void finalize ( )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon