Crate objc2_game_kit

Source
Expand description

§Bindings to the GameKit framework

See Apple’s docs and the general docs on framework crates for more information.

Structs§

GKAccessPointGKAccessPoint
Apple’s documentation
GKAccessPointLocationGKAccessPoint
Apple’s documentation
GKAchievementGKAchievement
Apple’s documentation
GKAchievementChallengeGKChallenge
Apple’s documentation
GKAchievementDescriptionGKAchievementDescription
GKAchievementDescription is a full description of the achievement as defined before app submission in App Store Connect.
GKAchievementViewControllerDeprecatedGKAchievementViewController and GKGameCenterViewController and objc2-app-kit and macOS
View controller that provides the standard user interface for achievements. Present modally from the top view controller.
GKBasePlayerGKBasePlayer
Apple’s documentation
GKChallengeGKChallenge
Apple’s documentation
GKChallengeEventHandlerDeprecatedGKChallengeEventHandler
A singleton object responsible for dispatching challenge-related events to its delegate
GKChallengeStateGKChallenge
Apple’s documentation
GKChallengesViewControllerDeprecatedGKChallengesViewController and objc2-app-kit and macOS
Apple’s documentation
GKCloudPlayerDeprecatedGKBasePlayer and GKCloudPlayer
Apple’s documentation
GKConnectionStateGKGameSession
Apple’s documentation
GKDialogControllerGKDialogController and objc2-app-kit and macOS
Apple’s documentation
GKErrorCodeGKError
Apple’s documentation
GKFriendRequestComposeViewControllerDeprecatedGKFriendRequestComposeViewController and objc2-app-kit and macOS
Apple’s documentation
GKFriendsAuthorizationStatusGKLocalPlayer
Apple’s documentation
GKGameCenterViewControllerGKGameCenterViewController and objc2-app-kit and macOS
Apple’s documentation
GKGameCenterViewControllerStateGKGameCenterViewController
Apple’s documentation
GKGameSessionDeprecatedGKGameSession
Apple’s documentation
GKGameSessionErrorCodeDeprecatedGKGameSessionError
Apple’s documentation
GKInviteGKMatchmaker
GKInvite represents an accepted game invite, it is used to create a GKMatchmakerViewController
GKInviteRecipientResponseGKMatchmaker
Possible invitee responses
GKLeaderboardGKLeaderboard
GKLeaderboard represents a single instance of a leaderboard for the current game. Leaderboards can be of the following types:
GKLeaderboardEntryGKLeaderboardEntry
Apple’s documentation
GKLeaderboardPlayerScopeGKLeaderboard
Apple’s documentation
GKLeaderboardScoreGKLeaderboardScore
Apple’s documentation
GKLeaderboardSetGKLeaderboardSet
GKLeaderboardSet represents the sets that leaderboards can be broken out into.
GKLeaderboardTimeScopeGKLeaderboard
Apple’s documentation
GKLeaderboardTypeGKLeaderboard
Apple’s documentation
GKLeaderboardViewControllerDeprecatedGKGameCenterViewController and GKLeaderboardViewController and objc2-app-kit and macOS
View controller that provides the standard user interface for leaderboards. Present modally from the top view controller.
GKLocalPlayerGKBasePlayer and GKLocalPlayer and GKPlayer
Apple’s documentation
GKMatchGKMatch
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.
GKMatchRequestGKMatchmaker
GKMatchRequest represents the parameters needed to create the match.
GKMatchSendDataModeGKMatch
Apple’s documentation
GKMatchTypeGKMatchmaker
Apple’s documentation
GKMatchedPlayersGKMatchmaker
Apple’s documentation
GKMatchmakerGKMatchmaker
GKMatchmaker is a singleton object to manage match creation from invites and automatching.
GKMatchmakerViewControllerGKMatchmakerViewController and objc2-app-kit and macOS
Apple’s documentation
GKMatchmakingModeGKMatchmakerViewController
Apple’s documentation
GKNotificationBannerDeprecatedGKNotificationBanner
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.
GKPeerConnectionStateDeprecatedGKPublicConstants
Specifies the type of peers to return in method -peersWithConnectionState:
GKPhotoSizeGKPlayer
Apple’s documentation
GKPlayerGKBasePlayer and GKPlayer
Apple’s documentation
GKPlayerConnectionStateGKMatch
Apple’s documentation
GKReleaseStateGKReleaseState
Describes the release state of an App Store Connect resource, such as an Achievement or Leaderboard.
GKSavedGameGKSavedGame
Class representing a saved game for the local player, or a version of a saved game when in conflict
GKScoreDeprecatedGKScore
GKScore represents a score in the leaderboards.
GKScoreChallengeGKChallenge
Apple’s documentation
GKSendDataModeDeprecatedGKPublicConstants
Delivery options for GKSession’s -(BOOL)sendData… methods.
GKSessionDeprecatedGKSession
The GKSession handles networking between peers for a game, which includes establishing and maintaining connections over a game network, and network data transport.
GKSessionErrorDeprecatedGKSessionError
Apple’s documentation
GKSessionModeDeprecatedGKPublicConstants
Apple’s documentation
GKTransportTypeGKGameSession
Apple’s documentation
GKTurnBasedEventHandlerDeprecatedGKTurnBasedMatch
Apple’s documentation
GKTurnBasedExchangeGKTurnBasedMatch
Apple’s documentation
GKTurnBasedExchangeReplyGKTurnBasedMatch
Apple’s documentation
GKTurnBasedExchangeStatusGKTurnBasedMatch
Apple’s documentation
GKTurnBasedMatchGKTurnBasedMatch
Apple’s documentation
GKTurnBasedMatchOutcomeGKTurnBasedMatch
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
GKTurnBasedMatchStatusGKTurnBasedMatch
Constants that describe the state of the overall match
GKTurnBasedMatchmakerViewControllerGKTurnBasedMatchmakerViewController and objc2-app-kit and macOS
Apple’s documentation
GKTurnBasedParticipantGKTurnBasedMatch
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:
GKTurnBasedParticipantStatusGKTurnBasedMatch
Constants that describe the state of individual participants in the match
GKVoiceChatDeprecatedGKVoiceChat
GKVoiceChat represents an instance of a named voice communications channel
GKVoiceChatPlayerStateDeprecatedGKVoiceChat
Apple’s documentation
GKVoiceChatServiceDeprecatedGKVoiceChatService
This a not a Game Center feature. To support voice chat as part of Game Center online play, see GKVoiceChat.
GKVoiceChatServiceErrorDeprecatedGKPublicConstants
Apple’s documentation

