An object representing the authenticated Game Center player on a device.
- iOS 4.1+
- macOS 10.8+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
At any given time, only one player may be authenticated on the device; this player must log out before another player can log in. Your game must authenticate the local player before using any Game Center features. Authenticating the player ensures that the player has created an account and is connected to Game Center. To authenticate the local player, retrieve the shared instance of the local player by calling the
local class method and set its
You can see whether the local player is authenticated by reading the
authenticated property. If
YES, then the local player’s other properties are valid, and you can call other Game Center methods.