GKLocalPlayer.FetchSavedGames(Action<GKSavedGame[],NSError>) 方法

定义

检索所有保存的游戏,并将它们 handler连同 成功或失败时出错一起 null 传递给 。

[Foundation.Export("fetchSavedGamesWithCompletionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void FetchSavedGames (Action<GameKit.GKSavedGame[],Foundation.NSError> handler);
abstract member FetchSavedGames : Action<GameKit.GKSavedGame[], Foundation.NSError> -> unit
override this.FetchSavedGames : Action<GameKit.GKSavedGame[], Foundation.NSError> -> unit

参数

handler
Action<GKSavedGame[],NSError>

内容待定。

此参数可以为 null

属性

适用于