Statics§

GKErrorDomainGKError
Apple’s documentation
GKExchangeTimeoutDefaultGKTurnBasedMatch
Apple’s documentation
GKExchangeTimeoutNoneGKTurnBasedMatch
Apple’s documentation
GKGameSessionErrorDomainGKGameSessionError
Apple’s documentation
GKPlayerAuthenticationDidChangeNotificationNameGKLocalPlayer
Notification will be posted whenever authentication status changes.
GKPlayerDidChangeNotificationNameGKPlayer
Notification will be posted whenever the player details changes. The object of the notification will be the player.
GKPlayerIDNoLongerAvailableGKPlayer
Deprecated methods that previously returned player IDs will return GKPlayerIDNoLongerAvailable instead.
GKSessionErrorDomainGKSessionError
Apple’s documentation
GKTurnTimeoutDefaultGKTurnBasedMatch
Apple’s documentation
GKTurnTimeoutNoneGKTurnBasedMatch
Apple’s documentation
GKVoiceChatServiceErrorDomainGKPublicConstants
Apple’s documentation

Traits§

GKAchievementViewControllerDelegateDeprecatedGKAchievementViewController
Optional delegate
GKChallengeEventHandlerDelegateDeprecatedGKChallengeEventHandler
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.
GKChallengeListenerGKEventListener
Apple’s documentation
GKChallengesViewControllerDelegateDeprecatedGKChallengesViewController
Apple’s documentation
GKFriendRequestComposeViewControllerDelegateDeprecatedGKFriendRequestComposeViewController
Optional delegate
GKGameCenterControllerDelegateGKGameCenterViewController
Apple’s documentation
GKGameSessionEventListenerDeprecatedGKGameSessionEventListener
Apple’s documentation
GKInviteEventListenerGKMatchmaker
GKInviteEventListener uses the GKLocalPlayerListener mechanism on GKLocalPlayer to listen to the two kinds of invite events that a game must respond to
GKLeaderboardViewControllerDelegateDeprecatedGKLeaderboardViewController
Apple’s documentation
GKLocalPlayerListenerGKEventListener and GKLocalPlayer and GKMatchmaker and GKSavedGameListener and GKTurnBasedMatch
Apple’s documentation
GKMatchDelegateGKMatch
Apple’s documentation
GKMatchmakerViewControllerDelegateGKMatchmakerViewController
Apple’s documentation
GKSavedGameListenerGKSavedGameListener
Apple’s documentation
GKSessionDelegateDeprecatedGKPublicProtocols
Callbacks to the GKSession delegate.
GKTurnBasedEventHandlerDelegateDeprecatedGKTurnBasedMatch
Apple’s documentation
GKTurnBasedEventListenerGKTurnBasedMatch
Apple’s documentation
GKTurnBasedMatchmakerViewControllerDelegateGKTurnBasedMatchmakerViewController
Apple’s documentation
GKViewControllerGKDialogController
Apple’s documentation
GKVoiceChatClientDeprecatedGKPublicProtocols
Apple’s documentation

Type Aliases§

GKChallengeComposeCompletionBlockGKChallenge and block2 and objc2-app-kit and macOS
Apple’s documentation
GKChallengeComposeHandlerGKBasePlayer and GKChallenge and GKPlayer and block2 and objc2-app-kit and macOS
Apple’s documentation
GKInviteeResponseGKMatchmaker
Apple’s documentation
GKMatchPropertiesGKDefines
Apple’s documentation