v1.0.0
Latest
2020.3+

Class Presence

Presence model

Inheritance
Presence
Namespace: Unity.Services.Friends.Models
Syntax
public class Presence

Properties

Availability

The availability of the user

Declaration
public Availability Availability { get; }
Property Value
TypeDescription
Availability

LastSeen

The last seen time of the user in UTC

Declaration
public DateTime LastSeen { get; }
Property Value
TypeDescription
DateTime

Methods

GetActivity<T>()

Getter for the current user's activity

Declaration
public T GetActivity<T>()
    where T : new()
Returns
TypeDescription
T

The activity of the user

Type Parameters
NameDescription
T