AchievementsResource class

Constructors

AchievementsResource(ApiRequester client)

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

increment(String achievementId, int stepsToIncrement, {String? requestId, String? $fields}) Future<AchievementIncrementResponse>
Increments the steps of the achievement with the given ID for the currently authenticated player.
list(String playerId, {String? language, int? maxResults, String? pageToken, String? state, String? $fields}) Future<PlayerAchievementListResponse>
Lists the progress for all your application's achievements for the currently authenticated player.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reveal(String achievementId, {String? $fields}) Future<AchievementRevealResponse>
Sets the state of the achievement with the given ID to REVEALED for the currently authenticated player.
setStepsAtLeast(String achievementId, int steps, {String? $fields}) Future<AchievementSetStepsAtLeastResponse>
Sets the steps for the currently authenticated player towards unlocking an achievement.
toString() String
A string representation of this object.
inherited
unlock(String achievementId, {String? $fields}) Future<AchievementUnlockResponse>
Unlocks this achievement for the currently authenticated player.
updateMultiple(AchievementUpdateMultipleRequest request, {String? $fields}) Future<AchievementUpdateMultipleResponse>
Updates multiple achievements for the currently authenticated player.

Operators

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