GKAchievement.ReportAchievementsAsync Método

Definição

Sobrecargas

ReportAchievementsAsync(GKAchievement[])

Relata as conquistas fornecidas e os desafios correspondentes ao Game Center e, em seguida, chama completionHandler com um objeto de erro que é null se nenhum erro ocorreu..

ReportAchievementsAsync(GKAchievement[], GKChallenge[])

Relata de forma assíncrona as conquistas e desafios fornecidos para o Game Center.

ReportAchievementsAsync(GKAchievement[])

Relata as conquistas fornecidas e os desafios correspondentes ao Game Center e, em seguida, chama completionHandler com um objeto de erro que é null se nenhum erro ocorreu..

[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

Parâmetros

achievements
GKAchievement[]

Conquistas para relatar ao Game Center.

Retornos

Uma tarefa que representa a operação assíncrona ReportAchievements

Atributos

Aplica-se a

ReportAchievementsAsync(GKAchievement[], GKChallenge[])

Relata de forma assíncrona as conquistas e desafios fornecidos para o 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

Parâmetros

achievements
GKAchievement[]
challenges
GKChallenge[]

Retornos

Atributos

Aplica-se a