Interface IRoomProvider<TRoom>
An interface that allows getting or creating TRoom instances.
Namespace: Unity.Cloud.Presence
Syntax
public interface IRoomProvider<TRoom>
where TRoom : BaseRoom
Type Parameters
| Name | Description |
|---|---|
| TRoom | The type of room |
Methods
GetRoomAsync(SceneId)
Returns a room instance given a SceneId.
Declaration
Task<TRoom> GetRoomAsync(SceneId id)
Parameters
| Type | Name | Description |
|---|---|---|
| SceneId | id | The |
Returns
| Type | Description |
|---|---|
| Task<TRoom> | A room instance |
GetRoomAsync(RoomId)
Returns a room instance given a RoomId.
Declaration
Task<TRoom> GetRoomAsync(RoomId id)
Parameters
| Type | Name | Description |
|---|---|---|
| RoomId | id | The |
Returns
| Type | Description |
|---|---|
| Task<TRoom> | A room instance |