Contents

loadAchievements(completionHandler:)

Loads the achievements that you previously reported the player making progress toward.

Declaration

class func loadAchievements(completionHandler: (@Sendable ([GKAchievement]?, (any Error)?) -> Void)? = nil)
class func loadAchievements() async throws -> [GKAchievement]

Parameters

  • completionHandler:

    A block that GameKit calls when this method loads the achievements.

    The block receives the following parameters:

    achievements

    The achievements that you previously reported progress for the local player.

    error

    Describes an error if it occurs, or nil if the operation completes.

Mentioned in

See Also

Loading and Initializing Achievements