v1.0.0
Latest
2020.3+
Class Presence
Presence model
Namespace: Unity.Services.Friends.Models
Syntax
public class PresenceProperties
Availability
The availability of the user
Declaration
public Availability Availability { get; }Property Value
| Type | Description |
|---|---|
| Availability |
LastSeen
The last seen time of the user in UTC
Declaration
public DateTime LastSeen { get; }Property Value
| Type | Description |
|---|---|
| DateTime |
Methods
GetActivity<T>()
Getter for the current user's activity
Declaration
public T GetActivity<T>()
where T : new()Returns
| Type | Description |
|---|---|
| T | The activity of the user |
Type Parameters
| Name | Description |
|---|---|
| T |