---
title: GKSavedGame
framework: gamekit
role: symbol
role_heading: Class
path: gamekit/gksavedgame
---

# GKSavedGame

An object that represents a file containing saved game data.

## Declaration

```swift
class GKSavedGame
```

## Mentioned in

Saving the player’s game data to an iCloud account

## Overview

Overview A GKSavedGame object represents the file that contains game data you saved using the GKLocalPlayer saveGameData(_:withName:completionHandler:) method. You don’t create GKSavedGame objects directly. Instead use the fetchSavedGames(completionHandler:) method to get the games you saved. Then get the filename, its modification date, and the name of the device the player used to save the game from the returned objects. Use the loadData(completionHandler:) method to get the actual game data you saved in the file. To delete saved games, use the deleteSavedGames(withName:completionHandler:) method.

## Topics

### Loading Saved Game Data

- [loadData(completionHandler:)](gamekit/gksavedgame/loaddata(completionhandler:).md)

### Retrieving Information About a Saved Game File

- [name](gamekit/gksavedgame/name.md)
- [modificationDate](gamekit/gksavedgame/modificationdate.md)
- [deviceName](gamekit/gksavedgame/devicename.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Saving Game Data

- [Saving the player’s game data to an iCloud account](gamekit/saving-the-player-s-game-data-to-an-icloud-account.md)
- [saveGameData(_:withName:completionHandler:)](gamekit/gklocalplayer/savegamedata(_:withname:completionhandler:).md)
- [fetchSavedGames(completionHandler:)](gamekit/gklocalplayer/fetchsavedgames(completionhandler:).md)
- [resolveConflictingSavedGames(_:with:completionHandler:)](gamekit/gklocalplayer/resolveconflictingsavedgames(_:with:completionhandler:).md)
- [deleteSavedGames(withName:completionHandler:)](gamekit/gklocalplayer/deletesavedgames(withname:completionhandler:).md)
- [GKSavedGameListener](gamekit/gksavedgamelistener.md)
