Contents

report(_:withEligibleChallenges:withCompletionHandler:)

Submits a list of scores and all eligible challenges.

Declaration

class func report(_ scores: [GKLeaderboardScore], withEligibleChallenges challenges: [GKChallenge], withCompletionHandler completionHandler: (@Sendable ((any Error)?) -> Void)? = nil)
class func report(_ scores: [GKLeaderboardScore], withEligibleChallenges challenges: [GKChallenge]) async throws

Parameters

  • scores:

    An array of scores to report.

  • challenges:

    An array of challenges that GameKit associates with the reported scores.

  • completionHandler:

    A block that GameKit calls when this method completes.

    The block receives the following parameter:

    error

    If an error occurs, this object describes the error. If the operation completed successfully, this value is nil.

See Also

Reporting a New Score