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

LeaderboardUpdateStatus Class

This object is a response from the server that contains information about the status of the request to update the leaderboard. It can be retrieved using two different API requests: [com.meta.horizon.platform.ovr.requests.Leaderboards#writeEntry(String leaderboardName, long score, byte[] extraData, boolean forceUpdate)](classcom_1_1meta_1_1horizon_1_1platform_1_1ovr_1_1requests_1_1_leaderboards_1af4ca5d92acd4c1adc37daa338de90aeb) and [com.meta.horizon.platform.ovr.requests.Leaderboards#writeEntryWithSupplementaryMetric(String leaderboardName, long score, long supplementaryMetric, byte[] extraData, boolean forceUpdate)](classcom_1_1meta_1_1horizon_1_1platform_1_1ovr_1_1requests_1_1_leaderboards_1ac28b9008ffad885e3730e485a0bb2afc).

Constructors

LeaderboardUpdateStatus ( ptr )
Signature
com.meta.horizon.platform.ovr.models.LeaderboardUpdateStatus.LeaderboardUpdateStatus(final long ptr)
Parameters
ptr: final long

Methods

getDidUpdate ()
A boolean indicates whether the leaderboard was updated.
Signature
boolean com.meta.horizon.platform.ovr.models.LeaderboardUpdateStatus.getDidUpdate()
Returns
boolean  boolean
getUpdatedChallengeIds ()
If the leaderboard is updated, this represents the updated challenge IDs. The updated challenge IDs can be used by com.meta.horizon.platform.ovr.requests.Challenges#getEntries(long challengeID, int limit, LeaderboardFilterType filter, LeaderboardStartAt startAt), com.meta.horizon.platform.ovr.requests.Challenges#getEntriesAfterRank(long challengeID, int limit, long afterRank), or [com.meta.horizon.platform.ovr.requests.Challenges#getEntriesByIds(long challengeID, int limit, LeaderboardStartAt startAt, long[] userIDs)](classcom_1_1meta_1_1horizon_1_1platform_1_1ovr_1_1requests_1_1_challenges_1a1e309b58ee7162881fa0c13f968abbc9) APIs.
Signature
long [] com.meta.horizon.platform.ovr.models.LeaderboardUpdateStatus.getUpdatedChallengeIds()
Returns
long []  long[]