GKAchievement.ReportAchievementsAsync Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
ReportAchievementsAsync(GKAchievement[]) |
Relata as conquistas fornecidas e os desafios correspondentes ao Game Center e, em seguida, chama |
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