GKScore.ReportScores Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.
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.