Class FriendsService
Here is the first point and call for accessing the Friends Package's features! Use the .Instance method to get a singleton of the type IFriendsService. From there, you can make various requests to the friends service API.
Namespace: Unity.Services.Friends
Syntax
public static class FriendsService
Properties
Instance
Provides the Friends Service SDK interface for making service API requests. It is highly recommended to use the ManagedRelationshipService instead due to the sheer amount of convenience methods it has. In order to access the ManagedRelationshipService object, call ManagedRelationshipService.CreateManagedRelationshipServiceAsync()
Declaration
public static IFriendsService Instance { get; }
Property Value
Type | Description |
---|---|
IFriendsService |