resetAchievements(completionHandler:)
Resets the percentage completed for all of the player’s achievements.
Declaration
class func resetAchievements(completionHandler: (@Sendable ((any Error)?) -> Void)? = nil)class func resetAchievements() async throwsParameters
- completionHandler:
A block that GameKit calls when this method completes.
The block receives the following parameter:
errorDescribes an error if it occurs, or
nilif the operation completes.
Mentioned in
Discussion
This method sets the percentage complete for all of the player’s achievements to zero. If you hide an achievement when you create it in App Store Connect, this method hides the achievement again.