Online Documentation - Statistics - FAQ - Plugin Parts (All, Dependencies) - Class hierarchy
New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1
The list of the topics, classes, interfaces, controls, modules, global methods by category, global methods by name, screenshots, licenses and examples.
Platforms to show: All Mac Windows Linux Cross-Platform
Super class: GKPlayerMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | GameKit | MBS MacFrameworks Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
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 localPlayer class method, and then call the authenticateWithCompletionHandler: method.
You can see whether the local player is authenticated by reading the local player's authenticated property. If authenticated is true, then the local player's other properties are valid, and you can call other Game Center methods.
Call the loadFriendsWithCompletionHandler: method to retrieve the player identifiers for the local player's friends.
Subclass of the GKPlayerMBS class.
Constant | Value | Description |
---|---|---|
GKPhotoSizeNormal | 1 |
One of the size constants of a photo loaded by Game Center.
Load a normal sized photo. |
GKPhotoSizeSmall | 0 |
One of the size constants of a photo loaded by Game Center.
Load a small photo. |
This class has no sub classes.
The items on this page are in the following plugins: MBS MacFrameworks Plugin.
GKLeaderboardViewControllerMBS - GKMatchmakerMBS