Sends an exchange request to one or more participants.
- iOS 7.0+
- macOS 10.10+
- tvOS 9.0+
- watchOS 3.0+
An array of
GKTurnobjects containing the participants who are to receive the reminder.
The data to be exchanged between players.
The location of the alert message string in the Localizable.strings file for the current localization.
An array of
NSStringobjects to be substituted using the format string.
The length of time the next player has to complete their turn.
A block to be called after the exchange request has been sent.
The block receives the following parameters:
The updated exchange to be passed.
If an error occurred, this error object describes the error. If the operation was completed successfully, the value is
When this method is called, it creates a new background task to handle the request. The method then returns control to your game. Later, when the task is complete, Game Kit calls your completion handler. The completion handler is always called on the main thread.
Allows an exchange request to be sent to one or more participants. Each recipient receives a push notification that uses the supplied localizable message. An error is returned if any of the participants are inactive. Listing 1 showws a basic exchange requeste.