Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.
Platforms to show: All Mac Windows Linux Cross-Platform
GKPlayerMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
class | GameKit | MBS MacFrameworks Plugin | 12.3 | Yes | No | No | Yes, macOS only | No |
Notes:
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
- 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
- const GKPhotoSizeNormal = 1
- const GKPhotoSizeSmall = 0
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 for 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 which use this class:
The items on this page are in the following plugins: MBS MacFrameworks Plugin.
GKMatchRequestMBS - GKScoreChallengeMBS
Links
MBS Xojo tutorial videos