GKAchievement.SelectChallengeablePlayersAsync(GKPlayer[]) Method

Definition

Returns the players who can earn the achievement, and then passes them to completionHandler, along with an error object that is null if no error occurred..

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 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 virtual System.Threading.Tasks.Task<GameKit.GKPlayer[]> SelectChallengeablePlayersAsync (GameKit.GKPlayer[] players);
abstract member SelectChallengeablePlayersAsync : GameKit.GKPlayer[] -> System.Threading.Tasks.Task<GameKit.GKPlayer[]>
override this.SelectChallengeablePlayersAsync : GameKit.GKPlayer[] -> System.Threading.Tasks.Task<GameKit.GKPlayer[]>

Parameters

players
GKPlayer[]

Returns

A task that represents the asynchronous SelectChallengeablePlayers operation. The value of the TResult parameter is of type System.Action<GameKit.GKPlayer[],Foundation.NSError>.

Attributes

Remarks

The SelectChallengeablePlayersAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.

To be added.

Applies to