Interface IHostSession
Inherited Members
Namespace: Unity.Services.Multiplayer
Assembly: Unity.Services.Multiplayer.dll
Syntax
public interface IHostSession : ISession
Properties
Properties
The properties of the session.
Declaration
Dictionary<string, SessionProperty> Properties { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, SessionProperty> |
Methods
DeleteAsync()
Delete the session.
Declaration
Task DeleteAsync()
Returns
Type | Description |
---|---|
Task |
RemovePlayerAsync(string)
Removes a player from the session.
Declaration
Task RemovePlayerAsync(string playerId)
Parameters
Type | Name | Description |
---|---|---|
string | playerId | Identifier for the player to remove. |
Returns
Type | Description |
---|---|
Task | A task for the operation. |
SavePropertiesAsync()
Saves the property changes of the session.
Declaration
Task SavePropertiesAsync()
Returns
Type | Description |
---|---|
Task | A task for the operation. |