Instance Property

displayName

A string to display for the player.

Declaration

var displayName: String { get }

Discussion

The display name for a player depends on whether the player is a friend of the local player authenticated on the device. If the player is a friend of the local player, then the display name is the actual name of the player. If the player is not a friend, then the display name is the player’s alias.

See Also

Player Details

var alias: String

A string chosen by the player to identify themselves to other players.

var isFriend: Bool

A Boolean value that indicates whether this player is a friend of the local player.

Deprecated