Saves the merged data for the current turn without ending the turn.
- iOS 7.0+
- macOS 10.10+
- tvOS 9.0+
- watchOS 3.0+
A serialized blob of data reflecting the current state for the match.
An array of
GKTurnobjects that contains the resolved exchanges.
A block to be called after the scores are saved to the server.
The block receives the following parameters:
If an error occurred, this error object describes the error. If the operation was completed successfully, the value is
When this method is called, it creates a new background task to handle the request. The method then returns control to your game. Later, when the task is complete, Game Kit calls your completion handler. The completion handler is always called on the main thread.
When this method is called, the data sent is marked as being resolved. This means that the data has been merged into the match data. If other players currently have the game running, they will receive a
handle call to indicate that
match has changed. All completed exchanges must be resolved before ending a turn. If the completed exchanges have not been resolved, then calling
end will result in an error.