AchievementClient class abstract

Provides APIs for achievement management, for example, obtaining the game achievement list, incrementing an achievement, and setting steps required for unlocking an achievement.

Constructors

AchievementClient()

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

getAchievementList(bool forceReload) Future<List<Achievement>>
Obtains the list of achievements in all statuses for the current player.
grow(String id, int numSteps) Future<void>
Asynchronously increases an achievement by the given number of steps.
growWithResult(String id, int numSteps) Future<bool>
Synchronously increases an achievement by the given number of steps.
makeSteps(String id, int numSteps) Future<void>
Asynchronously sets an achievement to have the given number of steps completed.
makeStepsWithResult(String id, int numSteps) Future<bool>
Synchronously sets an achievement to have the given number of steps completed.
reach(String id) Future<void>
Asynchronously unlocks an achievement for the current player.
reachWithResult(String id) Future<bool>
Synchronously unlocks an achievement for the current player.
showAchievementListIntent() Future<void>
Obtains the list of all game achievements of the current player.
visualize(String id) Future<void>
Asynchronously reveals a hidden achievement to the current player.
visualizeWithResult(String id) Future<void>
Synchronously reveals a hidden achievement to the current player.