SparkLeaderboardCursor

A cursor over entries within a leaderboard.

e.g.

var leaderboard = Spark.getLeaderboards().getLeaderboard(shortCode).getEntries();

hasNext

signature hasNext()

returns boolean

Returns true if there are more entries available.

example

var hasNext = cursor.hasNext();

next

signature next()

returns SparkLeaderboardEntry

Returns the entry the cursor is at and moves the cursor ahead by one.

example

var entry = cursor.next();
Did this page help you? Please enter your feedback below. For questions about using this part of the platform, please contact support here