setPlayer(_:muted:)
Mutes a player in the chat, including the local player.
Declaration
func setPlayer(_ player: GKPlayer, muted isMuted: Bool)Parameters
- player:
The player that GameKit mutes or unmutes.
- isMuted:
Determines whether to mute or unmute the player.
Mentioned in
Discussion
If you mute another player, the local player doesn’t hear voice data from that player.