docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class UserPresence

    UserPresence

    Inheritance
    object
    UserPresence
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Services.Apis.Friends
    Assembly: solution.dll
    Syntax
    [Preserve]
    public class UserPresence

    Constructors

    UserPresence(AvailabilityEnum, object, DateTime)

    Initializes a new instance of the UserPresence class.

    Declaration
    [Preserve]
    public UserPresence(UserPresence.AvailabilityEnum availability = (UserPresence.AvailabilityEnum)0, object activity = null, DateTime lastSeen = default)
    Parameters
    Type Name Description
    UserPresence.AvailabilityEnum availability

    The current availability of the user. (required).

    object activity

    The current activity data of the user..

    DateTime lastSeen

    The last time the user was seen in UTC. This property exists if the user's availability is OFFLINE..

    Properties

    Activity

    The current activity data of the user.

    Declaration
    [Preserve]
    public object Activity { get; set; }
    Property Value
    Type Description
    object

    The current activity data of the user.

    Availability

    The current availability of the user.

    Declaration
    [Preserve]
    public UserPresence.AvailabilityEnum Availability { get; set; }
    Property Value
    Type Description
    UserPresence.AvailabilityEnum

    The current availability of the user.

    LastSeen

    The last time the user was seen in UTC. This property exists if the user's availability is OFFLINE.

    Declaration
    [Preserve]
    public DateTime LastSeen { get; set; }
    Property Value
    Type Description
    DateTime

    The last time the user was seen in UTC. This property exists if the user's availability is OFFLINE.

    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)