v1.0.0
Latest
2022.3+
Interface IServerEvents
Interface representing your subscription to the Multiplay Server Events messages.
Namespace: Unity.Services.Multiplay
Syntax
public interface IServerEvents
Properties
Callbacks
The callbacks that the Multiplay Server Events will invoke when messages are received.
Declaration
MultiplayEventCallbacks Callbacks { get; }
Property Value
Type | Description |
---|---|
MultiplayEventCallbacks |
Methods
SubscribeAsync()
Subscribes to the messages. You do not need to call this if you are already subscribed.
Declaration
Task SubscribeAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | An awaitable task. |
UnsubscribeAsync()
Unsubscribes from the messages. You do not need to call this if you are already unsubscribed.
Declaration
Task UnsubscribeAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | An awaitable task. |