docs.unity3d.com
    Show / Hide Table of Contents

    Class Presence

    Presence model

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

    Properties

    Availability

    The availability of the user

    Declaration
    public PresenceAvailabilityOptions Availability { get; }
    Property Value
    Type Description
    PresenceAvailabilityOptions

    LastSeen

    The last seen 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
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023