GKLocalPlayer.LoadDefaultLeaderboardCategoryIDAsync 方法

定义

加载本地玩家的默认排行榜类别 ID,并将其传递给 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>。

属性

适用于