Class LeaderboardUpdatePayload
Represents a leaderboard update for Update
Inherited Members
Namespace: Meta.InstantGames
Assembly: Unity.Meta.InstantGames.Sdk.dll
Syntax
public class LeaderboardUpdatePayload : JsObject
Constructors
LeaderboardUpdatePayload(UpdateAction, string, string)
Creates a new instance of LeaderboardUpdatePayload
Declaration
public LeaderboardUpdatePayload(UpdateAction action, string name, string text = null)
Parameters
Type | Name | Description |
---|---|---|
Update |
action | For a leaderboard update, this should be 'LEADERBOARD'. text. By default we will use a localized 'Play Now' as the button text. |
string | name | The name of the leaderboard to feature in the update. |
string | text | Optional text message. If not specified, a localized fallback message will be provided instead. |
Properties
Action
For a leaderboard update, this should be 'LEADERBOARD'. text. By default we will use a localized 'Play Now' as the button text.
Declaration
public UpdateAction Action { get; }
Property Value
Type | Description |
---|---|
Update |
Name
The name of the leaderboard to feature in the update.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string |
Text
Optional text message. If not specified, a localized fallback message will be provided instead.
Declaration
public string Text { get; }
Property Value
Type | Description |
---|---|
string |