共用方式為


GKLeaderboard.SetDefaultLeaderboard(String, Action<NSError>) 方法

定義

已取代。

[Foundation.Export("setDefaultLeaderboard:withCompletionHandler:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'SetDefaultLeaderboard' on 'GKLocalPlayer' instead.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.None, "Use 'SetDefaultLeaderboard' on 'GKLocalPlayer' instead.")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static void SetDefaultLeaderboard (string leaderboardIdentifier, Action<Foundation.NSError> notificationHandler);
static member SetDefaultLeaderboard : string * Action<Foundation.NSError> -> unit

參數

leaderboardIdentifier
String

即將加入。

這個參數可以是 null

notificationHandler
Action<NSError>

即將加入。

這個參數可以是 null

屬性

適用於