---
title: "getCurrentSignedInPlayer(forContainer:completionHandler:)"
framework: gamekit
role: symbol
role_heading: Type Method
path: "gamekit/gkcloudplayer/getcurrentsignedinplayer(forcontainer:completionhandler:)"
---

# getCurrentSignedInPlayer(forContainer:completionHandler:)

Returns player information for the currently signed-in player.

## Declaration

```swift
class func getCurrentSignedInPlayer(forContainer containerName: String?, completionHandler handler: @escaping @Sendable (GKCloudPlayer?, (any Error)?) -> Void)
```

```swift
class func currentSignedInPlayer(forContainer containerName: String?) async throws -> GKCloudPlayer
```

## Parameters

- `containerName`: String containing a unique container name associated with the app.
- `handler`: A block that is called after the player information is retrieved.

## Discussion

Discussion The container name must be a unique string associated with the app.
