Class Presence<T>
Presence model
Namespace: Unity.Services.Friends.Models
Syntax
public class Presence<T>
Type Parameters
| Name | Description |
|---|---|
| T | The activity type |
Constructors
Presence(PresenceAvailabilityOptions, T)
Creates an instance of PresenceSchema.
Declaration
[Preserve]
public Presence(PresenceAvailabilityOptions availability, T activity)
Parameters
| Type | Name | Description |
|---|---|---|
| PresenceAvailabilityOptions | availability | The current availability of the player. |
| T | activity | The activity data of the player. |
Methods
GetActivity()
Getter for the activity of the player.
Declaration
public T GetActivity()
Returns
| Type | Description |
|---|---|
| T | Returns the presence activity of the player |
GetAvailability()
Getter for the availability of the player.
Declaration
public PresenceAvailabilityOptions GetAvailability()
Returns
| Type | Description |
|---|---|
| PresenceAvailabilityOptions | Returns the presence availability enum value of the player |