Instance Property

displayName

A string to display for the player.

Declaration

iOS, Mac Catalyst, tvOS, watchOS
@property(readonly, nonatomic) NSString *displayName;
macOS
@property(readonly, atomic) NSString *displayName;

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

alias

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

isFriend

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

Deprecated