docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class QuerySessionsResults

    The result of the query sessions operation.

    Inheritance
    object
    QuerySessionsResults
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Services.Multiplayer
    Assembly: Unity.Services.Multiplayer.dll
    Syntax
    public class QuerySessionsResults

    Properties

    ContinuationToken

    The token to fetch the next set of sessions.

    Declaration
    public string ContinuationToken { get; }
    Property Value
    Type Description
    string

    Sessions

    The list of sessions returned by the query.

    Declaration
    public IList<ISessionInfo> Sessions { get; }
    Property Value
    Type Description
    IList<ISessionInfo>

    Methods

    StartPolling(int)

    StartPolling polls the session browser for new entries, re-using the same query. This is useful for live-updating UIs as Session results are changed.

    Declaration
    public void StartPolling(int pollingDelaySeconds = 5)
    Parameters
    Type Name Description
    int pollingDelaySeconds

    The interval at which we should poll the query results

    StopPolling()

    StopPolling stops polling for sessions based on the query provided.

    Declaration
    public void StopPolling()
    In This Article
    • Properties
      • ContinuationToken
      • Sessions
    • Methods
      • StartPolling(int)
      • StopPolling()
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)