Protocol

GKGameSessionEventListener

An event listener that handles game session events.

Declaration

@protocol GKGameSessionEventListener

Topics

Changing Player Status

- session:didAddPlayer:

Tells the listener a new player has been added to a game session.

- session:didRemovePlayer:

Tells the listener a player left a game session.

- session:player:didChangeConnectionState:

Tells the listener a player's connection state has changed.

GKConnectionState

Possible connection states for a player

Transferring Data

- session:didReceiveData:fromPlayer:

Tells the listener the player received data from another player.

- session:didReceiveMessage:withData:fromPlayer:

Tells the listener a player has received a message from another player.

- session:player:didSaveData:

Tells the listener data was saved by a player.

Relationships

Inherits From

See Also

Game Sessions

GKCloudPlayer

The object representing the currently signed-in iCloud user.

Deprecated
GKGameSession

A game session you can use to save game data, invite other players, and create turn-based and real-time game apps.

Deprecated
GKGameSessionSharingViewController

A user interface you can use to invite other users into a tvOS game session.

Deprecated
GKGameSessionErrorCode

Error codes for the GKGameSession domain.

Deprecated
GKGameSessionErrorDomain

The error domain for game sessions.

Deprecated