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

Leaderboard Class

Leaderboards provide a way for a game to keep track of players and their scores in relation to other. The leaderboard object contains information about this leaderboard ID, API name and destination. Lean more about leaderboard on our website.

Constructors

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

Methods

getApiName ()
The API name of this leaderboard. This is a unique string that your application will refer to this leaderboard in your app code.
Signature
String com.meta.horizon.platform.ovr.models.Leaderboard.getApiName()
Returns
String  String
getDestination ()
An optional deep link com.meta.horizon.platform.ovr.models.Destination, which means when a user clicks on the leaderboard, they will be taken to this in-app destination.
Signature
Destination com.meta.horizon.platform.ovr.models.Leaderboard.getDestination()
getID ()
The generated GUID of this leaderboard.
Signature
long com.meta.horizon.platform.ovr.models.Leaderboard.getID()
Returns
long  long