Leaderboards class abstract

Constructors

Leaderboards()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

loadLeaderboardScores({dynamic iOSLeaderboardID = "", dynamic androidLeaderboardID = "", required PlayerScope scope, required TimeScope timeScope, required int maxResults}) Future<List<LeaderboardScoreData>?>
Get leaderboard scores as a list. Use this to build a custom UI. To show the device's default leaderboards screen use showLeaderboards.
showLeaderboards({dynamic iOSLeaderboardID = "", dynamic androidLeaderboardID = ""}) Future<String?>
Open the device's default leaderboards screen. If a leaderboard ID is provided, it will display the specific leaderboard, otherwise it will show the list of all leaderboards.
submitScore({required Score score}) Future<String?>
Submit a score to specific leaderboard. Score takes three parameters: androidLeaderboardID the leaderboard ID for Google Play Games. iOSLeaderboardID the leaderboard ID for Game Center. value the score.