docs.unity3d.com
    Show / Hide Table of Contents

    Interface IRoomJoiner

    Provides functionalities to join or leave a room.

    Inherited Members
    ISessionProvider.Session
    ISessionProvider.SessionChanged
    Namespace: Unity.Cloud.Presence
    Syntax
    public interface IRoomJoiner : ISessionProvider

    Properties

    ConnectionStatus

    Gets the status of the connection to the join service.

    Declaration
    ConnectionStatus ConnectionStatus { get; }
    Property Value
    Type Description
    ConnectionStatus

    Methods

    JoinAsync(BaseRoom, IRetryPolicy, CancellationToken)

    Joins a room.

    Declaration
    Task JoinAsync(BaseRoom room, IRetryPolicy retryPolicy, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    BaseRoom room

    The room to join

    IRetryPolicy retryPolicy

    The retry policy to execute the operation

    CancellationToken cancellationToken

    Cancellation token that will try to cancel the operation

    Returns
    Type Description
    Task

    Task representing the request to join

    LeaveAsync()

    Leaves the joined room.

    Declaration
    Task LeaveAsync()
    Returns
    Type Description
    Task

    Task representing the request to leave

    Events

    ConnectionStatusChanged

    Generates an event when the status of the connection changes.

    Declaration
    event Action<ConnectionStatus> ConnectionStatusChanged
    Event Type
    Type Description
    Action<ConnectionStatus>

    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