Class ConnectedPlayer
Represents information about a player who is connected to the current player.
Inherited Members
Namespace: Meta.InstantGames
Assembly: Unity.Meta.InstantGames.Sdk.dll
Syntax
public class ConnectedPlayer : JsObjectConstructors
ConnectedPlayer()
Construct an instance of ConnectedPlayer
Declaration
public ConnectedPlayer()Methods
GetID()
Get the id of the connected player.
Declaration
public string GetID()Returns
| Type | Description | 
|---|---|
| string | The ID of the connected player. | 
GetName()
Get the player's display name.
Declaration
public string GetName()Returns
| Type | Description | 
|---|---|
| string | The player's display name. | 
GetPhoto()
Get the player's public profile photo.
Declaration
public string GetPhoto()Returns
| Type | Description | 
|---|---|
| string | A url to the player's public profile photo. |