共用方式為


GKLocalPlayer.LoadDefaultLeaderboardCategoryIDAsync 方法

定義

載入本機玩家的預設排行榜類別識別碼,並將它 completionHandler 傳遞給 ,以及發生錯誤時的錯誤物件 null

[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'LoadDefaultLeaderboardIdentifier' instead.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.None, "Use 'LoadDefaultLeaderboardIdentifier' instead.")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<string> LoadDefaultLeaderboardCategoryIDAsync ();
abstract member LoadDefaultLeaderboardCategoryIDAsync : unit -> System.Threading.Tasks.Task<string>
override this.LoadDefaultLeaderboardCategoryIDAsync : unit -> System.Threading.Tasks.Task<string>

傳回

表示非同步 LoadDefaultLeaderboardCategoryID 作業的工作。 TResult 參數的值的類型為 System.Action < System.String,Foundation.NSError > 。

屬性

適用於