Instance Property

playerStateUpdateHandler

A block that is called when a participant changes state.

Declaration

var playerStateUpdateHandler: (String, GKVoiceChat.PlayerState) -> Void { get set }

Discussion

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:

playerID

The player identifier for the player whose status changed.

state

The new state of the player. See GKVoiceChat.PlayerState.

See Also

Deprecated Methods and Properties

var playerIDs: [String]

An array of NSString objects containing the player identifiers for the players connected to the channel.

Deprecated
func setMute(Bool, forPlayer: String)

Mutes a participant in the chat.

Deprecated