Achievements class abstract

Constructors

Achievements()

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

increment({required Achievement achievement}) Future<String?>
Increment an achievement. Achievement takes two parameters: androidID the achievement ID for Google Play Games. steps If the achievement is of the incremental type you can use this method to increment the steps.
loadAchievements() Future<List<AchievementItemData>?>
Get achievements as a list. Use this to build a custom UI. To show the device's default achievements screen use showAchievements.
showAchievements() Future<String?>
Open the device's default achievements screen.
unlock({required Achievement achievement}) Future<String?>
Unlock an achievement. Achievement takes three parameters: androidID the achievement ID for Google Play Games. iOSID the achievement ID for Game Center. percentComplete the completion percentage of the achievement, this parameter is optional on iOS/macOS.