The states returned to your game about other players in a voice chat.
SDKs
- iOS 4.0+
- macOS 10.8+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
Framework
- Game
Kit
Declaration
enum PlayerState : Int
The states returned to your game about other players in a voice chat.
SDKs
Framework
enum PlayerState : Int
case connected
The player connected to the channel.
case disconnected
The player left the channel.
case speaking
The player began speaking.
case silent
The player stopped speaking.
case connecting
The player is connecting to the channel, but is not yet connected.
var player Voice Chat State Did Change Handler: (GKPlayer, GKVoice Chat .Player State) -> Void
A block that is called when a participant changes state.