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

Challenge Class

Challenges leverage com.meta.horizon.platform.ovr.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.

Member Functions

Challenge
( final long ptr )
An enum that specifies if this challenge was created by a user (com.meta.horizon.platform.ovr.enums.ChallengeCreationType#UserCreated) or the app developer (com.meta.horizon.platform.ovr.enums.ChallengeCreationType#DeveloperCreated).
Returns
ChallengeCreationType
A displayable string of the challenge's description.
Returns
String
The timestamp when this challenge ends. You can retrieve this field from the response of the challenge creation request.
Returns
LocalDateTime
The ID of the challenge. This is an unique string that the application will refer to this challenge in your app.
Returns
long
Users that are invited to this challenge.
Returns
The com.meta.horizon.platform.ovr.models.Leaderboard associated with this challenge. You can retrieve the leaderboard ID from the response of the challenge creation request.
Users that have participated in this challenge.
Returns
The timestamp when this challenge begins. You can retrieve this field from the response of the challenge creation request.
Returns
LocalDateTime
A displayable string of the challenge's title.
Returns
String
An enum that specifies who can see and participate in this challenge.com.meta.horizon.platform.ovr.enums.ChallengeVisibility#InviteOnly - Only those invited can participate in it. Everyone can see it.com.meta.horizon.platform.ovr.enums.ChallengeVisibility#Public - Everyone can participate and see this challenge.com.meta.horizon.platform.ovr.enums.ChallengeVisibility#Private - Only those invited can participate and see this challenge.
Returns
ChallengeVisibility
Did you find this page helpful?
Thumbs up icon
Thumbs down icon