Instance Method

setPlayer(_:muted:)

Mutes a participant in the chat.

Declaration

func setPlayer(_ player: GKPlayer, muted isMuted: Bool)

Parameters

player

The GKPlayer object identifying the player to be muted.

isMuted

Determines whether the player is to be muted or not.

Discussion

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

See Also

Controlling Chat Volume

var volume: Float

The volume level for the voice channel.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software