Modifica

Condividi tramite


GKLocalPlayer.LoadFriendPlayersAsync Method

Definition

Loads an array of the local player's friends' identifiers and passes it 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.Deprecated(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.None, null)]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.None, null)]
public virtual System.Threading.Tasks.Task<GameKit.GKPlayer[]> LoadFriendPlayersAsync ();
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<GameKit.GKPlayer[]> LoadFriendPlayersAsync ();
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