Instance Method

setMute(_:forPlayer:)

Mutes a participant in the chat.

Declaration

func setMute(_ isMuted: Bool, forPlayer playerID: String)

Parameters

isMuted

Determines whether the player is to be muted or not.

player

The player identifier string for a player in the match.

Discussion

When a player is muted, the local player does not hear voice data transmitted by that player.

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
var playerStateUpdateHandler: (String, GKVoiceChat.PlayerState) -> Void

A block that is called when a participant changes state.

Deprecated