Share via


GKLocalPlayer.LoadFriendPlayersAsync Method

Definition

Asynchronously loads an array of the local player's friends' identifiers.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Threading.Tasks.Task<GameKit.GKPlayer[]> LoadFriendPlayersAsync();
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member LoadFriendPlayersAsync : unit -> System.Threading.Tasks.Task<GameKit.GKPlayer[]>
override this.LoadFriendPlayersAsync : unit -> System.Threading.Tasks.Task<GameKit.GKPlayer[]>

Returns

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

Attributes

Remarks

The LoadFriendPlayersAsync 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