Class ContextPlayer
Represents information about a player who is in the context that the current player is playing in.
Inherited Members
Namespace: Meta.InstantGames
Assembly: Unity.Meta.InstantGames.Sdk.dll
Syntax
public class ContextPlayer : JsObjectConstructors
ContextPlayer()
Construct an instance of ContextPlayer
Declaration
public ContextPlayer()Methods
GetID()
Get the id of the context player.
Declaration
public string GetID()Returns
| Type | Description | 
|---|---|
| string | The ID of the context player. | 
GetName()
Get the player's localized display name.
Declaration
public string GetName()Returns
| Type | Description | 
|---|---|
| string | The player's localized 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. |