Class Room
Contains functions and properties related to the Messenger Rooms environment.
Inherited Members
Namespace: Meta.InstantGames
Assembly: Unity.Meta.InstantGames.Sdk.dll
Syntax
public class Room : JsObject
Constructors
Room()
Construct an instance of Room
Declaration
public Room()
Methods
GetCurrentMatchAsync()
Retrieves the current real-time match for the gameplay environment, if one exists. Exceptions: INVALID_OPERATION, INVALID_PARAM, LIVE_MATCH_NOT_FOUND
Declaration
public WebTask<LiveMatch> GetCurrentMatchAsync()
Returns
| Type | Description |
|---|---|
| WebTask<LiveMatch> | A promise that resolves with the current live match being played in this session. |