편집

다음을 통해 공유


GKLocalPlayer.LoadFriendsAsync Method

Definition

Deprecated. Loads an array of the local player's friends' identifiers and passes it to handler, along with an error object that is null if no error occurred.

[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'LoadRecentPlayers' instead.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.None, "Use 'LoadRecentPlayers' instead.")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<string[]> LoadFriendsAsync ();
abstract member LoadFriendsAsync : unit -> System.Threading.Tasks.Task<string[]>
override this.LoadFriendsAsync : unit -> System.Threading.Tasks.Task<string[]>

Returns

A task that represents the asynchronous LoadFriends operation. The value of the TResult parameter is a GameKit.GKFriendsHandler.

Attributes

Applies to