---
title: "load(withIdentifier:completionHandler:)"
framework: gamekit
role: symbol
role_heading: Type Method
path: "gamekit/gkgamesession/load(withidentifier:completionhandler:)"
---

# load(withIdentifier:completionHandler:)

Loads a specific game session.

## Declaration

```swift
class func load(withIdentifier identifier: String, completionHandler: @escaping @Sendable (GKGameSession?, (any Error)?) -> Void)
```

```swift
class func load(withIdentifier identifier: String) async throws -> GKGameSession
```

## Parameters

- `identifier`: A unique string that identifies the game session to be loaded.
- `completionHandler`: A block that is called after the game session has been loaded.

## See Also

### Creating and Loading Game Sessions

- [createSession(inContainer:withTitle:maxConnectedPlayers:completionHandler:)](gamekit/gkgamesession/createsession(incontainer:withtitle:maxconnectedplayers:completionhandler:).md)
- [loadSessions(inContainer:completionHandler:)](gamekit/gkgamesession/loadsessions(incontainer:completionhandler:).md)
- [remove(withIdentifier:completionHandler:)](gamekit/gkgamesession/remove(withidentifier:completionhandler:).md)
