<!--
{
  "availability" : [
    "iOS: 10.0.0 - 12.0.0",
    "iPadOS: 10.0.0 - 12.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "macOS: 10.12.0 - 10.14.0",
    "tvOS: 10.0.0 - 12.0.0",
    "visionOS: 1.0.0 - 1.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKCloudPlayer/getCurrentSignedInPlayer(forContainer:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKCloudPlayer(cm)getCurrentSignedInPlayerForContainer:completionHandler:"
  },
  "title" : "getCurrentSignedInPlayer(forContainer:completionHandler:)"
}
-->

# getCurrentSignedInPlayer(forContainer:completionHandler:)

Returns player information for the currently signed-in player.

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

## Parameters

`containerName`

String containing a unique container name associated with the app.

`handler`

A block that is called after the player information is retrieved.

- player: The GKCloudPlayer object representing the currently signed-in player.
- error: If an error occurred, this parameter holds an error object that explains the error. Otherwise, the value of this parameter is `nil`. See `GameKit Constants`for a list of error codes specific to GameKit.

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)