Compartilhar via


GKLocalPlayer.SaveGameData Método

Definição

Salva os dados data do jogo sob o nome namee, em seguida, passa os metadados do jogo para handler, juntamente com um objeto de erro que é null se nenhum erro ocorreu.

[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

Parâmetros

data
NSData
name
String
handler
Action<GKSavedGame,NSError>

A ser adicionado.

Esse parâmetro pode ser null.

Atributos

Aplica-se a