docs.unity3d.com
    Show / Hide Table of Contents

    Class PresentationService

    Provides methods for interacting with a presentation happening in the currently joined room

    Inheritance
    Object
    PresentationService
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Cloud.Presence.Runtime
    Syntax
    public class PresentationService : IPresentationService

    Constructors

    PresentationService(IServiceHttpClient, ISessionProvider, ServiceHostConfiguration)

    Initializes and returns an instance of PresentationService

    Declaration
    public PresentationService(IServiceHttpClient serviceHttpClient, ISessionProvider sessionProvider, ServiceHostConfiguration serviceHostConfiguration)
    Parameters
    Type Name Description
    IServiceHttpClient serviceHttpClient

    The IServiceHttpClient. Must use same traceId as the PresenceManager

    ISessionProvider sessionProvider

    The ISessionProvider.

    ServiceHostConfiguration serviceHostConfiguration

    The configuration.

    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
    IPresentationService.JoinPresentationAsync()

    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
    IPresentationService.LeavePresentationAsync()

    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
    IPresentationService.StartPresentationAsync()

    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
    IPresentationService.StopPresentationAsync()

    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>
    Implements
    IPresentationService.PresentationEvent

    Extension Methods

    GenericDataExtensions.SerializeToByteArray(Object)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023