Platforms to show: All Mac Windows Linux Cross-Platform
Back to GKLocalPlayerMBS class.
GKLocalPlayerMBS.isAuthenticated as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | GameKit | MBS MacFrameworks Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Before using other Game Center features, your game must authenticate the local player. Your game can read this property elsewhere in your game to confirm that the local player is authenticated.
Important Even after the local player has successfully authenticated their credentials, the value of this property can change. For example, if your game is switched into the background, the player could launch the Game Center game and sign out of Game Center. To be notified when the value of this property changes, your game should register to receive the GKPlayerAuthenticationDidChangeNotificationName notification (or use GameKitMBS.PlayerAuthenticationDidChange event).
(Read only property)
Some examples using this property:
GKLocalPlayerMBS.isUnderage as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | GameKit | MBS MacFrameworks Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Some Game Center features are disabled if the local player is underage. Your game can test this property if it wants to disable some of its own features based on the player's age.
(Read only property)
Some examples using this property:
The items on this page are in the following plugins: MBS MacFrameworks Plugin.