Interface IRelationshipsEvents
An interface allowing the subscription and unsubscription to the Relationships notification system and the callbacks invoked when an event occurs on the notification system.
Namespace: Unity.Services.Friends.Notifications
Syntax
public interface IRelationshipsEvents
Properties
Callbacks
The callbacks associated with the relationships events subscription.
Declaration
RelationshipsEventCallbacks Callbacks { get; }
Property Value
Type | Description |
---|---|
RelationshipsEventCallbacks |
Methods
SubscribeAsync()
Subscribes or re-subscribes to the events associated to the existing relationships.
Declaration
Task SubscribeAsync()
Returns
Type | Description |
---|---|
Task | An awaitable task. |
Exceptions
Type | Condition |
---|---|
RelationshipsServiceException | Represents an exception that occurs when communicating with the Unity Relationships Service. |
UnsubscribeAsync()
Unsubscribes from the events associated to the existing relationships
Declaration
Task UnsubscribeAsync()
Returns
Type | Description |
---|---|
Task | An awaitable task. |
Exceptions
Type | Condition |
---|---|
RelationshipsServiceException | Represents an exception that occurs when communicating with the Unity Relationships Service. |