docs.unity3d.com
    Show / Hide Table of Contents

    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>

    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