Interface IPresentationService
An interface that allows to interact with a presentation ongoing in the current joined room.
Namespace: Unity.Cloud.Presence
Syntax
public interface IPresentationService
Methods
JoinPresentationAsync()
Joins the ongoing presentation as an attendee.
Declaration
Task JoinPresentationAsync()
Returns
| Type | Description |
|---|---|
| Task | Returns a task representing the request to join the presentation |
LeavePresentationAsync()
Leaves the ongoing presentation.
Declaration
Task LeavePresentationAsync()
Returns
| Type | Description |
|---|---|
| Task | Returns a task representing the request to leave the presentation |
StartPresentationAsync()
Starts the presentation as a presenter or takes over a presentation if the participant has permission.
Declaration
Task StartPresentationAsync()
Returns
| Type | Description |
|---|---|
| Task | Returns a task representing the request to start the presentation |
StopPresentationAsync()
Stops the ongoing presentation. Only works if its called by the current presenter.
Declaration
Task StopPresentationAsync()
Returns
| Type | Description |
|---|---|
| Task | Returns a task representing the request to stop the presentation |
Events
PresentationEvent
Calls the methods in its invocation list when the state of the presentation changes.
Declaration
event Action<PresentationEventDetails> PresentationEvent
Event Type
| Type | Description |
|---|---|
| Action<PresentationEventDetails> |