편집

다음을 통해 공유


GKScore.ReportScores Method

Definition

Overloads

ReportScores(GKScore[], Action<NSError>)

Reports the provided scores to the Game Center.

ReportScores(GKScore[], GKChallenge[], Action<NSError>)

Reports the provided scores to the Game Center.

ReportScores(GKScore[], Action<NSError>)

Reports the provided scores to the Game Center.

[Foundation.Export("reportScores:withCompletionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static void ReportScores (GameKit.GKScore[] scores, Action<Foundation.NSError> completionHandler);
static member ReportScores : GameKit.GKScore[] * Action<Foundation.NSError> -> unit

Parameters

scores
GKScore[]

Scores to report back to Game Center.

completionHandler
Action<NSError>

Method to invoke after the scores have been posted to Game Center.

This parameter can be null.

Attributes

Remarks

The completion handler is only invoked after all the GKScore objects have been posted to the server.

Applies to

ReportScores(GKScore[], GKChallenge[], Action<NSError>)

Reports the provided scores to the Game Center.

[Foundation.Export("reportScores:withEligibleChallenges:withCompletionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static void ReportScores (GameKit.GKScore[] scores, GameKit.GKChallenge[] challenges, Action<Foundation.NSError> completionHandler);
static member ReportScores : GameKit.GKScore[] * GameKit.GKChallenge[] * Action<Foundation.NSError> -> unit

Parameters

scores
GKScore[]

Scores to report back to Game Center.

challenges
GKChallenge[]

Challenges linked to the scores.

This parameter can be null.

completionHandler
Action<NSError>

Method to invoke after the scores have been posted to Game Center.

This parameter can be null.

Attributes

Remarks

The completion handler is only invoked after all the GKScore objects have been posted to the server.

Applies to