docs.unity3d.com
    Show / Hide Table of Contents

    Interface ISession

    An interface that allows a connection session for the local participant.

    Namespace: Unity.Cloud.Presence
    Syntax
    public interface ISession

    Properties

    CurrentParticipantId

    Gets the local Participant.Id.

    Declaration
    ParticipantId CurrentParticipantId { get; }
    Property Value
    Type Description
    ParticipantId

    Id

    Gets the session ID, mostly used for cloud service validation if a participant is connected.

    Declaration
    SessionId Id { get; }
    Property Value
    Type Description
    SessionId

    Room

    Gets the room the participant connected to.

    Declaration
    BaseRoom Room { get; }
    Property Value
    Type Description
    BaseRoom

    Events

    RoomEvent

    Generates an event whenever the joined room receives a message from a service.

    Declaration
    event Action<ISession, Message> RoomEvent
    Event Type
    Type Description
    Action<ISession, Message>

    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