Instance Property

exchanges

The current exchanges that are in progress for the match.

Declaration

iOS, Mac Catalyst, tvOS, watchOS
@property(readonly, retain, nonatomic) NSArray<GKTurnBasedExchange *> *exchanges;
macOS
@property(readonly, retain, atomic) NSArray<GKTurnBasedExchange *> *exchanges;

Discussion

When an exchanges has been completed and resolved by merging it into the match data, it will be removed from this list.

See Also

Transferring Information with Exchanges

- saveMergedMatchData:withResolvedExchanges:completionHandler:

Saves the merged data for the current turn without ending the turn.

GKExchangeTimeoutDefault

The exchange will timeout after one day if no reply is received.

GKExchangeTimeoutNone

The exchange will not timeout.

activeExchanges

Returns the exchanges that are active for the local player.

completedExchanges

The exchanges that have been completed and need to be merged by the local participant.

exchangeDataMaximumSize

The maximum amount of data allowed for an exchange.

exchangeMaxInitiatedExchangesPerPlayer

Limits the number of exchanges the player can have initiated at once.