GKLeaderboard.LoadLeaderboards(Action<GKLeaderboard[],NSError>) Method

Definition

Retrieves the list of leaderboards that have been configured for your application.

[Foundation.Export("loadLeaderboardsWithCompletionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static void LoadLeaderboards (Action<GameKit.GKLeaderboard[],Foundation.NSError> completionHandler);
static member LoadLeaderboards : Action<GameKit.GKLeaderboard[], Foundation.NSError> -> unit

Parameters

completionHandler
Action<GKLeaderboard[],NSError>

Method invoked when the leaderboards have been downloaded from the server. The callback gets an array of the downloaded leaderboards as well as an NSError that will be null on success, or would contain the information about the error condition.

This parameter can be null.

Attributes

Remarks

This API will retrieve the configured leaderboards that are available for your application. This method runs a background operation and invokes your callback method when the operation completes.

Leaderboards are configured in iTunes Connect.

Applies to