loadReceivedChallenges(completionHandler:)
Loads the list of outstanding challenges.
Declaration
class func loadReceivedChallenges(completionHandler: (@Sendable ([GKChallenge]?, (any Error)?) -> Void)? = nil)class func loadReceivedChallenges() async throws -> [GKChallenge]Parameters
- completionHandler:
The block that GameKit calls when it completes the request.
The block receives the following parameters:
challengesThe challenges the local player issued.
errorDescribes an error if it occurs, or
nilif the operation completes successfully.