Contents

player(_:didModifySavedGame:)

Handles when data changes in a saved game file.

Declaration

optional func player(_ player: GKPlayer, didModifySavedGame savedGame: GKSavedGame)

Parameters

  • player:

    The player who saves the game data.

  • savedGame:

    The game the player saves.

Discussion

GameKit invokes this method when you save game data on a device that isn’t the user’s current device.