GKPlayer.LoadPhotoAsync(GKPhotoSize) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- size
- GKPhotoSize
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.