Contents

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 throws

Parameters

  • completionHandler:

    A block that GameKit calls when this method completes.

    The block receives the following parameter:

    error

    Describes an error if it occurs, or nil if 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.

See Also

Reporting Progress on Achievements