docs.unity3d.com
    Show / Hide Table of Contents

    Class Presence<T>

    Presence model

    Inheritance
    Object
    Presence<T>
    Namespace: Unity.Services.Friends.Models
    Syntax
    public class Presence<T>
    Type Parameters
    Name Description
    T

    The activity type

    Constructors

    Presence(PresenceAvailabilityOptions, T)

    Creates an instance of PresenceSchema.

    Declaration
    [Preserve]
    public Presence(PresenceAvailabilityOptions availability, T activity)
    Parameters
    Type Name Description
    PresenceAvailabilityOptions availability

    The current availability of the player.

    T activity

    The activity data of the player.

    Methods

    GetActivity()

    Getter for the activity of the player.

    Declaration
    public T GetActivity()
    Returns
    Type Description
    T

    Returns the presence activity of the player

    GetAvailability()

    Getter for the availability of the player.

    Declaration
    public PresenceAvailabilityOptions GetAvailability()
    Returns
    Type Description
    PresenceAvailabilityOptions

    Returns the presence availability enum value of the player

    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