Saves the current game session data.
- iOS 10.0–12.0Deprecated
- macOS 10.12–10.14Deprecated
- tvOS 10.0–12.0Deprecated
Dataobject containing the information to be saved.
A block that is called after the data has been saved.
Dataobject containing the information that is currently saved on the server.
If an error occurred, this parameter holds an error object that explains the error. Otherwise, the value of this parameter is nil. See GameKit Constants for a list of error codes specific to GameKit.
The maximum amount of data to be saved is 512K. The
last properties are updated upon completion. When a save conflict appears, the data is not saved to the server. The data property in the completion handler contains the information currently saved to the server. It is up to the developer to decide how to handle save conflicts.