Edit

Share via


GKPlayer.LoadPhotoAsync(GKPhotoSize) Method

Definition

Asynchronously loads the player's photo from the Game Center.

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<UIKit.UIImage> LoadPhotoAsync (GameKit.GKPhotoSize size);
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<UIKit.UIImage> LoadPhotoAsync (GameKit.GKPhotoSize size);
abstract member LoadPhotoAsync : GameKit.GKPhotoSize -> System.Threading.Tasks.Task<UIKit.UIImage>
override this.LoadPhotoAsync : GameKit.GKPhotoSize -> System.Threading.Tasks.Task<UIKit.UIImage>

Parameters

Returns

The result is of type System.Threading.Tasks.Task<AppKit.NSImage> on MacOS and System.Threading.Tasks.Task<UIKit.UIImage> on iOS.

Attributes

Remarks

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