A block that is called when a participant changes state.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
Your game sets this property with a block to be called when the state of any participant in the chat changes (including the local player). The block receives the following parameters:
GKPlayerobject that identifies the player whose status changed.
The new state of the player. See
Chat .Player State
Listing 1 shows an implementation of an update handler for the player state.