GKLocalPlayer.SaveGameData 方法

定义

将游戏数据data保存在 名称name下,然后将游戏元数据以及错误对象null(如果未发生错误)传递给 handler

[Foundation.Export("saveGameData:withName:completionHandler:")]
[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 SaveGameData (Foundation.NSData data, string name, Action<GameKit.GKSavedGame,Foundation.NSError> handler);
abstract member SaveGameData : Foundation.NSData * string * Action<GameKit.GKSavedGame, Foundation.NSError> -> unit
override this.SaveGameData : Foundation.NSData * string * Action<GameKit.GKSavedGame, Foundation.NSError> -> unit

参数

data
NSData
name
String
handler
Action<GKSavedGame,NSError>

内容待定。

此参数可以为 null

属性

适用于