Edit

Share via


GKAchievement.ReportAchievementsAsync Method

Definition

Overloads

ReportAchievementsAsync(GKAchievement[])

Reports the provided achievements and matching challenges to Game Center and then calls completionHandler with an error object that is null if no error occurred..

ReportAchievementsAsync(GKAchievement[], GKChallenge[])

Asychronously reports the provided achievements and challenges to Game Center.

ReportAchievementsAsync(GKAchievement[])

Reports the provided achievements and matching challenges to Game Center and then calls completionHandler with an error object that is null if no error occurred..

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static System.Threading.Tasks.Task ReportAchievementsAsync (GameKit.GKAchievement[] achievements);
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 8, ObjCRuntime.PlatformArchitecture.All, null)]
public static System.Threading.Tasks.Task ReportAchievementsAsync (GameKit.GKAchievement[] achievements);
static member ReportAchievementsAsync : GameKit.GKAchievement[] -> System.Threading.Tasks.Task

Parameters

achievements
GKAchievement[]

Achievements to report to Game Center.

Returns

A task that represents the asynchronous ReportAchievements operation

Attributes

Applies to

ReportAchievementsAsync(GKAchievement[], GKChallenge[])

Asychronously reports the provided achievements and challenges to 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 ReportAchievementsAsync (GameKit.GKAchievement[] achievements, GameKit.GKChallenge[] challenges);
static member ReportAchievementsAsync : GameKit.GKAchievement[] * GameKit.GKChallenge[] -> System.Threading.Tasks.Task

Parameters

achievements
GKAchievement[]
challenges
GKChallenge[]

Returns

Attributes

Applies to