Class

GKTurnBasedExchangeReply

The player’s response to an exchange.

Declaration

class GKTurnBasedExchangeReply : NSObject

Overview

After a player receives an exchange request, they can respond to the request or let it time-out. When a player responds to a request, a GKTurnBasedExchangeReply object is created that contains the player’s response, identifier, and push notification message.

Topics

Exchange Information

var data: Data?

Exchange data sent by the recipient.

var message: String?

Localizable message for the push notification

var recipient: GKTurnBasedParticipant

The player that is replying to the exchange.

var replyDate: Date

The date the reply exchange was sent.

Relationships

Inherits From

Conforms To

See Also

Turn-based Games

class GKTurnBasedMatch

An object used to implement turn-based matches between sets of players on Game Center.

class GKTurnBasedExchange

The exchange information sent between players even when a player is not the current player.

class GKTurnBasedParticipant

The information that describes a participant in a turn-based match.

protocol GKTurnBasedEventListener

The protocol you implement to handle exchanges and match-related events for turn-based games.