The exchanges that have been completed and need to be merged by the local participant.
SDKs
- iOS 7.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
Framework
- Game
Kit
Declaration
var completedExchanges: [GKTurn Based Exchange]? { get }
The exchanges that have been completed and need to be merged by the local participant.
SDKs
Framework
var completedExchanges: [GKTurn Based Exchange]? { get }
func save Merged Match(Data, with Resolved Exchanges: [GKTurn Based Exchange], completion Handler: ((Error?) -> Void)?)
Saves the merged data for the current turn without ending the turn.
func send Exchange(to: [GKTurn Based Participant], data: Data, localizable Message Key: String, arguments: [String], timeout: Time Interval, completion Handler: ((GKTurn Based Exchange?, Error?) -> Void)?)
Sends an exchange request to one or more participants.
var GKExchange Timeout Default: Time Interval
The exchange will timeout after one day if no reply is received.
var GKExchange Timeout None: Time Interval
The exchange will not timeout.
var active Exchanges: [GKTurn Based Exchange]?
Returns the exchanges that are active for the local player.
var exchange Data Maximum Size: Int
The maximum amount of data allowed for an exchange.
var exchange Max Initiated Exchanges Per Player: Int
Limits the number of exchanges the player can have initiated at once.
var exchanges: [GKTurn Based Exchange]?
The current exchanges that are in progress for the match.