message
A message from the current participant to all other participants when you end a turn, forfeit a match, or end a match.
Declaration
var message: String? { get set }Mentioned in
Discussion
Set this property only when the local player is the current participant and before you invoke a method that generates a turn-based event.
If your game instance isn’t running or is running in the background on other participant devices, a notification containing the message appears at the top of the screen. If the game is in the foreground, you can get the message from the match object when handling the turn-based event.