Class PresentationService
Provides methods for interacting with a presentation happening in the currently joined room
Inherited Members
Namespace: Unity.Cloud.Presence.Runtime
Syntax
public class PresentationService : IPresentationService
Constructors
PresentationService(IServiceHttpClient, ISessionProvider, IServiceHostResolver)
Initializes and returns an instance of PresentationService
Declaration
public PresentationService(IServiceHttpClient serviceHttpClient, ISessionProvider sessionProvider, IServiceHostResolver serviceHostResolver)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceHttpClient | serviceHttpClient | The IServiceHttpClient. Must use same traceId as the PresenceManager |
| ISessionProvider | sessionProvider | The ISessionProvider. |
| IServiceHostResolver | serviceHostResolver | The IServiceHostResolver. |
Methods
Finalize()
Declaration
protected void Finalize()
JoinPresentationAsync()
Joins the ongoing presentation as an attendee.
Declaration
public async Task JoinPresentationAsync()
Returns
| Type | Description |
|---|---|
| Task | Returns a task representing the request to join the presentation |
Implements
LeavePresentationAsync()
Leaves the ongoing presentation.
Declaration
public async Task LeavePresentationAsync()
Returns
| Type | Description |
|---|---|
| Task | Returns a task representing the request to leave the presentation |
Implements
StartPresentationAsync()
Starts the presentation as a presenter or takes over a presentation if the participant has permission.
Declaration
public async Task StartPresentationAsync()
Returns
| Type | Description |
|---|---|
| Task | Returns a task representing the request to start the presentation |
Implements
StopPresentationAsync()
Stops the ongoing presentation. Only works if its called by the current presenter.
Declaration
public async Task StopPresentationAsync()
Returns
| Type | Description |
|---|---|
| Task | Returns a task representing the request to stop the presentation |
Implements
Events
PresentationEvent
Calls the methods in its invocation list when the state of the presentation changes.
Declaration
public event Action<PresentationEventDetails> PresentationEvent
Event Type
| Type | Description |
|---|---|
| Action<PresentationEventDetails> |