共用方式為


GKPlayer.LoadPhoto(GKPhotoSize, GKPlayerPhotoLoaded) 方法

定義

從遊戲中心載入玩家的相片,並在載入相片之後執行完成處理常式。

[Foundation.Export("loadPhotoForSize:withCompletionHandler:")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void LoadPhoto (GameKit.GKPhotoSize size, GameKit.GKPlayerPhotoLoaded onCompleted);
abstract member LoadPhoto : GameKit.GKPhotoSize * GameKit.GKPlayerPhotoLoaded -> unit
override this.LoadPhoto : GameKit.GKPhotoSize * GameKit.GKPlayerPhotoLoaded -> unit

參數

onCompleted
GKPlayerPhotoLoaded

即將加入。

這個參數可以是 null

屬性

適用於