Expand description
§Bindings to the GameKit
framework
See Apple’s docs and the general docs on framework crates for more information.
Structs§
- GKAccess
Point GKAccessPoint
- Apple’s documentation
- GKAccess
Point Location GKAccessPoint
- Apple’s documentation
- GKAchievement
GKAchievement
- Apple’s documentation
- GKAchievement
Challenge GKChallenge
- Apple’s documentation
- GKAchievement
Description GKAchievementDescription
- GKAchievementDescription is a full description of the achievement as defined before app submission in App Store Connect.
- GKAchievement
View Controller Deprecated GKAchievementViewController
andGKGameCenterViewController
andobjc2-app-kit
and macOS - View controller that provides the standard user interface for achievements. Present modally from the top view controller.
- GKBase
Player GKBasePlayer
- Apple’s documentation
- GKChallenge
GKChallenge
- Apple’s documentation
- GKChallenge
Event Handler Deprecated GKChallengeEventHandler
- A singleton object responsible for dispatching challenge-related events to its delegate
- GKChallenge
State GKChallenge
- Apple’s documentation
- GKChallenges
View Controller Deprecated GKChallengesViewController
andobjc2-app-kit
and macOS - Apple’s documentation
- GKCloud
Player Deprecated GKBasePlayer
andGKCloudPlayer
- Apple’s documentation
- GKConnection
State GKGameSession
- Apple’s documentation
- GKDialog
Controller GKDialogController
andobjc2-app-kit
and macOS - Apple’s documentation
- GKError
Code GKError
- Apple’s documentation
- GKFriend
Request Compose View Controller Deprecated GKFriendRequestComposeViewController
andobjc2-app-kit
and macOS - Apple’s documentation
- GKFriends
Authorization Status GKLocalPlayer
- Apple’s documentation
- GKGame
Center View Controller GKGameCenterViewController
andobjc2-app-kit
and macOS - Apple’s documentation
- GKGame
Center View Controller State GKGameCenterViewController
- Apple’s documentation
- GKGame
Session Deprecated GKGameSession
- Apple’s documentation
- GKGame
Session Error Code Deprecated GKGameSessionError
- Apple’s documentation
- GKInvite
GKMatchmaker
- GKInvite represents an accepted game invite, it is used to create a GKMatchmakerViewController
- GKInvite
Recipient Response GKMatchmaker
- Possible invitee responses
- GKLeaderboard
GKLeaderboard
- GKLeaderboard represents a single instance of a leaderboard for the current game. Leaderboards can be of the following types:
- GKLeaderboard
Entry GKLeaderboardEntry
- Apple’s documentation
- GKLeaderboard
Player Scope GKLeaderboard
- Apple’s documentation
- GKLeaderboard
Score GKLeaderboardScore
- Apple’s documentation
- GKLeaderboard
Set GKLeaderboardSet
- GKLeaderboardSet represents the sets that leaderboards can be broken out into.
- GKLeaderboard
Time Scope GKLeaderboard
- Apple’s documentation
- GKLeaderboard
Type GKLeaderboard
- Apple’s documentation
- GKLeaderboard
View Controller Deprecated GKGameCenterViewController
andGKLeaderboardViewController
andobjc2-app-kit
and macOS - View controller that provides the standard user interface for leaderboards. Present modally from the top view controller.
- GKLocal
Player GKBasePlayer
andGKLocalPlayer
andGKPlayer
- Apple’s documentation
- GKMatch
GKMatch
- GKMatch represents an active networking sessions between players. It handles network communications and can report player connection status. All matches are created by a GKMatchmaker.
- GKMatch
Request GKMatchmaker
- GKMatchRequest represents the parameters needed to create the match.
- GKMatch
Send Data Mode GKMatch
- Apple’s documentation
- GKMatch
Type GKMatchmaker
- Apple’s documentation
- GKMatched
Players GKMatchmaker
- Apple’s documentation
- GKMatchmaker
GKMatchmaker
- GKMatchmaker is a singleton object to manage match creation from invites and automatching.
- GKMatchmaker
View Controller GKMatchmakerViewController
andobjc2-app-kit
and macOS - Apple’s documentation
- GKMatchmaking
Mode GKMatchmakerViewController
- Apple’s documentation
- GKNotification
Banner Deprecated GKNotificationBanner
- Asynchronously shows a notification banner like the one used for Game Center’s “Welcome Back” message. If a banner is already being displayed, additional banners will be shown in sequence. Use this to notify the user of game events, high scores, completed achievements, etc.
- GKPeer
Connection State Deprecated GKPublicConstants
- Specifies the type of peers to return in method -peersWithConnectionState:
- GKPhoto
Size GKPlayer
- Apple’s documentation
- GKPlayer
GKBasePlayer
andGKPlayer
- Apple’s documentation
- GKPlayer
Connection State GKMatch
- Apple’s documentation
- GKRelease
State GKReleaseState
- Describes the release state of an App Store Connect resource, such as an Achievement or Leaderboard.
- GKSaved
Game GKSavedGame
- Class representing a saved game for the local player, or a version of a saved game when in conflict
- GKScore
Deprecated GKScore
- GKScore represents a score in the leaderboards.
- GKScore
Challenge GKChallenge
- Apple’s documentation
- GKSend
Data Mode Deprecated GKPublicConstants
- Delivery options for GKSession’s -(BOOL)sendData… methods.
- GKSession
Deprecated GKSession
- The GKSession handles networking between peers for a game, which includes establishing and maintaining connections over a game network, and network data transport.
- GKSession
Error Deprecated GKSessionError
- Apple’s documentation
- GKSession
Mode Deprecated GKPublicConstants
- Apple’s documentation
- GKTransport
Type GKGameSession
- Apple’s documentation
- GKTurn
Based Event Handler Deprecated GKTurnBasedMatch
- Apple’s documentation
- GKTurn
Based Exchange GKTurnBasedMatch
- Apple’s documentation
- GKTurn
Based Exchange Reply GKTurnBasedMatch
- Apple’s documentation
- GKTurn
Based Exchange Status GKTurnBasedMatch
- Apple’s documentation
- GKTurn
Based Match GKTurnBasedMatch
- Apple’s documentation
- GKTurn
Based Match Outcome GKTurnBasedMatch
- Constants that describe the game result for a given participant who has reached the done state. The developer is free to use these constants or add additional ones
- GKTurn
Based Match Status GKTurnBasedMatch
- Constants that describe the state of the overall match
- GKTurn
Based Matchmaker View Controller GKTurnBasedMatchmakerViewController
andobjc2-app-kit
and macOS - Apple’s documentation
- GKTurn
Based Participant GKTurnBasedMatch
- GKTurnBasedMatch represents an ongoing turn-based game among the matched group of participants Existing matches can be shown and new matches created using GKTurnBasedMatchmakerViewController A list of existing matches can be retrieved using +loadMatchesWithCompletionHandler:
- GKTurn
Based Participant Status GKTurnBasedMatch
- Constants that describe the state of individual participants in the match
- GKVoice
Chat Deprecated GKVoiceChat
- GKVoiceChat represents an instance of a named voice communications channel
- GKVoice
Chat Player State Deprecated GKVoiceChat
- Apple’s documentation
- GKVoice
Chat Service Deprecated GKVoiceChatService
- This a not a Game Center feature. To support voice chat as part of Game Center online play, see GKVoiceChat.
- GKVoice
Chat Service Error Deprecated GKPublicConstants
- Apple’s documentation
Statics§
- GKError
Domain ⚠GKError
- Apple’s documentation
- GKExchange
Timeout ⚠Default GKTurnBasedMatch
- Apple’s documentation
- GKExchange
Timeout ⚠None GKTurnBasedMatch
- Apple’s documentation
- GKGame
Session ⚠Error Domain GKGameSessionError
- Apple’s documentation
- GKPlayer
Authentication ⚠DidChange Notification Name GKLocalPlayer
- Notification will be posted whenever authentication status changes.
- GKPlayer
DidChange ⚠Notification Name GKPlayer
- Notification will be posted whenever the player details changes. The object of the notification will be the player.
- GKPlayerID
NoLonger ⚠Available GKPlayer
- Deprecated methods that previously returned player IDs will return GKPlayerIDNoLongerAvailable instead.
- GKSession
Error ⚠Domain GKSessionError
- Apple’s documentation
- GKTurn
Timeout ⚠Default GKTurnBasedMatch
- Apple’s documentation
- GKTurn
Timeout ⚠None GKTurnBasedMatch
- Apple’s documentation
- GKVoice
Chat ⚠Service Error Domain GKPublicConstants
- Apple’s documentation
Traits§
- GKAchievement
View Controller Delegate Deprecated GKAchievementViewController
- Optional delegate
- GKChallenge
Event Handler Delegate Deprecated GKChallengeEventHandler
- GKChallengeEventHandler’s delegate must implement the following protocol to be notified of challenge-related events. All of these methods are called on the main thread.
- GKChallenge
Listener GKEventListener
- Apple’s documentation
- GKChallenges
View Controller Delegate Deprecated GKChallengesViewController
- Apple’s documentation
- GKFriend
Request Compose View Controller Delegate Deprecated GKFriendRequestComposeViewController
- Optional delegate
- GKGame
Center Controller Delegate GKGameCenterViewController
- Apple’s documentation
- GKGame
Session Event Listener Deprecated GKGameSessionEventListener
- Apple’s documentation
- GKInvite
Event Listener GKMatchmaker
- GKInviteEventListener uses the GKLocalPlayerListener mechanism on GKLocalPlayer to listen to the two kinds of invite events that a game must respond to
- GKLeaderboard
View Controller Delegate Deprecated GKLeaderboardViewController
- Apple’s documentation
- GKLocal
Player Listener GKEventListener
andGKLocalPlayer
andGKMatchmaker
andGKSavedGameListener
andGKTurnBasedMatch
- Apple’s documentation
- GKMatch
Delegate GKMatch
- Apple’s documentation
- GKMatchmaker
View Controller Delegate GKMatchmakerViewController
- Apple’s documentation
- GKSaved
Game Listener GKSavedGameListener
- Apple’s documentation
- GKSession
Delegate Deprecated GKPublicProtocols
- Callbacks to the GKSession delegate.
- GKTurn
Based Event Handler Delegate Deprecated GKTurnBasedMatch
- Apple’s documentation
- GKTurn
Based Event Listener GKTurnBasedMatch
- Apple’s documentation
- GKTurn
Based Matchmaker View Controller Delegate GKTurnBasedMatchmakerViewController
- Apple’s documentation
- GKView
Controller GKDialogController
- Apple’s documentation
- GKVoice
Chat Client Deprecated GKPublicProtocols
- Apple’s documentation
Type Aliases§
- GKChallenge
Compose Completion Block GKChallenge
andblock2
andobjc2-app-kit
and macOS - Apple’s documentation
- GKChallenge
Compose Handler GKBasePlayer
andGKChallenge
andGKPlayer
andblock2
andobjc2-app-kit
and macOS - Apple’s documentation
- GKInvitee
Response GKMatchmaker
- Apple’s documentation
- GKMatch
Properties GKDefines
- Apple’s documentation