GKAchievement.ReportAchievementsAsync 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
ReportAchievementsAsync(GKAchievement[]) |
Reports the provided achievements and matching challenges to Game Center and then calls |
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