GKScore.ReportScoresAsync 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
ReportScoresAsync(GKScore[]) |
Reports the provided scores to the Game Center. |
ReportScoresAsync(GKScore[], GKChallenge[]) |
Asynchronously reports the provided scores to the Game Center |
ReportScoresAsync(GKScore[])
Reports the provided scores to the Game Center.
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static System.Threading.Tasks.Task ReportScoresAsync (GameKit.GKScore[] scores);
static member ReportScoresAsync : GameKit.GKScore[] -> System.Threading.Tasks.Task
Parameters
- scores
- GKScore[]
Scores to report back to Game Center.
Returns
A task that represents the asynchronous ReportScores operation
- Attributes
Applies to
ReportScoresAsync(GKScore[], GKChallenge[])
Asynchronously reports the provided scores to the Game Center
[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 System.Threading.Tasks.Task ReportScoresAsync (GameKit.GKScore[] scores, GameKit.GKChallenge[] challenges);
static member ReportScoresAsync : GameKit.GKScore[] * GameKit.GKChallenge[] -> System.Threading.Tasks.Task
Parameters
- scores
- GKScore[]
- challenges
- GKChallenge[]
Returns
- Attributes