Interface ISession
An interface that allows a connection session for the local participant.
Namespace: Unity.Cloud.Presence
Syntax
public interface ISession
Properties
CurrentParticipantId
Gets the local Participant.Id.
Declaration
ParticipantId CurrentParticipantId { get; }
Property Value
| Type | Description |
|---|---|
| ParticipantId |
Id
Gets the session ID, mostly used for cloud service validation if a participant is connected.
Declaration
SessionId Id { get; }
Property Value
| Type | Description |
|---|---|
| SessionId |
Room
Gets the room the participant connected to.
Declaration
BaseRoom Room { get; }
Property Value
| Type | Description |
|---|---|
| BaseRoom |
Events
RoomEvent
Generates an event whenever the joined room receives a message from a service.
Declaration
event Action<ISession, Message> RoomEvent
Event Type
| Type | Description |
|---|---|
| Action<ISession, Message> |