GKLocalPlayer.SaveGameData Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Salva i dati data
del gioco con il nome name
e quindi passa i metadati del gioco a , insieme a handler
un oggetto errore che si null
verifica se non si è verificato alcun errore.
[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
Parametri
- data
- NSData
- name
- String
- Attributi