共用方式為


GKAchievement.ReportAchievementsAsync 方法

定義

多載

ReportAchievementsAsync(GKAchievement[])

向 Game Center 報告提供的成就和比對挑戰,然後使用錯誤物件呼叫 completionHandler ,如果未發生錯誤, null 則為 。

ReportAchievementsAsync(GKAchievement[], GKChallenge[])

定期向遊戲中心報告提供的成就和挑戰。

ReportAchievementsAsync(GKAchievement[])

向 Game Center 報告提供的成就和比對挑戰,然後使用錯誤物件呼叫 completionHandler ,如果未發生錯誤, null 則為 。

[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

參數

achievements
GKAchievement[]

向 Game Center 回報的成就。

傳回

表示非同步 ReportAchievements 作業的工作

屬性

適用於

ReportAchievementsAsync(GKAchievement[], GKChallenge[])

定期向遊戲中心報告提供的成就和挑戰。

[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

參數

achievements
GKAchievement[]
challenges
GKChallenge[]

傳回

屬性

適用於