Class QuerySessionsResults
The result of the query sessions operation.
Inherited Members
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<ISession |
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()