Platforms to show: All Mac Windows Linux Cross-Platform
GKPlayerMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | GameKit | MBS MacFrameworks Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
see also
https://developer.apple.com/library/mac/#documentation/GameKit/Reference/GKPlayer_Ref/Reference/Reference.html
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 5 properties
- property alias as string
- property displayName as String
- property Handle as Integer
- property isFriend as boolean
- property playerID as string
- 2 methods
- method Constructor Private
- method loadPhotoForSize(size as Integer, tag as Variant = nil)
- 3 shared methods
- shared method Available as boolean
- shared method GKPlayerDidChangeNotificationName as string
- shared method loadPlayersForIdentifiers(identifiers() as string, tag as Variant = nil)
- 2 constants
Constants
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. |
Sub classes:
Some methods using this class:
- GKMatchRequestMBS.recipients as GKPlayerMBS()
- GKMatchRequestMBS.setRecipients(players() as GKPlayerMBS)
Some properties using for this class:
- GKTurnBasedParticipantMBS.player as GKPlayerMBS
Some events using this class:
- GameKitMBS.didRequestMatchWithOtherPlayers(players() as GKPlayerMBS)
- GameKitMBS.loadFriendPlayersCompleted(localPlayer as GKLocalPlayerMBS, friendPlayers() as GKPlayerMBS, error as NSErrorMBS, tag as Variant)
- GameKitMBS.loadPhotoForSizeCompleted(player as GKPlayerMBS, size as Integer, photo as NSImageMBS, error as NSErrorMBS, tag as Variant)
- GameKitMBS.loadPlayersForIdentifiersCompleted(identifiers() as string, players() as GKPlayerMBS, error as NSErrorMBS, tag as Variant)
- GameKitMBS.matchEnded(player as GKPlayerMBS, match as GKTurnBasedMatchMBS)
- GameKitMBS.PlayerAuthenticationDidChange(player as GKPlayerMBS)
- GameKitMBS.playerChanged(player as GKPlayerMBS)
- GameKitMBS.receivedTurnEventForMatch(player as GKPlayerMBS, match as GKTurnBasedMatchMBS, didBecomeActive as boolean)
- GameKitMBS.recipientResponseHandler(MatchRequest as GKMatchRequestMBS, Player as GKPlayerMBS, response as Integer, tag as Variant)
Some examples using this class:
The items on this page are in the following plugins: MBS MacFrameworks Plugin.
GKMatchRequestMBS - GKScoreChallengeMBS