docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Presence

    Presence model

    Inheritance
    object
    Presence
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Services.Friends.Models
    Assembly: Unity.Services.Friends.dll
    Syntax
    public class Presence

    Properties

    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
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)